/* Tokens match brand/BRAND.md */
:root {
  --ink: #0e1726;
  --ink-2: #16233a;
  --teal: #0fb5a3;
  --teal-dark: #0b6f64;
  --indigo: #5b5bf0;
  --mist: #f0f3f8;
  --line: #cfd6e1;
  --muted: #4a5568;
  --paper: #fbfaf7;
  --white: #fff;
  --r-lg: 28px;
  --r-md: 18px;
  --shadow: 0 24px 60px rgba(14, 23, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--teal-dark); }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; font-weight: 700; line-height: 1.2; }
h1 em, h2 em { font-family: Fraunces, Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: -.01em; color: var(--teal-dark); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 110px 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: var(--white); }
.section-ink h2 em { color: var(--teal); }

.tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--mist); font-size: .82rem; font-weight: 600; color: var(--teal-dark); }
.tag-light { background: rgba(255, 255, 255, .08); color: var(--teal); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(15, 181, 163, .2); }
.sub { font-size: 1.2rem; color: var(--muted); max-width: 620px; }
.sub-light { color: #c8d0dc; }
.micro { font-size: .88rem; color: var(--muted); margin-top: 22px; }
.head { max-width: 760px; margin-bottom: 48px; }

/* Pills */
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.pill:hover { transform: translateY(-1px); }
.pill-lg { padding: 15px 28px; font-size: 1rem; }
.pill-dark { background: var(--ink); color: var(--white); }
.pill-teal { background: var(--teal-dark); color: var(--white); }
.pill-teal:hover { background: #095c53; }
.pill-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pill-ghost:hover { border-color: var(--ink); }
.pill-light { background: var(--white); color: var(--teal-dark); }
.pill-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cta-row.center { justify-content: center; }

/* Nav */
.nav-shell { position: sticky; top: 0; z-index: 20; padding: 14px 16px 0; }
.nav { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border: 1px solid rgba(207, 214, 225, .7); box-shadow: 0 8px 30px rgba(14, 23, 38, .06); }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); }
.brand-mark { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.35rem; border-bottom: 3px solid var(--teal); line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-light { color: var(--white); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .94rem; }
.nav-links a:hover { background: var(--mist); color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 80px 0 120px; margin-top: -72px; padding-top: 160px; background: radial-gradient(900px 500px at 85% 20%, rgba(15, 181, 163, .16), transparent 60%), radial-gradient(700px 420px at 10% 90%, rgba(91, 91, 240, .08), transparent 60%), var(--paper); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-visual { position: relative; padding: 40px 0 56px; }
.ui { background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow); border: 1px solid rgba(207, 214, 225, .6); }
.ui-main { position: relative; z-index: 1; padding: 0 0 8px; max-width: 440px; margin-left: auto; overflow: hidden; }
.ui-bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--mist); font-size: .82rem; }
.ui-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.ui-bar b { margin-left: 10px; font-weight: 600; color: var(--muted); }
.ui-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--mist); font-size: .95rem; }
.ui-row.head { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-bottom: 8px; }
.ui-foot { padding: 12px 18px 6px; font-size: .82rem; color: var(--muted); }
.ok, .warn { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ok { background: rgba(15, 181, 163, .14); color: var(--teal-dark); }
.warn { background: rgba(91, 91, 240, .12); color: var(--indigo); }
.ui-chip { position: absolute; z-index: 2; padding: 14px 18px; display: flex; flex-direction: column; font-size: .85rem; animation: float 6s ease-in-out infinite; }
.ui-chip b { font-size: 1rem; }
.ui-chip span { color: var(--muted); }
.ui-chip-a { right: -14px; top: 0; }
.ui-chip-b { right: 40px; bottom: 0; animation-delay: -3s; background: var(--ink); color: var(--white); border-color: var(--ink); }
.ui-chip-b span { color: #c8d0dc; }
@keyframes float { 50% { transform: translateY(-10px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal-dark); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { border-radius: var(--r-lg); padding: 36px; background: var(--white); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-wide { grid-column: span 2; }
.tile p { color: var(--muted); margin: 0 0 14px; }
.tile ul { margin: 0; padding-left: 18px; }
.tile li { margin: 6px 0; }
.tile-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tile-ink p, .tile-ink li { color: #c8d0dc; }
.tile-mist { background: var(--mist); border-color: var(--mist); }
.tile-teal { background: linear-gradient(135deg, var(--teal-dark), #0a8a7c); color: var(--white); border-color: transparent; }
.tile-teal p { color: #dff6f2; margin: 0; max-width: 640px; }

/* Demo */
.demo { background: var(--ink-2); border-radius: var(--r-lg); padding: 28px; border: 1px solid rgba(255, 255, 255, .06); }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); margin-bottom: 28px; }
.tabs button { font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 22px; border: 0; border-radius: 999px; background: transparent; color: #c8d0dc; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--teal); color: var(--ink); }
.tabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: 240px; }
.panel[hidden] { display: none; }
.panel p { color: #c8d0dc; margin: 0; }
.ui-dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); box-shadow: none; padding: 10px; }
.file, .match { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
.match { justify-content: space-between; }
.file + .file, .match + .match { margin-top: 6px; }
.file, .match { background: rgba(255, 255, 255, .04); }
.file i { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: rgba(15, 181, 163, .18); color: var(--teal); min-width: 44px; text-align: center; }
.ui-dark .ok { background: rgba(15, 181, 163, .18); color: var(--teal); }
.ui-dark .warn { background: rgba(91, 91, 240, .22); color: #b9b9ff; }
.tracker { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: s; }
.tracker li { counter-increment: s; position: relative; padding-top: 16px; font-size: .85rem; color: #8fa0b5; }
.tracker li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.tracker li::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; border-radius: 4px; background: var(--teal); transition: width .6s ease; }
.tracker li.on { color: var(--white); }
.tracker li.on::after { width: 100%; }
.trust { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 36px; }
.trust div { padding: 20px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .1); }
.trust b { display: block; margin-bottom: 4px; }
.trust span { font-size: .88rem; color: #c8d0dc; }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px; border-radius: var(--r-lg); background: radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--teal-dark), #0a8a7c); color: var(--white); }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { color: #dff6f2; margin: 0; max-width: 640px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { padding: 30px; border-radius: var(--r-lg); background: var(--white); }
.steps span { display: inline-block; font-family: Fraunces, Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--teal-dark); margin-bottom: 18px; }
.steps p { color: var(--muted); margin: 0; }

/* Who */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 12px 20px; border-radius: 999px; background: var(--mist); font-weight: 600; font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; }
.about p { color: var(--muted); font-size: 1.05rem; }
.facts { margin: 0; padding: 12px 28px; border-radius: var(--r-lg); background: var(--white); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--mist); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Closing */
.closing { padding: 130px 0; text-align: center; background: radial-gradient(700px 360px at 50% 0%, rgba(15, 181, 163, .22), transparent 65%), var(--ink); color: var(--white); }
.closing h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.closing h2 em { color: var(--teal); }
.closing p { color: #c8d0dc; font-size: 1.15rem; margin: 0 auto; max-width: 560px; }

/* Footer */
.foot { background: var(--ink); color: #c8d0dc; padding: 0 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding-top: 56px; padding-bottom: 40px; border-top: 1px solid #2a3547; }
.foot h4 { margin: 0 0 12px; color: var(--white); font-size: .9rem; }
.foot-grid a, .foot-grid span { display: block; margin: 6px 0; color: #c8d0dc; text-decoration: none; font-size: .9rem; overflow-wrap: anywhere; }
.foot-grid a:hover { color: var(--white); }
.foot-tag { font-family: Fraunces, Georgia, serif; font-style: italic; color: var(--teal); margin: 12px 0 0; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8fa0b5; }
.foot-legal p { margin: 0; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ui-chip, .scroll-cue span { animation: none; }
  .tracker li::after { transition: none; }
}

@media (max-width: 980px) {
  .hero-grid, .panel, .who, .about { grid-template-columns: 1fr; }
  .hero-visual { padding: 40px 0 70px; }
  .ui-main { margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { padding-left: 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 130px; padding-bottom: 90px; }
  .bento, .steps, .trust { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile { padding: 28px; }
  .demo { padding: 18px; }
  .tabs button { padding: 9px 16px; }
  .tracker { grid-template-columns: repeat(5, 1fr); }
  .tracker li { font-size: .72rem; }
  .ui-chip-a { right: 0; }
  .ui-chip-b { right: 20px; }
  .closing { padding: 90px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: auto; }
}
