/* densa.dev: brand tokens from docs/brand in the densa repository. */
:root {
  --ink: #0B1220;
  --ink-2: #111A2E;
  --ink-3: #1A2540;
  --blue: #2F5BEA;
  --blue-dark: #2349C7;
  --blue-light: #6B9BFF;
  --signal: #16A34A;
  --signal-light: #2BD576;
  --slate: #5B6B82;
  --slate-light: #94A3B8;
  --text: #0B1220;
  --text-2: #3D4B63;
  --line: #E3E8F0;
  --surface: #FFFFFF;
  --tint: #F4F6FA;
  /* Semantic roles, redefined for dark mode below. */
  --raised: #FFFFFF;       /* cards, buttons, menus on the page */
  --heading: #0B1220;      /* strongest text */
  --link: #2F5BEA;
  --ink-bg: #0B1220;       /* dark bands: hero, code, proofs */
  --topbar-bg: rgba(255, 255, 255, 0.92);
  --hover: rgba(11, 18, 32, 0.05);
  --dashed: #C7D2E4;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --text-hero: clamp(2.75rem, 1.6rem + 5vw, 5.25rem);

  --space-section: clamp(4rem, 3rem + 4vw, 7.5rem);
  --gutter: 16px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 1px rgba(11, 18, 32, 0.04);
  --shadow-2: 0 12px 32px -12px rgba(11, 18, 32, 0.25), 0 2px 6px rgba(11, 18, 32, 0.06);
  --shadow-3: 0 40px 80px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 150ms;
}

:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --surface: #0A0F1A;
  --raised: #111A2B;
  --tint: #0D1422;
  --line: #22304A;
  --text: #E2E8F2;
  --text-2: #A9B6CB;
  --slate: #8696AE;
  --heading: #F4F7FC;
  --link: #6B9BFF;
  --ink-bg: #060A12;
  --topbar-bg: rgba(10, 15, 26, 0.88);
  --hover: rgba(255, 255, 255, 0.06);
  --dashed: #33415C;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  --surface: #0A0F1A;
  --raised: #111A2B;
  --tint: #0D1422;
  --line: #22304A;
  --text: #E2E8F2;
  --text-2: #A9B6CB;
  --slate: #8696AE;
  --heading: #F4F7FC;
  --link: #6B9BFF;
  --ink-bg: #060A12;
  --topbar-bg: rgba(10, 15, 26, 0.88);
  --hover: rgba(255, 255, 255, 0.06);
  --dashed: #33415C;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 var(--text-base)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--font-mono); font-size: 0.9em; }
/* Show code exactly as typed: no -> arrows or -- dashes from ligatures. */
code, pre, .eyebrow, .kicker, .hero__meta, .figures dd, .chip b, .window__title {
  font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
/* Grid items may shrink below their content (long code lines scroll inside their block). */
.hero__grid > *, .feature > *, .start > *, .uses > * { min-width: 0; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-s);
  font: 600 0.9375rem/1 var(--font-sans); white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--fast), border-color var(--fast), color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--lg { height: 48px; padding: 0 24px; font-size: 1rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, var(--shadow-1); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { color: var(--text); border-color: var(--line); background: var(--raised); }
.btn--ghost:hover { border-color: var(--slate-light); }
.btn--light { color: #fff; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); }
.btn--light:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand img { width: 118px; height: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
  color: var(--text-2); font-weight: 500; font-size: 0.9375rem;
  padding: 8px 12px; border-radius: var(--radius-s);
}
.nav a:hover { color: var(--text); background: var(--tint); text-decoration: none; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.menu { display: none; }

@media (max-width: 960px) {
  .topbar__inner { gap: 12px; }
  .topbar__actions { margin-left: auto; }
  .topbar__actions .btn--ghost { display: none; }
  .menu {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line);
    border-radius: var(--radius-s); background: var(--raised); cursor: pointer;
  }
  .menu span { display: block; height: 2px; background: var(--text); border-radius: 1px; transition: transform var(--fast), opacity var(--fast); }
  .menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--raised); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
}
@media (max-width: 420px) { .topbar__actions .btn--primary { display: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink-bg); color: #fff;
  padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0 clamp(3.5rem, 2rem + 4vw, 6rem);
}
/* Faint table rows, the motif of the mark. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(180deg, rgba(107, 155, 255, 0.045) 0 22px, transparent 22px 30px);
  mask-image: linear-gradient(100deg, transparent 0%, #000 45%, #000 75%, transparent 100%);
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.8125rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate-light);
  padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--signal-light); box-shadow: 0 0 0 4px rgba(43, 213, 118, 0.15); }
.hero h1 {
  margin-top: 24px; font-size: var(--text-hero); font-weight: 700; letter-spacing: -0.035em; line-height: 1;
}
.lead { margin-top: 24px; max-width: 38em; font-size: var(--text-lead); color: #C9D3E3; line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 40px 0 0; padding: 20px 0 0; list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font: 400 0.8125rem/1.4 var(--font-mono); color: var(--slate-light);
}
.hero__meta li::before { content: "▪"; color: var(--blue-light); margin-right: 8px; }

.hero__visual { position: relative; margin: 0; justify-self: center; width: min(100%, 400px); }
.window {
  border-radius: var(--radius-m); overflow: hidden; background: #0D1117;
  box-shadow: var(--shadow-3);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform 600ms var(--ease);
}
.hero__visual:hover .window { transform: none; }
.window__bar {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px;
  background: #161D2B; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2A3550; }
.window__title { font: 400 0.6875rem/1 var(--font-mono); color: var(--slate-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; }

.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 14px; border-radius: var(--radius-s);
  background: rgba(17, 26, 46, 0.92); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-2);
  font: 500 0.8125rem/1.2 var(--font-sans); color: #C9D3E3; white-space: nowrap;
}
.chip b { font: 500 1.375rem/1 var(--font-mono); color: var(--signal-light); }
.chip--a { left: -40px; top: 110px; }
.chip--b { right: -28px; top: 300px; }
.chip--b b { color: var(--blue-light); }
@media (max-width: 560px) { .chip--a { left: -6px; } .chip--b { right: -6px; } }

.hero__visual figcaption { margin-top: 20px; font-size: var(--text-sm); color: var(--slate-light); line-height: 1.5; }
.hero__visual figcaption code { color: #C9D3E3; }

/* Key figures */
.figures { background: var(--surface); border-bottom: 1px solid var(--line); padding: 48px 0 32px; }
.figures__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; }
.figures__grid > div { padding: 8px 24px 16px; border-left: 1px solid var(--line); }
.figures__grid > div:first-child { border-left-color: var(--blue); border-left-width: 3px; }
.figures dt { font-size: var(--text-sm); font-weight: 600; color: var(--text-2); }
.figures dd { margin: 6px 0 4px; overflow-wrap: anywhere; font: 500 clamp(2.25rem, 1.8rem + 1.5vw, 3rem)/1 var(--font-mono); letter-spacing: -0.03em; color: var(--heading); }
.figures dd small { font-size: 0.4em; margin-left: 6px; letter-spacing: 0; color: var(--slate); }
.figures p { font-size: var(--text-sm); color: var(--slate); }
.footnote { margin-top: 20px; font-size: 0.8125rem; color: var(--slate); }

/* Sections */
.section { padding: var(--space-section) 0; }
.section--tint { background: var(--tint); }
.section--ink { background: var(--ink-bg); color: #fff; }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__head h2 { font-size: var(--text-h2); font-weight: 700; }
.section__head p:not(.kicker) { margin-top: 16px; font-size: var(--text-lead); color: var(--text-2); }
.section__head .note { font-size: var(--text-base) !important; }
.section--ink .section__head p:not(.kicker) { color: #C9D3E3; }
.kicker {
  margin-bottom: 14px; font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--link);
}
.kicker--light { color: var(--blue-light); }
.link { display: inline-block; margin-top: 20px; font-weight: 600; }

/* Use cases: one lead tile, three supporting tiles. */
.uses { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .uses { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.use {
  position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--raised); transition: border-color var(--fast), box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.use:hover { border-color: var(--dashed); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.use h3 { font-size: 1.125rem; margin-bottom: 8px; }
.use p { color: var(--text-2); font-size: 0.9375rem; }
.use--lead { background: var(--ink-bg); color: #fff; border-color: var(--ink-bg); }
.use--lead p { color: #C9D3E3; }
.use--lead code { color: #fff; }
.use--lead::after {
  content: ""; position: absolute; right: 28px; top: 28px; width: 44px; height: 30px;
  background: repeating-linear-gradient(180deg, var(--blue-light) 0 6px, transparent 6px 10px);
  opacity: 0.35; border-radius: 2px;
}
.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 8px; border-radius: 4px;
  font: 500 0.75rem/1.2 var(--font-mono); letter-spacing: 0.02em;
}
.tag--signal { background: rgba(43, 213, 118, 0.14); color: var(--signal-light); }

/* What works today: numbered capabilities, each ending in the command that shows it. */
.section--rule { border-top: 1px solid var(--line); }
.cans { display: grid; gap: 0 48px; margin: 0; padding: 0; list-style: none; counter-reset: can; }
@media (min-width: 880px) { .cans { grid-template-columns: 1fr 1fr; } }
.can {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 24px 0 24px 52px; border-bottom: 1px solid var(--line); counter-increment: can;
}
.can::before {
  content: counter(can, decimal-leading-zero); position: absolute; left: 0; top: 26px;
  font: 500 0.875rem/1 var(--font-mono); color: var(--link);
}
.can h3 { font-size: 1.125rem; color: var(--heading); }
.can p { color: var(--text-2); font-size: 0.9375rem; }
.can__run {
  align-self: flex-start; max-width: 100%; margin-top: 6px; padding: 6px 10px;
  overflow-x: auto; white-space: nowrap; border-radius: var(--radius-s);
  background: var(--tint); color: var(--text); border: 1px solid var(--line);
  font-size: 0.8125rem; font-variant-ligatures: none;
}

/* Architecture diagram */
.arch { margin: 0; }
.arch img { width: 100%; height: auto; border-radius: var(--radius-m); border: 1px solid var(--line); box-shadow: var(--shadow-1); }

/* Features */
.feature { display: grid; gap: 40px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) {
  .feature { grid-template-columns: 0.75fr 1.25fr; gap: 56px; padding: 72px 0; }
  .feature--flip .feature__text { order: 2; }
}
.feature h3 { font-size: var(--text-h2); font-weight: 700; }
.feature__lead { margin-top: 16px; font-size: var(--text-lead); color: var(--text-2); }
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 4px;
  background: rgba(47, 91, 234, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%232F5BEA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.shot { margin: 0; }
.shot img { border-radius: var(--radius-m); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.shot figcaption { margin-top: 14px; font-size: var(--text-sm); color: var(--slate); }

/* Code blocks */
.code { min-width: 0; border-radius: var(--radius-m); background: var(--ink-bg); box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); }
.code__bar {
  display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 8px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font: 400 0.75rem/1 var(--font-mono); color: var(--slate-light);
}
.copy {
  font: 500 0.75rem/1 var(--font-sans); color: #C9D3E3; background: transparent; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 4px; padding: 6px 10px;
  transition: border-color var(--fast), color var(--fast);
}
.copy:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.copy.is-done { color: var(--signal-light); border-color: rgba(43, 213, 118, 0.5); }
.code pre {
  margin: 0; padding: 20px; overflow-x: auto;
  font: 400 0.8125rem/1.7 var(--font-mono); color: #DCE3EE; tab-size: 4;
}
.code code { font-size: inherit; }
.code .k { color: #FF8FA3; }
.code .t { color: var(--blue-light); }
.code .f { color: #8BD5FF; }
.code .n { color: #FFC66B; }
.code .s { color: var(--signal-light); }
.code .l { color: #C4A7FF; }
.code .c { color: #6B7A93; font-style: italic; }

/* Guarantees */
.proofs { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 720px) { .proofs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .proofs { grid-template-columns: repeat(3, 1fr); } }
.proof { padding: 32px; background: var(--ink-bg); transition: background 300ms var(--ease); }
.proof:hover { background: var(--ink-2); }
.proof h3 { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; margin-bottom: 10px; }
.proof h3::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--signal-light); flex: none; }
.proof p { color: #AEB9CC; font-size: 0.9375rem; }
.proof code { color: #fff; }

/* Get started */
.start { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .start { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } .start .section__head { margin-bottom: 0; } }
.note { padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--raised); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.tabs__list { display: flex; gap: 4px; margin-bottom: 12px; overflow-x: auto; }
.tabs__list [role="tab"] {
  flex: none; font: 600 0.875rem/1 var(--font-sans); color: var(--text-2);
  padding: 10px 14px; border: 1px solid transparent; border-radius: var(--radius-s);
  background: transparent; cursor: pointer; transition: background var(--fast), color var(--fast);
}
.tabs__list [role="tab"]:hover { color: var(--text); background: var(--hover); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--heading); background: var(--raised); border-color: var(--line); box-shadow: var(--shadow-1); }

/* Roadmap */
.roadmap { display: grid; gap: 16px; }
@media (min-width: 800px) { .roadmap { grid-template-columns: 1fr 1fr; } }
.roadmap__col { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-m); }
.roadmap__col--next { background: var(--tint); border-style: dashed; border-color: var(--dashed); }
.roadmap h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; margin-bottom: 18px; }
.roadmap ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.roadmap li { padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.roadmap li:last-child { border-bottom: 0; padding-bottom: 0; }
.status { width: 10px; height: 10px; border-radius: 2px; }
.status--done { background: var(--signal); }
.status--next { background: transparent; border: 2px solid var(--slate-light); }

/* Closing CTA */
.cta { background: var(--blue); color: #fff; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0; position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 18px, transparent 18px 24px);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: auto 1fr auto; gap: 32px; } }
.cta h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 700; }
.cta p { margin-top: 8px; color: #DCE5FF; }
.cta img { width: 64px; height: 64px; padding: 8px; background: var(--ink); border-radius: 14px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--primary { background: #fff; color: var(--blue); }
.cta .btn--primary:hover { background: #E8EEFF; }

/* Footer */
.footer { background: var(--tint); border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer__brand p { margin-top: 12px; color: var(--slate); font-size: var(--text-sm); }
.footer__brand img { width: 110px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer h2 { font: 600 0.8125rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.footer nav a { color: var(--text-2); font-size: 0.9375rem; }
.footer nav a:hover { color: var(--link); }
.footer__legal { margin-top: 40px; font-size: 0.8125rem; color: var(--slate); }
.footer__legal p { padding-top: 20px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .window { transform: none; }
}

/* Vision page */
.nav a[aria-current="page"] { color: var(--heading); background: var(--tint); }
.hero--page { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.hero--page h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }

.gap { display: grid; gap: 16px; }
@media (min-width: 760px) { .gap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gap { grid-template-columns: repeat(4, 1fr); } }
.gap__item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-m); }
.gap__item h3 { font-size: 1.125rem; margin-bottom: 8px; }
.gap__item p { color: var(--text-2); font-size: 0.9375rem; }
.gap__item--densa { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.gap__item--densa p { color: #C9D3E3; }

.layers { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .layers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .layers { grid-template-columns: repeat(4, 1fr); } }
.layer-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-1); }
.layer-card__no { font: 500 2.25rem/1 var(--font-mono); color: var(--link); }
.layer-card h3 { font-size: 1.25rem; }
.layer-card p { color: var(--text-2); font-size: 0.9375rem; flex: 1; }
.layer-card .tag { align-self: flex-start; margin: 0; }
.tag--done { background: rgba(22, 163, 74, 0.12); color: var(--signal); }
.tag--next { background: rgba(47, 91, 234, 0.16); color: var(--link); }
.tag--planned { background: var(--tint); color: var(--slate); }

.studio { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .studio { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } .studio .section__head { margin-bottom: 0; } .studio .checks { margin-top: 48px; } }

.phases { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 900px) { .phases { grid-template-columns: repeat(5, 1fr); } }
.phase { padding: 28px 24px; background: var(--ink-bg); }
.phase__label { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-light); }
.phase h3 { margin: 12px 0 8px; font-size: 1.125rem; }
.phase p { color: #AEB9CC; font-size: 0.875rem; }
.phase--done .phase__label { color: var(--signal-light); }
.phase--next { background: var(--ink-3); }
.phase--next .phase__label { color: var(--blue-light); }

.proofs--light { background: var(--line); border-color: var(--line); }
.proof--light { background: var(--raised); }
.proof--light:hover { background: var(--tint); }
.proof--light p { color: var(--text-2); }
