:root {
  --ink: #edf4ff;
  --muted: #a6b4ce;
  --faint: #72819e;
  --bg: #08111f;
  --surface: #101c31;
  --surface-2: #14243d;
  --line: rgba(153, 180, 224, .16);
  --mint: #6ce7d8;
  --blue: #78a8ff;
  --violet: #b99aff;
  --gold: #ffc66d;
  --pink: #ff91c8;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --radius: 1.25rem;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bg); line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, svg, canvas { display: block; max-width: 100%; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(153, 180, 224, .1); background: rgba(8, 17, 31, .82); backdrop-filter: blur(18px); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(1180px, calc(100% - 2.5rem)); min-height: 4.75rem; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: .72rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid rgba(108, 231, 216, .5); border-radius: .7rem; color: #08111f; background: linear-gradient(135deg, var(--mint), var(--blue)); box-shadow: 0 0 26px rgba(108, 231, 216, .24); font-size: .82rem; font-weight: 950; }
.brand small { display: block; color: var(--faint); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a { padding: .55rem .78rem; border-radius: .65rem; color: var(--muted); font-size: .87rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(120, 168, 255, .12); }
.nav-links .nav-cta { margin-left: .45rem; color: #08111f; background: var(--mint); font-weight: 800; }
.nav-links .nav-cta:hover { color: #08111f; background: #9af3e6; }
.menu-toggle { display: none; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: var(--surface); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 1.05rem; height: 2px; margin: .2rem auto; border-radius: 3px; background: currentColor; content: ""; }

.container { width: min(1180px, calc(100% - 2.5rem)); margin: auto; }
.section { position: relative; padding: 7rem 0; }
.section-tight { padding: 4rem 0; }
.eyebrow { margin: 0 0 1rem; color: var(--mint); font-size: .7rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.055em; }
h1 { max-width: 780px; margin-bottom: 1.4rem; font-size: clamp(3.3rem, 8vw, 6.85rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2.25rem, 5vw, 4rem); }
h3 { margin-bottom: .65rem; font-size: 1.2rem; letter-spacing: -.03em; }
.lede { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.page-hero { padding: 6rem 0 4rem; }
.page-hero h1 { max-width: 760px; font-size: clamp(3.1rem, 7vw, 5.5rem); }
.page-hero .lede { max-width: 720px; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.9rem; padding: .7rem 1rem; border: 1px solid transparent; border-radius: .72rem; color: #08111f; background: var(--mint); box-shadow: 0 12px 28px rgba(108, 231, 216, .16); font-size: .9rem; font-weight: 850; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); background: #a0f4e8; }
.button.secondary { border-color: var(--line); color: var(--ink); background: rgba(120, 168, 255, .08); box-shadow: none; }
.button.secondary:hover { border-color: rgba(108, 231, 216, .5); background: rgba(108, 231, 216, .1); }
.button.gold { color: #241707; background: var(--gold); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--mint); font-weight: 750; }
.text-link:hover { color: white; }

.hero { min-height: 740px; padding: 7.5rem 0 5rem; overflow: hidden; }
.hero::after { position: absolute; top: 5rem; right: -16rem; width: 38rem; height: 38rem; border-radius: 50%; background: radial-gradient(circle, rgba(133, 93, 220, .24), transparent 67%); content: ""; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 4rem; }
.hero-copy { padding: 2rem 0; }
.hero-copy h1 span { color: var(--mint); }
.hero-copy .lede { font-size: 1.2rem; }
.hero-note { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border: 1px solid rgba(108, 231, 216, .22); border-radius: 999px; color: var(--muted); background: rgba(108, 231, 216, .07); font-size: .75rem; font-weight: 700; }
.hero-note i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.hero-visual { position: relative; min-height: 540px; }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.window-card { position: absolute; z-index: 2; inset: 13% 3% auto 6%; min-height: 330px; overflow: hidden; border: 1px solid rgba(183, 211, 255, .22); border-radius: 1rem; background: rgba(13, 24, 43, .78); box-shadow: var(--shadow), 0 0 80px rgba(120, 168, 255, .12); transform: rotate(2deg); }
.window-bar { display: flex; align-items: center; gap: .38rem; height: 2.4rem; padding: 0 .85rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035); }
.window-bar i { width: .48rem; height: .48rem; border-radius: 50%; background: #ff879b; }
.window-bar i:nth-child(2) { background: var(--gold); }
.window-bar i:nth-child(3) { background: var(--mint); }
.window-title { margin-left: .45rem; color: var(--faint); font-size: .65rem; }
.code-preview { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 286px; }
.code-lines { padding: 1.35rem 1rem 1.2rem 1.25rem; color: #afc0dc; background: rgba(4, 10, 20, .34); font: .68rem/1.9 "SFMono-Regular", Consolas, monospace; }
.code-lines b { color: var(--violet); font-weight: 500; }
.code-lines em { color: var(--mint); font-style: normal; }
.code-lines strong { color: var(--gold); font-weight: 500; }
.mini-preview { display: grid; place-items: center; padding: 1.2rem; background: linear-gradient(145deg, rgba(120,168,255,.12), rgba(108,231,216,.04)); }
.mini-site { width: 100%; padding: 1.1rem; border: 1px solid rgba(255,255,255,.12); border-radius: .75rem; background: #f4f7fc; color: #17243b; }
.mini-site .mini-pill { width: 38%; height: .35rem; margin-bottom: 1rem; border-radius: 99px; background: #6ce7d8; }
.mini-site h3 { margin-bottom: .5rem; color: #17243b; font-size: 1.25rem; }
.mini-site p { margin-bottom: .9rem; color: #63718a; font-size: .65rem; }
.mini-site button { padding: .45rem .7rem; border: 0; border-radius: .4rem; color: #17243b; background: #ffc66d; font-size: .6rem; font-weight: 800; }
.float-label { position: absolute; z-index: 3; display: grid; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(17, 29, 51, .9); box-shadow: 0 16px 38px rgba(0,0,0,.24); font-size: .68rem; }
.float-label strong { color: var(--ink); font-size: .8rem; }
.float-label span { color: var(--faint); }
.float-label.one { top: 3%; right: 0; }
.float-label.two { right: 4%; bottom: 5%; }
.float-label.three { bottom: 12%; left: 0; }

.strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.025); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 5.5rem; border-right: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700; text-align: center; }
.strip-item:last-child { border-right: 0; }
.strip-item b { color: var(--ink); font-size: 1.05rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.section-heading h2 { max-width: 620px; margin-bottom: 0; }
.section-heading p { max-width: 350px; margin-bottom: .25rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { position: relative; padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(20, 36, 61, .9), rgba(12, 23, 41, .72)); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.card:hover { border-color: rgba(108, 231, 216, .28); }
.card-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.5rem; border: 1px solid rgba(108,231,216,.22); border-radius: .75rem; color: var(--mint); background: rgba(108,231,216,.08); font-weight: 900; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .91rem; }
.card .accent-blue { color: var(--blue); background: rgba(120,168,255,.1); }
.card .accent-gold { color: var(--gold); background: rgba(255,198,109,.1); }
.card .accent-violet { color: var(--violet); background: rgba(185,154,255,.1); }
.card .accent-pink { color: var(--pink); background: rgba(255,145,200,.1); }

.dark-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 1.4rem; background: linear-gradient(130deg, #13233d, #10182b 62%, #1b1834); box-shadow: var(--shadow); }
.dark-panel::after { position: absolute; right: -5rem; bottom: -7rem; width: 20rem; height: 20rem; border-radius: 50%; background: radial-gradient(circle, rgba(108,231,216,.18), transparent 65%); content: ""; }
.panel-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 2rem; padding: 3.2rem; }
.panel-grid h2 { max-width: 530px; }
.panel-grid p { max-width: 560px; color: var(--muted); }
.check-list { display: grid; gap: .7rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.check-list li { display: flex; gap: .65rem; align-items: start; }
.check-list li::before { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; border-radius: 50%; color: #08111f; background: var(--mint); content: "✓"; font-size: .72rem; font-weight: 900; line-height: 1.2rem; text-align: center; }
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.loop-step { min-height: 170px; padding: 1.05rem; border: 1px solid rgba(255,255,255,.12); border-radius: .9rem; background: rgba(255,255,255,.045); }
.loop-step span { display: block; margin-bottom: 2.2rem; color: var(--gold); font: .72rem monospace; }
.loop-step strong { display: block; margin-bottom: .4rem; }
.loop-step p { margin: 0; color: var(--muted); font-size: .78rem; }

.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lesson { min-height: 220px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lesson small { color: var(--mint); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lesson h3 { margin-top: 2.4rem; }
.lesson p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.lesson a { display: inline-flex; margin-top: 1.2rem; color: var(--mint); font-size: .82rem; font-weight: 800; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--faint); background: rgba(255,255,255,.035); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
td { color: var(--muted); font-size: .9rem; }
td strong { color: var(--ink); }
tr:last-child td { border-bottom: 0; }

.code-block { position: relative; overflow: auto; padding: 1.3rem; border: 1px solid var(--line); border-radius: .9rem; background: #060c16; color: #bed0ec; font: .82rem/1.7 "SFMono-Regular", Consolas, monospace; }
.code-block code { white-space: pre; }
.copy-button { position: absolute; top: .7rem; right: .7rem; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--muted); background: var(--surface); font-size: .72rem; cursor: pointer; }
.copy-button:hover { color: var(--ink); border-color: var(--mint); }
.code-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; align-items: start; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-row { display: flex; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.025); }
.feature-row .card-icon { flex: 0 0 auto; margin: 0; }
.feature-row p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }

.cta { padding: 5rem 2rem; text-align: center; }
.cta h2 { max-width: 720px; margin-inline: auto; }
.cta p { max-width: 560px; margin-inline: auto; color: var(--muted); }
.cta .button-row { justify-content: center; }

.faq { display: grid; gap: .7rem; max-width: 820px; }
details { border: 1px solid var(--line); border-radius: .8rem; background: rgba(255,255,255,.025); }
summary { padding: 1rem 1.1rem; color: var(--ink); cursor: pointer; font-weight: 750; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { float: right; color: var(--mint); content: "+"; font-size: 1.2rem; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--muted); font-size: .9rem; }

.legal { max-width: 820px; }
.legal h2 { margin-top: 3rem; font-size: 1.7rem; }
.legal h3 { margin-top: 2rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.25rem; }
.notice { padding: 1rem 1.1rem; border-left: 3px solid var(--gold); border-radius: .5rem; background: rgba(255,198,109,.08); color: var(--muted); }

.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); background: #060c16; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid p { max-width: 270px; color: var(--faint); font-size: .82rem; }
.footer-title { margin-bottom: .65rem; color: var(--ink); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: .35rem; }
.footer-links a { color: var(--faint); font-size: .82rem; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .74rem; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid, .panel-grid, .code-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 5rem; }
  .hero-visual { min-height: 480px; }
  .panel-grid { padding: 2rem; }
  .cards, .lesson-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .nav-shell, .container { width: min(100% - 1.25rem, 1180px); }
  .nav-shell { min-height: 4.2rem; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 4.2rem; right: .65rem; left: .65rem; display: none; align-items: stretch; flex-direction: column; padding: .6rem; border: 1px solid var(--line); border-radius: .85rem; background: #101c31; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem; }
  .nav-links .nav-cta { margin: .25rem 0 0; text-align: center; }
  .section { padding: 4.8rem 0; }
  .page-hero { padding: 4.5rem 0 3rem; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.4rem); }
  h2 { font-size: 2.5rem; }
  .hero-copy .lede { font-size: 1rem; }
  .hero-visual { min-height: 390px; margin-inline: -.2rem; }
  .window-card { inset: 15% 0 auto 0; min-height: 250px; }
  .code-preview { min-height: 205px; }
  .code-lines { padding: .85rem; font-size: .55rem; }
  .mini-preview { padding: .7rem; }
  .mini-site { padding: .7rem; }
  .mini-site h3 { font-size: .95rem; }
  .float-label { display: none; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { display: block; }
  .section-heading p { margin-top: 1rem; }
  .cards, .lesson-grid, .feature-list, .loop { grid-template-columns: 1fr; }
  .panel-grid { padding: 1.35rem; }
  .loop-step { min-height: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
