:root {
  --bg: #060b09;
  --surface: #0e1613;
  --surface2: #121d18;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eaf7f1;
  --muted: #8fa89c;
  --accent: #7cf2c8;
  --accent2: #3ddc97;
  --warn: #f2b84b;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, canvas { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #04110c; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---- Light from above ---- */
.sky { position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; overflow: hidden; z-index: 0; }
.sky::before, .sky::after { content: ""; position: absolute; left: 50%; top: -420px; width: 1400px; height: 1100px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(195, 210, 200, 0.2) 0%, rgba(195, 210, 200, 0.09) 28%, rgba(195, 210, 200, 0.03) 52%, transparent 72%);
  animation: breathe 9s ease-in-out infinite; }
.sky::after { width: 700px; height: 800px; top: -300px; opacity: 0.7; animation: sway 14s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes sway { 0%, 100% { transform: translateX(-52%); } 50% { transform: translateX(-48%); } }

/* ---- Nav ---- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(960px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 22px;
  background: rgba(14, 22, 19, 0.62); border: 1px solid var(--border); border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.brand { font-weight: 300; font-size: 22px; letter-spacing: 0.14em; color: var(--text); }
.brand b { font-weight: 600; color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); font-size: 14.5px; padding: 8px 14px; border-radius: 999px; display: block; }
.nav ul a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.pill-soon { font-size: 13.5px; color: var(--accent); border: 1px solid rgba(124, 242, 200, 0.35); background: rgba(124, 242, 200, 0.07); padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 760px) { .nav ul { display: none; } .nav { padding-left: 18px; } }

/* ---- Hero ---- */
.hero { position: relative; padding: 120px 0 40px; text-align: center; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 10px var(--accent2); }
h1 { font-weight: 300; font-size: clamp(38px, 6.4vw, 72px); line-height: 1.05; letter-spacing: -0.02em; margin: 18px auto 0; max-width: 14ch; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; margin: 18px auto 0; }
.stage { position: relative; width: min(560px, 100%); margin: 8px auto 0; aspect-ratio: 1; }
#hero-gem { margin: 0 auto; cursor: grab; touch-action: pan-y; }
#hero-gem:active { cursor: grabbing; }
.readout { margin-top: calc(min(100vw - 40px, 560px) * -0.09); position: relative; pointer-events: none; }
.readout .lbl { font-size: 15px; color: var(--text); }
.readout .num { font-weight: 200; font-size: 84px; line-height: 1; letter-spacing: -0.03em; }
.readout .num small { font-size: 28px; color: var(--muted); margin-left: 4px; font-weight: 300; }
.readout .st { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.controls { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { font: inherit; font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: all 0.25s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.chip[aria-pressed="true"] { color: #04110c; background: var(--accent); border-color: var(--accent); }
.btn { font: inherit; font-size: 15.5px; display: inline-flex; gap: 10px; align-items: center; cursor: pointer; color: var(--text); padding: 13px 24px; border-radius: 999px; border: 1px solid rgba(124, 242, 200, 0.3);
  background: linear-gradient(180deg, rgba(124, 242, 200, 0.16), rgba(124, 242, 200, 0.05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 30px rgba(61, 220, 151, 0.12); transition: transform 0.2s, box-shadow 0.3s; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 40px rgba(61, 220, 151, 0.22); text-decoration: none; }
.btn svg { width: 16px; height: 16px; fill: var(--accent); }
.hint { color: var(--muted); font-size: 13px; }
.soon { margin-top: 34px; color: var(--muted); font-size: 15px; }
.soon b { color: var(--text); font-weight: 500; }

/* ---- Sections ---- */
section { position: relative; padding: 100px 0; }
.kicker { color: var(--accent); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
h2 { font-weight: 300; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -0.02em; margin: 12px 0 0; max-width: 20ch; }
.sub { color: var(--muted); max-width: 56ch; margin: 16px 0 0; }
.grid { display: grid; gap: 16px; margin-top: 48px; grid-template-columns: repeat(6, 1fr); }
.card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 26px; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 60% at 50% -10%, rgba(124, 242, 200, 0.07), transparent 60%); }
.card h3 { margin: 0; font-size: 20px; font-weight: 500; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; }
@media (max-width: 900px) { .c2, .c3, .c4 { grid-column: span 6; } }
.viz { margin-top: 20px; }
.tag { display: inline-block; font-size: 12px; color: var(--accent); border: 1px solid rgba(124, 242, 200, 0.3); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; letter-spacing: 0.04em; }
.stat { font-weight: 200; font-size: 42px; letter-spacing: -0.02em; line-height: 1; }
.stat small { font-size: 16px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.cap { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: rgba(0, 0, 0, 0.25); margin-top: 16px; }
.seg button { font: inherit; font-size: 13.5px; color: var(--muted); background: none; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(124, 242, 200, 0.14); color: var(--accent); }
svg text { font-family: inherit; }
.curve { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.curve.ac { stroke: var(--accent); } .curve.dc { stroke: var(--accent2); }
.area { opacity: 0.18; }
.pills { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mini { flex: 1; min-width: 86px; text-align: center; padding: 10px 6px; border-radius: 999px; border: 1px solid rgba(124, 242, 200, 0.35); font-size: 20px; font-weight: 300; }
.mini span { display: block; font-size: 11.5px; color: var(--muted); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font-weight: 200; font-size: 44px; color: var(--accent); margin-bottom: 12px; letter-spacing: -0.02em; }

/* ---- Privacy band ---- */
.band { background: linear-gradient(180deg, transparent, rgba(124, 242, 200, 0.04), transparent); }
.list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; color: var(--muted); }
.list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
.list b { color: var(--text); font-weight: 500; }
.two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 28px; } }

/* ---- FAQ ---- */
.faq { margin-top: 40px; display: grid; gap: 10px; max-width: 820px; }
details { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); padding: 4px 22px; }
summary { cursor: pointer; padding: 16px 0; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 48px 0 60px; color: var(--muted); font-size: 14px; }
.foot { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
footer h4 { margin: 0 0 10px; color: var(--text); font-weight: 500; font-size: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--muted); } footer a:hover { color: var(--text); }
.legal-note { margin-top: 36px; font-size: 12.5px; line-height: 1.6; color: #6f857a; max-width: 80ch; }

/* ---- Reveal ---- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .sky::before, .sky::after { animation: none; } html { scroll-behavior: auto; } }

/* ---- Legal / doc pages ---- */
.doc { padding: 130px 0 80px; position: relative; }
.doc .wrap { max-width: 780px; position: relative; z-index: 1; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); max-width: none; margin: 8px 0 0; text-align: left; }
.doc h2 { font-size: 24px; font-weight: 500; margin: 44px 0 0; max-width: none; letter-spacing: 0; }
.doc h3 { font-size: 18px; font-weight: 500; margin: 26px 0 0; }
.doc p, .doc li { color: #b7cbc1; font-size: 16.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.doc mark { background: rgba(242, 184, 75, 0.16); color: #f6d58f; padding: 0 5px; border-radius: 5px; }
.draft { margin: 28px 0 0; padding: 14px 18px; border: 1px solid rgba(242, 184, 75, 0.4); background: rgba(242, 184, 75, 0.07); border-radius: 16px; color: #f6d58f; font-size: 14.5px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: #b7cbc1; }
.doc th { color: var(--text); font-weight: 500; }
.toc { margin: 28px 0 0; padding: 18px 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.toc ol { margin: 8px 0 0; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc a { color: var(--muted); font-size: 15px; }

/* hero scene canvas (port of the app's light) */
.scene { position: absolute; inset: 0 0 auto 0; z-index: 0; pointer-events: none; }
.scene canvas { display: block; width: 100%; }
.compat { margin: 10px auto 0; max-width: 60ch; font-size: 12.5px; color: #6f857a; }

/* ---- isometric illustration ---- */
.iso-wrap { margin-top: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }
.iso { width: 100%; height: auto; overflow: visible; }
.iso text { font-family: inherit; }
.iso-legend { list-style: none; margin: 28px auto 0; padding: 0; max-width: 900px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.iso-legend li { border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; background: var(--surface); }
.iso-legend b { display: block; font-weight: 500; font-size: 15px; }
.iso-legend span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 760px) { .iso-legend { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .iso-float { animation: isoFloat 6s ease-in-out infinite; }
  .iso-float.fb { animation-delay: -2s; } .iso-float.fc { animation-delay: -4s; }
  @keyframes isoFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
  .iso-gem-hover { animation: isoHover 5s ease-in-out infinite; }
  @keyframes isoHover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
  .iso-gem-turn { transform-box: fill-box; transform-origin: 50% 50%; animation: isoTurn 7s ease-in-out infinite; }
  @keyframes isoTurn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.62); } }
  .iso-facet { animation: isoFacet 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
  @keyframes isoFacet { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
  .iso-gem-glow { transform-box: fill-box; transform-origin: 50% 50%; animation: isoGlowP 4s ease-in-out infinite; }
  @keyframes isoGlowP { 0%, 100% { transform: scale(.9); opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }
  .iso-pulse { transform-origin: 0 0; animation: isoRing 3.6s ease-out infinite; opacity: 0; }
  .iso-pulse.d2 { animation-delay: -1.8s; }
  @keyframes isoRing { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
  .iso-flow { stroke-dasharray: 8 22; animation: isoDash 1.6s linear infinite; }
  @keyframes isoDash { to { stroke-dashoffset: -60; } }
  .iso-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: isoBar 3.4s ease-in-out infinite; }
  .iso-bar.b1 { animation-delay: -.5s; } .iso-bar.b2 { animation-delay: -1s; } .iso-bar.b3 { animation-delay: -1.5s; }
  @keyframes isoBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }
  .iso-bell { transform-box: fill-box; transform-origin: 50% 0; animation: isoBell 3s ease-in-out infinite; }
  @keyframes isoBell { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(9deg); } 40% { transform: rotate(-8deg); } 60% { transform: rotate(4deg); } 80% { transform: rotate(-2deg); } }
  .iso-coin { transform-box: fill-box; transform-origin: 50% 50%; animation: isoCoin 4s ease-in-out infinite; }
  @keyframes isoCoin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.25); } }
  .iso-ecg { stroke-dasharray: 300; animation: isoEcg 3.2s ease-in-out infinite; }
  @keyframes isoEcg { 0% { stroke-dashoffset: 300; } 55%, 100% { stroke-dashoffset: 0; } }
  .iso-level { animation: isoLevel 4s ease-in-out infinite; }
  @keyframes isoLevel { 0%, 100% { opacity: .85; } 50% { opacity: .5; } }
  .iso-core { animation: isoCore 2s ease-in-out infinite; }
  @keyframes isoCore { 0%, 100% { fill: #4fd9a6; } 50% { fill: #b9ffe6; } }
  .iso-chipglow { animation: isoGlowP2 3s ease-in-out infinite; }
  @keyframes isoGlowP2 { 0%, 100% { opacity: .15; } 50% { opacity: .38; } }
  .iso-wave { transform-origin: 0 0; animation: isoRing 2.4s ease-out infinite; opacity: 0; }
  .iso-wave.w2 { animation-delay: -1.2s; }
  .iso-bolt { animation: isoBolt 2.4s ease-in-out infinite; }
  @keyframes isoBolt { 0%, 100% { fill: rgba(124,242,200,.1); } 50% { fill: rgba(124,242,200,.5); } }
}
@media (prefers-reduced-motion: reduce) { .iso-dots { display: none; } }

/* legal tables: stack on phones so nothing is cramped */
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr:first-child:has(th) { display: none; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { color: var(--text); font-weight: 500; }
}
