/* Magic — founder site. Layout: one centred 1120px column; product visuals carry the page, type stays quiet. */
:root {
  --bg: #fbfaf8; --panel: #ffffff; --ink: #141312; --ink-2: #33302b; --muted: #57524b; --line: #e9e4dc; --soft: #f4f1fb;
  --accent: #4a1d8f; --accent-2: #6b45b8; --accent-soft: #f0eafa; --lime: #a8d61c; --lime-soft: #f1f9d6; --lime-ink: #2f3f00;
  --display: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131211; --panel: #1b1a19; --ink: #ebe7e1; --ink-2: #d4cfc7; --muted: #b3ada3; --line: #2c2a27; --soft: #1f1a2b;
    --accent: #b9a0ff; --accent-2: #9a7fd6; --accent-soft: #2a1f45; --lime: #b8e83a; --lime-soft: #26300c; --lime-ink: #dff59a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131211; --panel: #1b1a19; --ink: #ebe7e1; --ink-2: #d4cfc7; --muted: #b3ada3; --line: #2c2a27; --soft: #1f1a2b;
  --accent: #b9a0ff; --accent-2: #9a7fd6; --accent-soft: #2a1f45; --lime: #b8e83a; --lime-soft: #26300c; --lime-ink: #dff59a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.7 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font: 700 20px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); position: relative; }
.logo i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--lime); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: 600 15px/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
:root:not([data-theme="light"]) .btn-primary { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #160b2b; } }
:root[data-theme="dark"] .btn-primary { color: #160b2b; }
.btn-lime { background: var(--lime); color: #1d2a00; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.nav .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; justify-self: start; width: fit-content; font: 600 13px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 7px 12px; border-radius: 999px; margin: 0 0 6px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; font-weight: 650; letter-spacing: -.03em; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
h1 em, h2 em { font-style: normal; color: var(--accent); }

section { padding-block: clamp(64px, 9vw, 112px); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 44px; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px) 40px; }
.hero-grid { display: grid; gap: 28px; justify-items: start; }
.hero .lede { margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.proof b { font: 650 22px/1 var(--display); color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* Video */
.film { margin-top: 44px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0d0b12; box-shadow: 0 30px 80px -30px rgba(74, 29, 143, .35); position: relative; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #0d0b12; }
.film-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 14px; color: var(--muted); font-size: 14.5px; }

/* Problem */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.pcard .num { font: 700 40px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.pcard p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.65; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px 28px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
@media (max-width: 860px) { .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }
.step .tag { font: 600 12.5px/1 var(--mono); color: var(--accent); }
.step p { margin: 0; color: var(--ink-2); font-size: 17px; }
.step ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.ladder { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ladder span { font-size: 12.5px; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.ladder span:nth-child(n+4) { background: var(--accent); color: #fff; }
.ladder span:last-child { background: var(--lime); color: #1d2a00; }

/* Showcase */
.show { display: grid; gap: 64px; }
.show-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.show-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.show-row:nth-child(even) .show-text { order: 2; }
@media (max-width: 860px) { .show-row, .show-row:nth-child(even) { grid-template-columns: 1fr; gap: 22px; } .show-row:nth-child(even) .show-text { order: 0; } }
.show-text { display: grid; gap: 14px; }
.show-text p { margin: 0; color: var(--ink-2); }
.shot { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--panel); box-shadow: 0 18px 50px -24px rgba(29, 28, 26, .28); }
.quote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--lime); background: var(--lime-soft); color: var(--lime-ink); border-radius: 0 12px 12px 0; font-size: 15.5px; }

/* Why now / vision */
.band { background: var(--soft); border-block: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.why { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 8px; }
.why p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.vision { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .vision { grid-template-columns: 1fr; } }
.layers { display: grid; gap: 10px; }
.layer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: 15.5px; }
.layer small { color: var(--muted); font-size: 13.5px; }
.layer.core { background: var(--accent); border-color: var(--accent); color: #fff; }
.layer.core small { color: #e6def5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .layer.core { color: #160b2b; } :root:not([data-theme="light"]) .layer.core small { color: #2a1f45; } }
:root[data-theme="dark"] .layer.core { color: #160b2b; }
:root[data-theme="dark"] .layer.core small { color: #2a1f45; }

/* Privacy */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }
.principles div { border-top: 2px solid var(--accent); padding-top: 14px; display: grid; gap: 6px; }
.principles b { font: 650 17px/1.3 var(--display); }
.principles span { color: var(--ink-2); font-size: 16px; }

/* Founder strip */
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } }
.avatar { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 34px/1 var(--display); box-shadow: 0 0 0 6px var(--accent-soft); }
.founder p { margin: 6px 0 0; color: var(--ink-2); }

/* Final CTA */
.final { text-align: center; display: grid; justify-items: center; gap: 18px; }
.final .lede { margin: 0 auto; }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

/* Forms (try page) */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; max-width: 520px; width: 100%; box-shadow: 0 24px 60px -30px rgba(74, 29, 143, .3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field small { color: var(--muted); font-size: 13.5px; }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.field textarea { min-height: 84px; resize: vertical; }
.form-err { color: #b3261e; font-size: 14.5px; margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-err { color: #ffb4ab; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.ticks li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }

/* About */
.about-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; gap: 28px; } }
.portrait { aspect-ratio: 4 / 5; border-radius: 24px; background: linear-gradient(160deg, var(--accent) 0%, var(--accent-2) 60%, var(--lime) 140%); display: grid; place-items: center; color: #fff; font: 700 120px/1 var(--display); overflow: hidden; max-width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 30px 26px; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline li.now::before { background: var(--lime); }
.timeline .when { font: 600 13px/1.4 var(--mono); color: var(--accent); }
.timeline p { margin: 0; color: var(--ink-2); font-size: 17px; }
.prose { max-width: 68ch; display: grid; gap: 18px; }
.prose p { margin: 0; color: var(--ink-2); font-size: 18.5px; line-height: 1.75; }
.portrait > * { grid-area: 1 / 1; }
.portrait img { position: relative; z-index: 1; }
.timeline li.exit::before { background: var(--lime); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--lime); }
.timeline li.exit .when { color: var(--lime-ink); background: var(--lime-soft); justify-self: start; padding: 2px 8px; border-radius: 6px; }

/* Founder mirror: real profile visuals */
:root { --lv0: #e6def5; --lv1: #c9b8ec; --lv2: #9a7fd6; --lv3: #6b45b8; --lv4: #4a1d8f; --s0: #4a1d8f; --s1: #9a7fd6; --s2: #a8d61c; --s3: #d6cfc5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lv0: #2a2340; --lv1: #3f3166; --lv2: #6b52a8; --lv3: #9a7fd6; --lv4: #c9b8ec; --s0: #b9a0ff; --s1: #6b52a8; --s2: #b8e83a; --s3: #3a3733; } }
:root[data-theme="dark"] { --lv0: #2a2340; --lv1: #3f3166; --lv2: #6b52a8; --lv3: #9a7fd6; --lv4: #c9b8ec; --s0: #b9a0ff; --s1: #6b52a8; --s2: #b8e83a; --s3: #3a3733; }
.mirror { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .mirror { grid-template-columns: 1fr; } }
.m-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.m-card h3 { font-size: 22px; }
.m-tag { font: 600 12.5px/1 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.m-sub { margin: 0; color: var(--muted); font-size: 14px; }
.m-hero, .m-wide { grid-column: 1 / -1; }
.m-hero { background: var(--accent); border-color: var(--accent); color: #fff; padding: 32px; }
.m-hero .m-tag { color: var(--lime); }
.m-hero h3 { font-size: clamp(28px, 4vw, 40px); }
.m-hero p { margin: 0; font-size: 19px; opacity: .92; max-width: 60ch; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-hero { color: #160b2b; } :root:not([data-theme="light"]) .m-hero .m-tag { color: #2f3f00; } }
:root[data-theme="dark"] .m-hero { color: #160b2b; }
:root[data-theme="dark"] .m-hero .m-tag { color: #2f3f00; }
.poles { display: grid; gap: 14px; margin-top: 6px; }
.pole-top { display: flex; justify-content: space-between; font-size: 15px; }
.pole-top span { font-variant-numeric: tabular-nums; color: var(--muted); }
.pole-track { position: relative; height: 6px; border-radius: 3px; background: var(--lv0); margin: 8px 0 6px; }
.pole-track i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 2px solid var(--accent); transform: translate(-50%, -50%); }
.pole-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.split-bar { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 6px; }
.split-bar span { min-width: 3px; }
.s0 { background: var(--s0); } .s1 { background: var(--s1); } .s2 { background: var(--s2); } .s3 { background: var(--s3); }
.split-key { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); }
.split-key li { display: flex; align-items: center; gap: 6px; }
.split-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.split-key b { font-variant-numeric: tabular-nums; font-weight: 600; }
.depth { display: grid; gap: 10px; margin-top: 8px; }
.depth-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 14.5px; }
.depth-row > div { display: flex; gap: 2px; height: 16px; border-radius: 4px; overflow: hidden; }
.depth-n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-size: 13.5px; }
.lv0 { background: var(--lv0); } .lv1 { background: var(--lv1); } .lv2 { background: var(--lv2); } .lv3 { background: var(--lv3); } .lv4 { background: var(--lv4); }
.depth-row { grid-template-columns: 110px minmax(0, 1fr) 44px; }
.depth-row .depth-bar { justify-self: start; }
.m-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.m-list li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--lime); color: var(--ink-2); font-size: 16px; }
.m-list li b { color: var(--ink); font-weight: 650; }
.m-list.warn li { border-left-color: var(--accent-2); }

/* Hero glow and card polish (Linear/Vercel-style) */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 620px; background: radial-gradient(50% 60% at 30% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(40% 50% at 80% 10%, color-mix(in srgb, var(--lime) 18%, transparent), transparent 70%); pointer-events: none; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.pcard, .why, .m-card, .step { transition: border-color .2s ease, box-shadow .2s ease; }
.pcard:hover, .why:hover, .m-card:not(.m-hero):hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 12px 32px -18px rgba(74, 29, 143, .28); }
.pnum { font: 600 13px/1 var(--mono); color: var(--accent); }
.sec-head h2 + .lede { margin: 4px 0 0; }
.sec-head { gap: 18px; }

/* Built today: the context-layer stack, shown under the hero */
.built { width: 100%; margin-top: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 20px; display: grid; gap: 14px; }
.built-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15.5px; }
.built-head .muted { font-size: 14.5px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--lime-soft); } }
.built-stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .built-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .built-stack { grid-template-columns: 1fr; } }
.bl { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px 14px 14px 12px; border-radius: 14px; background: var(--accent-soft); }
.bl > div { display: grid; gap: 2px; font-size: 15px; padding-right: 36px; }
.bl > div span { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.bl-n { font: 600 12.5px/22px var(--mono); width: 22px; height: 22px; border-radius: 7px; text-align: center; background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bl-n { color: #160b2b; } }
:root[data-theme="dark"] .bl-n { color: #160b2b; }
.bl em { position: absolute; top: 12px; right: 12px; font: 600 11.5px/1 var(--body); font-style: normal; padding: 4px 7px; border-radius: 999px; }
.tag-live { background: var(--lime); color: #1d2a00; }
.tag-next { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
.bl-next { background: transparent; border: 1px dashed var(--line); }
