/* dev-setup landing — Apple design language, dark mode.
   Tokens from awesome-design-md/apple: near-black tiles, white/#ccc text,
   Action Blue #0066cc pills, Sky Link Blue #2997ff on-dark links, SF Pro / Inter,
   tight display tracking, pill CTAs, single product shadow. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --link-on-dark: #2997ff;

  --black: #000000;
  --tile-1: #1d1d1f;   /* primary dark band */
  --tile-2: #232325;   /* faint step lighter */
  --tile-3: #161617;   /* step darker / footer */
  --card: #1c1c1e;
  --card-2: #2a2a2c;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-soft: rgba(255, 255, 255, 0.06);

  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --muted-2: #6e6e73;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 980px;

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --section: 96px;
  --maxw: 1040px;
  --shadow-product: rgba(0, 0, 0, 0.55) 0 12px 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link-on-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(41, 151, 255, 0.35); }

/* ── Nav ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 48px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-soft);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 28px;
}
.nav-brand { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 12px; letter-spacing: 0; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ── Layout primitives ─────────────────────────────── */
.tile { padding: var(--section) 22px; }
.tile.b0 { background: var(--black); }
.tile.b1 { background: var(--tile-1); }
.tile.b2 { background: var(--tile-2); }
.tile.b3 { background: var(--tile-3); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }

.eyebrow {
  color: var(--link-on-dark);
  font-size: 19px; font-weight: 600; letter-spacing: 0;
  margin: 0 0 12px;
}
h1.hero {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600; line-height: 1.06; letter-spacing: -0.03em;
  margin: 0 0 20px;
}
h2.head {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lead {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 400; line-height: 1.36; letter-spacing: 0;
  color: var(--muted); max-width: 40ch; margin: 0 auto;
}
.lead.left { margin: 0; }
.sub { color: var(--muted); font-size: 19px; line-height: 1.5; max-width: 60ch; }

/* ── Buttons ───────────────────────────────────────── */
.btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.btn {
  font-family: var(--font); font-size: 17px; line-height: 1; cursor: pointer;
  border-radius: var(--r-pill); padding: 12px 24px; border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0a78e0; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--link-on-dark); border-color: rgba(41,151,255,0.5); }
.btn-ghost:hover { background: rgba(41,151,255,0.1); text-decoration: none; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-block { width: 100%; justify-content: center; }

/* ── Feature grid ──────────────────────────────────── */
.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.feat {
  background: var(--card); border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg); padding: 28px;
}
.feat h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.feat p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; }
.feat .ic { font-size: 24px; margin-bottom: 14px; display: block; }

/* ── Pipeline ──────────────────────────────────────── */
.pipe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.pipe .step {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 12px 20px; font-size: 16px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.pipe .step b { color: var(--link-on-dark); font-weight: 600; }
.pipe .arrow { color: var(--muted-2); align-self: center; }

/* ── Command chips ─────────────────────────────────── */
.cmds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.cmd {
  font-family: var(--mono); font-size: 14px; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline-soft);
  border-radius: var(--r-pill); padding: 8px 16px;
}
.cmd span { color: var(--muted-2); }

/* ── Code block ────────────────────────────────────── */
.code {
  position: relative; background: #0c0c0d; border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 20px 22px; margin: 18px 0;
  overflow-x: auto; box-shadow: var(--shadow-product);
}
.code pre { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #e4e4e7; white-space: pre; }
.code .tok-cmd { color: #2997ff; }
.code .tok-flag { color: #cfa3ff; }
.code .tok-cmt { color: #6e6e73; }
.code .copy {
  position: absolute; top: 12px; right: 12px;
  background: var(--card-2); color: var(--muted); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 5px 11px; font-size: 12px; font-family: var(--font); cursor: pointer;
}
.code .copy:hover { color: var(--ink); }
.code .copy.ok { color: #30d158; border-color: rgba(48,209,88,0.4); }
.label { font-size: 13px; color: var(--muted-2); font-family: var(--mono); margin-top: 22px; }

/* ── Lists ─────────────────────────────────────────── */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; text-align: left; }
.cols h4 { font-size: 17px; font-weight: 600; margin: 0 0 14px; color: var(--ink); }
.cols ul { list-style: none; padding: 0; margin: 0; }
.cols li { color: var(--muted); font-size: 16px; line-height: 1.9; padding-left: 22px; position: relative; }
.cols li::before { content: '→'; position: absolute; left: 0; color: var(--link-on-dark); }

/* ── Standard quote ────────────────────────────────── */
.quote { max-width: 760px; margin: 0 auto; }
.quote p { font-size: clamp(22px, 3vw, 32px); font-weight: 500; line-height: 1.32; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.quote .hl { color: var(--link-on-dark); }

/* ── Footer ────────────────────────────────────────── */
.footer { background: var(--tile-3); padding: 56px 22px; border-top: 1px solid var(--hairline-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer .small { color: var(--muted-2); font-size: 12px; line-height: 1.6; }
.footer a { color: var(--muted); }

/* ── Gate page ─────────────────────────────────────── */
.gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: radial-gradient(120% 80% at 50% -10%, #1d1d1f 0%, #000 60%);
}
.gate-card {
  width: 100%; max-width: 400px; text-align: center;
}
.gate-card .mark { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.gate-card .tag { color: var(--muted); font-size: 15px; margin: 6px 0 36px; }
.field {
  width: 100%; background: var(--card); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 14px 20px; font-size: 17px; font-family: var(--font); text-align: center;
  outline: none; margin-bottom: 14px;
}
.field:focus { border-color: var(--primary-focus); }
.field.code-field { letter-spacing: 0.5em; font-family: var(--mono); padding-left: 28px; }
.flash { border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.flash.err { background: rgba(255, 69, 58, 0.12); color: #ff6961; border: 1px solid rgba(255,69,58,0.3); }
.flash.ok { background: rgba(48, 209, 88, 0.12); color: #30d158; border: 1px solid rgba(48,209,88,0.3); }
.muted-note { color: var(--muted-2); font-size: 13px; line-height: 1.5; margin-top: 18px; }
.linkbtn { background: none; border: none; color: var(--link-on-dark); font-size: 14px; cursor: pointer; font-family: var(--font); }
.hidden { display: none !important; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 833px) {
  :root { --section: 64px; }
  .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
}
