:root {
  --ground: #0A0F0D;
  --surface: #141B18;
  --raised: #1E2925;
  --line: #26322D;
  --muted: #3A4842;
  --text: #F2F5F3;
  --soft: #C9D2CE;
  --secondary: #9BA8A2;
  --lime: #C8F25A;
  --lime-text: #DDF79A;
  --ghost: #A99CFF;
  --radius: 24px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin: 0 0 12px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--soft); max-width: 36ch; margin: 20px 0 0; }
.muted { color: var(--secondary); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10, 15, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand b { color: var(--lime); font-weight: 800; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { color: var(--soft); font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 650; font-size: 16px; }
.btn-primary { background: var(--lime); color: var(--ground); }
.btn-primary:hover { background: var(--lime-text); color: var(--ground); }
.btn-ghost { border: 1.5px solid var(--muted); color: var(--text); }
.btn-ghost:hover { border-color: var(--soft); color: var(--text); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("img/hero.jpg") right center / cover no-repeat; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground) 30%, rgba(10,15,13,.6) 62%, rgba(10,15,13,.2)), linear-gradient(0deg, var(--ground), transparent 30%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.hero h1 b { color: var(--lime); font-weight: 800; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--secondary); }

.phone { border-radius: 46px; padding: 10px; background: var(--raised); border: 1px solid var(--muted); box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 120px rgba(200,242,90,.08); }
.phone img { border-radius: 37px; }
.hero .phone { max-width: 340px; justify-self: center; transform: rotate(2deg); }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--soft); font-size: 19px; margin: 16px 0 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .copy { order: 2; }
.feature .phone { max-width: 320px; justify-self: center; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; color: var(--soft); }
.feature li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0F0D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.feature p { color: var(--soft); margin: 16px 0 0; }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(200,242,90,.14); color: var(--lime); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.card p { color: var(--secondary); margin: 8px 0 0; font-size: 15px; }

.positions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.positions figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.positions img { aspect-ratio: 900 / 960; object-fit: contain; }
.positions figcaption { font-weight: 650; margin-top: 8px; }

.watch { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.watch .face { justify-self: center; width: 260px; border-radius: 64px; padding: 16px; background: #050706; border: 8px solid var(--raised); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.watch .face img { border-radius: 44px; }

.banner { position: relative; overflow: hidden; border-radius: 32px; border: 1px solid var(--line); padding: 72px 56px; background: var(--surface); }
.banner::before { content: ""; position: absolute; inset: 0; background: url("img/hero-play.jpg") right center / cover no-repeat; opacity: .7; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 35%, transparent); }
.banner > * { position: relative; z-index: 1; max-width: 520px; }
.banner .cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.privacy-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Docs pages */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 12px; }
.doc h2 { font-size: 26px; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 22px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--secondary); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: var(--soft); }

@media (max-width: 900px) {
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero .wrap, .feature, .watch { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .copy { order: 0; }
  .skills, .privacy-strip { grid-template-columns: 1fr; }
  .positions { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .banner { padding: 48px 26px; }
  .banner::before { opacity: .35; }
  .banner::after { background: linear-gradient(90deg, var(--surface) 20%, rgba(20,27,24,.6)); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero .phone { transform: none; } }

.nav nav a.btn-primary, .nav nav a.btn-primary:hover { color: var(--ground); }

/* ---------- Interactive app demo ---------- */
.demo-phone { width: 340px; max-width: 100%; justify-self: center; border-radius: 52px; padding: 11px; background: #1E2925; border: 1px solid var(--muted); box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 120px rgba(200,242,90,.08); }
.d-screen { position: relative; height: 680px; border-radius: 42px; overflow: hidden; background: var(--ground); font-size: 13px; line-height: 1.4; display: flex; flex-direction: column; }
.d-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 4px; font-weight: 600; font-size: 13px; }
.d-island { width: 92px; height: 26px; border-radius: 20px; background: #000; }
.d-body { flex: 1; overflow-y: auto; padding: 8px 14px 96px; scrollbar-width: none; }
.d-body::-webkit-scrollbar { display: none; }
.d-body button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.d-top { display: flex; align-items: center; gap: 2px; margin-bottom: 10px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.d-top img { width: 30px; height: 30px; } .d-top b { color: var(--lime); }
.d-gear { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); }
.d-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.d-eyebrow.dim { color: var(--secondary); }
.d-h1 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin: 3px 0 4px; }
.d-h1.s { font-size: 18px; }
.d-h2 { font-size: 16px; font-weight: 750; }
.d-h3 { display: flex; justify-content: space-between; align-items: baseline; font-weight: 750; font-size: 15px; margin: 14px 2px 8px; }
.d-h3 span { font-weight: 400; font-size: 11px; color: var(--secondary); }
.d-sub { color: var(--soft); font-size: 12px; } .dim { color: var(--secondary); } .lime { color: var(--lime); } .warn { color: #FFB464; } .ghost { color: #D3CCFF; } .small { font-size: 11px; }
.d-hero { border-radius: 18px; border: 1px solid var(--line); padding: 16px; min-height: 140px; background-size: cover; background-position: right center; margin-bottom: 12px; }
.d-card { background: var(--surface); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.d-focus { border: 1px solid rgba(200,242,90,.35); }
.d-focus p { color: var(--soft); margin: 8px 0; font-size: 12px; }
.d-small { font-size: 10px; color: var(--secondary); font-weight: 600; }
.d-cue { color: var(--lime-text); font-weight: 650; margin-bottom: 10px; }
.d-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.d-ring { position: relative; width: 38px; height: 38px; } .d-ring svg { transform: rotate(-90deg); }
.d-ring circle { fill: none; stroke-width: 4; stroke-linecap: round; } .d-ring .bg { stroke: var(--raised); } .d-ring .fg { stroke: var(--lime); }
.d-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.d-btn { display: block; width: 100%; height: 40px; border-radius: 999px; background: var(--lime) !important; color: var(--ground) !important; font-weight: 650 !important; margin-top: 4px; }
.d-btn.ghost { background: transparent !important; color: var(--text) !important; border: 1.5px solid var(--muted) !important; }
.d-list { padding: 4px 0; }
.d-li { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line) !important; }
.d-li:last-child { border-bottom: 0 !important; }
.d-li-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .d-li-t b { font-size: 12.5px; }
.d-li-t small { color: var(--secondary); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--secondary); font-size: 11px; font-weight: 700; }
.d-num.done { background: var(--lime); color: var(--ground); } .d-num.now { background: rgba(200,242,90,.16); color: var(--lime); }
.d-score { font-weight: 650; color: var(--soft); font-size: 12px; } .d-chev { color: var(--muted); font-size: 18px; }
.d-thumb { width: 38px; height: 46px; object-fit: contain; background: var(--stage, #18221E); border-radius: 8px; }
.d-flip img { height: 230px; margin: 0 auto; object-fit: contain; }
.d-bars { display: flex; gap: 3px; margin-top: 8px; } .d-bars i { flex: 1; height: 3px; border-radius: 2px; background: var(--muted); } .d-bars i.on { background: var(--lime); }
.d-nav { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; text-align: center; margin-bottom: 10px; font-size: 14px; }
.d-back { width: 32px; height: 32px; border-radius: 50%; background: var(--surface) !important; font-size: 20px !important; line-height: 1; }
.d-mini { color: var(--lime); font-size: 16px; }
.d-seg { display: flex; background: var(--raised); border-radius: 999px; padding: 3px; margin: 10px 0; }
.d-seg button { flex: 1; height: 30px; border-radius: 999px; font-weight: 600 !important; color: var(--soft) !important; }
.d-seg button.on { background: var(--lime) !important; color: var(--ground) !important; }
.d-figure { position: relative; } .d-figure img { height: 250px; margin: 0 auto; object-fit: contain; }
.d-badge { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ground); font-weight: 800; }
.d-badge.bad { background: #FFB464; }
.d-check { color: var(--soft); font-size: 12px; padding: 3px 0 3px 20px; position: relative; } .d-check::before { content: "✓"; position: absolute; left: 2px; color: var(--lime); font-weight: 800; }
.d-pager { display: flex; justify-content: center; gap: 5px; margin: 6px 0; } .d-pager button { width: 6px; height: 6px; border-radius: 3px; background: var(--muted) !important; padding: 0; }
.d-pager button.on { width: 16px; background: var(--lime) !important; }
.d-holehead { margin-bottom: 10px; } .d-right { text-align: right; }
.d-step { display: flex; align-items: center; gap: 8px; padding: 5px 0; } .d-step b { flex: 1; }
.d-step button { width: 32px; height: 32px; border-radius: 50%; background: var(--raised) !important; font-size: 18px !important; font-weight: 700 !important; }
.d-step button.plus { background: var(--lime) !important; color: var(--ground) !important; }
.d-step span { width: 24px; text-align: center; font-weight: 800; font-size: 17px; }
.d-table { font-size: 11.5px; } .d-tr { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; padding: 3px 0; border-radius: 6px; }
.d-tr.head { color: var(--secondary); font-weight: 600; } .d-tr.cur { background: rgba(200,242,90,.1); } .d-tr span { font-weight: 600; }
.d-tr.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; color: var(--lime); }
.d-foot { gap: 8px; } .d-foot .d-btn { margin: 0; }
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.d-two .d-card { text-align: center; } .d-two .best { border: 1.5px solid var(--lime); }
.d-two img { height: 120px; margin: 4px auto; object-fit: contain; } .d-big { display: block; font-size: 20px; font-weight: 800; }
.d-bar { display: grid; grid-template-columns: 70px 1fr 26px; gap: 8px; align-items: center; padding: 4px 0; font-size: 12px; }
.d-bar span { color: var(--soft); } .d-bar span.strong { color: var(--text); font-weight: 650; }
.d-bar i { height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; } .d-bar em { display: block; height: 100%; background: var(--muted); border-radius: 4px; }
.d-bar em.ghost { background: #A99CFF; } .d-bar em.best { background: var(--lime); } .d-bar b { text-align: right; }
.d-chart { width: 100%; height: 120px; margin: 8px 0; overflow: visible; }
.d-chart polyline { fill: none; stroke: var(--lime); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.d-chart .target { stroke: var(--secondary); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.d-chart circle { fill: var(--lime); } .d-chart circle.warn { fill: #FFB464; }
.d-tabs { position: absolute; left: 10px; right: 10px; bottom: 14px; display: flex; justify-content: space-around; padding: 6px; border-radius: 999px; background: rgba(30,41,37,.92); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.d-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 999px; font: 600 9.5px/1 inherit; color: var(--text); background: none; border: 0; cursor: pointer; }
.d-tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-tab.on { color: var(--lime); background: rgba(255,255,255,.08); }
.demo-hint { text-align: center; font-size: 13px; color: var(--secondary); margin-top: 14px; }
@media (max-width: 900px) { .d-screen { height: 640px; } }
