:root {
  --bg-dark: #0B0F14;
  --surface-dark: #131A22;
  --line-dark: #243040;
  --text-dark: #EAF2F8;
  --text-dark-2: #8A9BAD;
  --accent: #7CCBF2;
  --accent-ink: #07131C;
  --bg-light: #FFFFFF;
  --bg-light-2: #F2F6F9;
  --text-light: #0F1720;
  --text-light-2: #566475;
  --line-light: #DCE4EB;
  --font-heading: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-caption: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 8.3vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.92em; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nowrap { white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg-dark); padding: 0 var(--gutter); min-height: 920px; }
.glow {
  position: absolute; left: 50%; top: 420px; width: 960px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 203, 242, 0.27), rgba(124, 203, 242, 0));
  pointer-events: none;
}
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; max-width: 1312px; margin: 0 auto; }
.nav-logo { display: flex; }
.nav-logo img { height: 27px; width: auto; }
.nav-links { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-dark-2); text-decoration: none; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text-dark); }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-family: var(--font-caption); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .15s;
}
.pill-link:hover { border-color: var(--text-dark-2); }
.pill-link .icon { width: 16px; height: 16px; }

.statement { position: relative; max-width: 1000px; margin: 47px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.eyebrow {
  display: inline-block; padding: 5px 14px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-family: var(--font-caption); font-size: 13px; font-weight: 500; color: var(--accent);
}
h1 { font-size: clamp(44px, 6.1vw, 88px); line-height: 1; letter-spacing: -0.03em; }
h1 em { font-style: normal; font-weight: 800; color: var(--accent); }
.subhead { max-width: 640px; font-size: 19px; color: var(--text-dark-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px;
  font-size: 16px; text-decoration: none; transition: transform .15s, background-color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: #A2DBF6; }
.btn-secondary { border: 1px solid var(--line-dark); color: var(--text-dark); font-weight: 500; }
.btn-secondary:hover { border-color: var(--text-dark-2); }
.btn:active { transform: translateY(1px); }

.windows { position: relative; max-width: 1300px; height: 310px; margin: 47px auto 0; }
.window {
  background: var(--surface-dark); border: 1px solid var(--line-dark); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); overflow: hidden;
}
.windows .window { position: absolute; }
.window-grill { left: 0; top: 60px; width: 520px; }
.window-decisions { right: 0; top: 100px; width: 490px; }
.window-dev { left: 50%; top: 0; width: 780px; transform: translateX(-50%); }
.titlebar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-family: var(--font-caption); font-size: 13px; color: var(--text-dark-2); }
.titlebar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-dark); }
.titlebar span { margin-left: 8px; }
.body { margin: 0; padding: 8px 22px 28px; font-family: var(--font-mono); font-size: 14px; line-height: 29px; color: var(--text-dark); white-space: pre; overflow: hidden; }
.body .a { color: var(--accent); }
.body .m { color: var(--text-dark-2); }
.body .t { color: var(--text-dark); }

/* Sections */
.section { padding: 110px var(--gutter); }
.light { background: var(--bg-light); color: var(--text-light); }
.light-2 { background: var(--bg-light-2); color: var(--text-light); }
.dark { background: var(--bg-dark); color: var(--text-dark); }
.section-header { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-bottom: 64px; }
.eyebrow-plain { font-family: var(--font-caption); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light-2); }
.dark .eyebrow-plain, .eyebrow-plain.accent { color: var(--accent); }
h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.06; }
.intro { max-width: 640px; font-size: 18px; color: var(--text-dark-2); }

.kinds { display: grid; grid-template-columns: 1fr 1fr; }
.kind { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-right: 64px; }
.kind + .kind { padding: 0 0 0 64px; border-left: 1px solid var(--line-light); }
.command { padding: 6px 12px; border-radius: 6px; background: var(--bg-dark); color: var(--accent); font-size: 14px; }
.kind h3 { font-size: 34px; line-height: 1.06; }
.kind p { font-size: 17px; color: var(--text-light-2); }
.kind p code, .points code { color: var(--text-light); }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.points li { display: flex; align-items: center; gap: 12px; font-size: 16px; }

.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.phases li { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 28px; border-left: 1px solid var(--line-dark); }
.phases li:first-child { padding-left: 0; border-left: 0; }
.num { font-family: var(--font-heading); font-size: 44px; font-weight: 300; line-height: 1.2; color: var(--text-dark-2); }
.num.current { color: var(--accent); }
.phases h3 { font-size: 24px; }
.phases p { font-size: 15px; color: var(--text-dark-2); }
.phases code { font-size: 13px; color: var(--accent); }
.per-slice {
  display: flex; align-items: center; gap: 40px; margin-top: 64px; padding: 28px 36px;
  background: var(--surface-dark); border: 1px solid var(--line-dark); border-radius: 12px;
}
.per-slice h3 { font-size: 26px; flex: none; }
.per-slice p { max-width: 620px; font-size: 16px; color: var(--text-dark-2); }

.state { display: grid; grid-template-columns: 560px 1fr; gap: 80px; align-items: center; }
.state-copy { display: flex; flex-direction: column; gap: 24px; }
.state-copy h2 { max-width: 560px; }
.lead { font-size: 18px; color: var(--text-light-2); }
.keeper { display: flex; flex-direction: column; gap: 18px; margin: 12px 0 0; }
.keeper div { padding-left: 18px; border-left: 2px solid var(--accent); }
.keeper dt { font-weight: 600; }
.keeper dd { margin: 2px 0 0; font-size: 15px; color: var(--text-light-2); }
.window-files { background: var(--bg-dark); box-shadow: 0 16px 40px rgba(15, 23, 32, 0.08); }
.tree { font-size: 15px; line-height: 28px; color: var(--text-dark-2); padding: 8px 24px 28px; }

.install { padding-top: 120px; padding-bottom: 0; }
.narrow { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 44px; text-align: center; }
.install h2 { font-size: clamp(40px, 4.2vw, 60px); }
.commands {
  width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; text-align: left;
  background: var(--surface-dark); border: 1px solid var(--line-dark); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.command-row { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 15px; }
.command-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 15px; }
.prompt { color: var(--accent); }
.copy {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--text-dark-2); cursor: pointer; transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--text-dark); border-color: var(--line-dark); }
.copy .icon { width: 15px; height: 15px; }
.copy.done { color: var(--accent); }
.note { max-width: 560px; font-size: 17px; color: var(--text-dark-2); }
.note code { color: var(--text-dark); }
.note a { color: var(--accent); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 97px; padding: 28px 0 54px; border-top: 1px solid var(--line-dark); }
.footer img { height: 22px; width: auto; }
.footer p { font-family: var(--font-caption); font-size: 13px; color: var(--text-dark-2); }
.footer a { color: var(--text-dark-2); }
.footer a:hover { color: var(--text-dark); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Smaller screens */
@media (max-width: 1240px) {
  .phases { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .phases li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .window-grill, .window-decisions { display: none; }
  .state { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero { min-height: 0; padding-bottom: 72px; }
  .windows { height: auto; }
  .windows .window-dev { position: relative; left: 0; transform: none; width: 100%; }
  .body { overflow-x: auto; }
  .kinds { grid-template-columns: 1fr; gap: 56px; }
  .kind { padding-right: 0; }
  .kind + .kind { padding: 56px 0 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .phases { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .phases li, .phases li:first-child { padding: 0 24px 0 0; border-left: 0; }
  .per-slice { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .install { padding-bottom: 0; }
  .statement { margin-top: 24px; }
  .subhead { font-size: 17px; }
  .nowrap { white-space: normal; }
  .phases { grid-template-columns: 1fr; }
  .kind h3 { font-size: 28px; }
  .commands { padding: 18px; }
  .command-row { font-size: 13px; gap: 10px; }
  .command-row code { font-size: 13px; }
  .tree { font-size: 13px; padding: 8px 18px 24px; }
  .body { font-size: 13px; }
  .footer { flex-direction: column; align-items: flex-start; margin-top: 64px; }
  .pill-link span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
