/* Layout: full-bleed dark ground, 1200px content column, hairline rules, one white accent used only for emphasis. */
:root {
  --bg: #0c0c0c;
  --bg-2: #121212;
  --bg-3: #181818;
  --fg: #f4f4f4;
  --fg-2: #a3a3a3;
  --fg-3: #6b6b6b;
  --line: #262626;
  --line-2: #333333;
  --accent: #ffffff;
  --font-display: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  margin: 0; color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
::selection { background: var(--fg); color: var(--bg); }

/* ---------- cursor / atmosphere ---------- */
#cursor { position: fixed; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); pointer-events: none; z-index: 100; transform: translate(-50%, -50%); mix-blend-mode: difference; transition: width .25s var(--ease), height .25s var(--ease); display: none; }
#cursor.big { width: 56px; height: 56px; }
@media (hover: hover) and (pointer: fine) { #cursor { display: block; } }
#glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(600px 600px at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.045), transparent 60%); }
#grid-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.page { position: relative; z-index: 1; }

/* ---------- containers ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.section.flush { border-top: 0; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--fg-3); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 96px); }
h2 { font-size: clamp(32px, 4.6vw, 60px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--fg-2); max-width: 60ch; font-weight: 300; line-height: 1.55; }
p { margin: 0; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: .01em; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer; overflow: hidden; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease); white-space: nowrap; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--fg); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 500; }
.link .arrow { transition: transform .35s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- header ---------- */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(12,12,12,.72); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 22px; width: auto; }
.brand span { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 14px; color: var(--fg-2); position: relative; padding: 6px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 11px 20px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--fg); border-radius: 999px; padding: 9px 16px; font-size: 13px; cursor: pointer; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .menu-btn { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(80px, 12vw, 160px) clamp(60px, 8vw, 110px); }
.hero .wrap { display: grid; gap: 36px; }
.hero h1 .ghost-word { color: var(--fg-3); }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: end; padding-top: 24px; border-top: 1px solid var(--line); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.platforms span { display: inline-flex; align-items: center; gap: 10px; }
.platforms span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-3); }

/* ---------- reveal ---------- */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(28px); }
.lines h1 .w, .lines h2 .w { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; } .btn, .link .arrow, .btn .arrow { transition: none; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 36px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.stat:last-child { border-right: 0; }
.stat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.04), transparent 60%); opacity: 0; transition: opacity .5s; }
.stat:hover::after { opacity: 1; }
.stat .num { font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .5em; color: var(--fg-2); font-weight: 300; margin-left: 2px; }
.stat .lab { color: var(--fg-2); font-size: 15px; max-width: 28ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* ---------- section heads ---------- */
.head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.head .stack { gap: 18px; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* ---------- numbered steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 40px 32px; display: flex; flex-direction: column; gap: 18px; transition: background .4s; }
.step:hover { background: var(--bg-2); }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: .14em; }
.step p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- service cards ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; background: var(--bg); overflow: hidden; transform-style: preserve-3d; transition: border-color .4s, transform .5s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at var(--cx, 50%) var(--cy, 0%), rgba(255,255,255,.07), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card .ic { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--fg); }
.card .ic svg { width: 18px; height: 18px; }
.card p { color: var(--fg-2); font-size: 15px; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg-2); }
.card li { display: flex; gap: 10px; align-items: baseline; }
.card li::before { content: ""; width: 14px; height: 1px; background: var(--fg-3); flex: none; transform: translateY(-4px); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } .card { padding: 28px; } }

/* ---------- checklist ---------- */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.check { display: flex; gap: 16px; align-items: flex-start; }
.check .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--fg); display: grid; place-items: center; margin-top: 2px; }
.check .tick svg { width: 11px; height: 11px; }
.check strong { display: block; font-weight: 500; margin-bottom: 4px; }
.check p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* ---------- dashboard demo ---------- */
.dash { border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: .08em; }
.dash-bar .dots { display: flex; gap: 6px; }
.dash-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.dash-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.kpi { background: var(--bg-2); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.kpi .v { font-size: 30px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .d { font-size: 12px; color: var(--fg-2); font-family: var(--font-mono); }
.dash-chart { grid-column: 1 / -1; background: var(--bg-2); padding: 24px 20px 12px; }
.dash-chart svg { width: 100%; height: auto; display: block; }
.dash-note { padding: 12px 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .06em; }
@media (max-width: 760px) { .dash-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- closing cta ---------- */
.closing { text-align: center; padding-block: clamp(90px, 14vw, 180px); position: relative; overflow: hidden; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.closing h2 { max-width: 16ch; }
.closing .mark { height: 46px; opacity: .9; margin-bottom: 12px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px 32px; color: var(--fg-3); font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer .brand img { height: 20px; }
.footer h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; font-family: var(--font-mono); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--fg-2); transition: color .3s; }
.footer a:hover { color: var(--fg); }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- subpage hero ---------- */
.page-hero { padding-block: clamp(70px, 10vw, 130px) clamp(40px, 6vw, 80px); }
.page-hero .wrap { display: grid; gap: 24px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 80px); }

/* ---------- timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.tl { position: relative; padding: 28px 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tl::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--fg); background: var(--bg); transition: background .3s; }
.tl:hover::before { background: var(--fg); }
.tl .n { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .14em; }
.tl strong { font-weight: 500; }
.tl p { font-size: 14px; color: var(--fg-2); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; gap: 0; } .timeline::before { left: 7px; top: 0; bottom: 0; width: 1px; height: auto; } .tl { padding: 0 0 32px 32px; } }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 32px; background: var(--bg-2); display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 13px; color: var(--fg-2); display: flex; justify-content: space-between; align-items: baseline; }
.field label output { font-family: var(--font-mono); color: var(--fg); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line-2); border-radius: 2px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); border: 4px solid var(--bg-2); box-shadow: 0 0 0 1px var(--fg); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--fg); border: 4px solid var(--bg-2); box-shadow: 0 0 0 1px var(--fg); cursor: pointer; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.result { background: var(--bg-2); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.result .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.result .v { font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.result.hero-r { grid-column: 1 / -1; }
.result.hero-r .v { font-size: clamp(40px, 5vw, 64px); }
.result .d { font-size: 13px; color: var(--fg-2); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { background: var(--bg); padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.principle p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.quote { font-size: clamp(22px, 3vw, 36px); font-weight: 300; line-height: 1.35; max-width: 30ch; letter-spacing: -.01em; }
.quote em { font-style: normal; color: var(--fg-2); }

/* ---------- apply form ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.form { border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.progress { display: flex; gap: 6px; }
.progress i { flex: 1; height: 2px; background: var(--line-2); display: block; transition: background .4s; }
.progress i.on { background: var(--fg); }
.fstep { display: flex; flex-direction: column; gap: 18px; }
.fstep[hidden] { display: none; }
.in { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--fg); padding: 14px 16px; font-size: 15px; transition: border-color .3s; }
.in:focus { border-color: var(--fg); outline: none; }
textarea.in { min-height: 120px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; font-size: 14px; cursor: pointer; color: var(--fg-2); background: none; transition: all .3s; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.err { font-size: 13px; color: #f0a5a5; min-height: 1.2em; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; }
.done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.copybox { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 10px 10px 16px; font-family: var(--font-mono); font-size: 14px; }
.copybox button { background: var(--fg); color: var(--bg); border: 0; border-radius: 3px; padding: 8px 12px; font-size: 12px; cursor: pointer; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 22px; color: var(--fg-3); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--fg-2); font-size: 15px; max-width: 65ch; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 18px; }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.marquee-track span { display: inline-flex; align-items: center; gap: 24px; }
.marquee-track span::after { content: ""; width: 4px; height: 4px; background: var(--fg-3); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
