/* ═══════════════════════════════════════════════════════════
   LumaWall marketing site
   Palette and typography deliberately mirror the application so the
   site and the app read as one product: near-black surfaces, a single
   crimson accent, and the same display/body font pairing.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg:        #08090c;
  --bg-alt:    #0c0e13;
  --panel:     #11141b;
  --panel-2:   #171b24;
  --line:      #232833;
  --line-soft: #1b2029;

  /* Text */
  --text:      #eef1f6;
  --muted:     #98a1b2;
  --dim:       #6b7484;

  /* Brand */
  --accent:      #ff3b57;
  --accent-dim:  #c9253f;
  --accent-glow: rgba(255, 59, 87, .35);
  --cyan:        #35d6e8;

  --radius:    14px;
  --radius-lg: 20px;
  --wrap:      1200px;
  --nav-h:     68px;

  --font-display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "Cascadia Mono", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

/* ─────────────── buttons ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, #ff4a63, var(--accent-dim));
  color: #fff;
  box-shadow: 0 6px 22px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.22); }

.btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #313846; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: #fff; background: rgba(255,59,87,.08); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ─────────────── nav ─────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(8,9,12,.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); background: rgba(8,9,12,.92); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
}

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14.5px; color: var(--muted);
  transition: color .16s ease, background .16s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ─────────────── hero ─────────────── */
.hero { position: relative; padding: calc(var(--nav-h) + 88px) 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .30; filter: saturate(115%); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 560px at 22% 8%, rgba(255,59,87,.20), transparent 62%),
    radial-gradient(900px 500px at 88% 30%, rgba(53,214,232,.12), transparent 60%),
    linear-gradient(180deg, rgba(8,9,12,.62) 0%, rgba(8,9,12,.86) 46%, var(--bg) 100%);
}
.hero-in { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px; margin-bottom: 26px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px; color: var(--muted);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #35e07a; box-shadow: 0 0 0 4px rgba(53,224,122,.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }

.hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 700; }
/* Gradient text. When the headline is split into characters (see .ch-grad) the
   gradient must be painted per character; this rule is the fallback for the
   moments before the split runs, and for readers with JS disabled. */
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #ff8a5c 46%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 660px; margin: 24px 0 0;
  font-size: 17.5px; color: var(--muted);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 34px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 62px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats > div { background: var(--bg); padding: 22px 20px; }
.hero-stats b {
  display: block;
  font-family: var(--font-display); font-size: 27px; font-weight: 700;
  color: #fff; letter-spacing: -.02em;
}
.hero-stats span { font-size: 13px; color: var(--dim); }

/* ─────────────── strip ─────────────── */
.strip { border-block: 1px solid var(--line-soft); background: var(--bg-alt); }
.strip-in {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-block: 17px; flex-wrap: wrap;
}
.strip-in span {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .16em;
  color: var(--dim); white-space: nowrap;
}
.strip-in i { flex: 1; height: 1px; background: var(--line-soft); min-width: 12px; }

/* ─────────────── sections ─────────────── */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.sec-head { max-width: 720px; margin-bottom: 52px; }
.kicker {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); }
.sec-sub { margin: 18px 0 0; font-size: 16.5px; color: var(--muted); }

/* ─────────────── grids / cards ─────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); background: var(--panel-2); }

.card-ico {
  width: 44px; height: 44px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(255,59,87,.16), rgba(255,59,87,.04));
  border: 1px solid rgba(255,59,87,.24);
  border-radius: 11px;
}
.card-ico svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 18.5px; margin-bottom: 9px; }
.card p { margin: 0; font-size: 14.8px; color: var(--muted); }
.card code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px;
}

/* ─────────────── performance ─────────────── */
.perf { display: flex; flex-direction: column; gap: 26px; }
.perf-row { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: center; }
.perf-label b { display: block; font-family: var(--font-display); font-size: 16.5px; }
.perf-label span { font-size: 13.5px; color: var(--dim); }

.bar { height: 40px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; }
.bar-fill {
  height: 100%; width: var(--w, 50%);
  display: flex; align-items: center; padding-left: 13px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 8px;
  transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.bar-fill.high { background: linear-gradient(90deg, #7a1f22, #e2454a); }
/* Red is reserved for the "before" state. A red bar that means "this is bad"
   must never be used for a good value, or the chart reads backwards: a filled
   red bar labelled "GPU" looked like "GPU at 100%", the opposite of the point. */
.bar-fill.low { background: linear-gradient(90deg, #1f7a4d, #35e07a); }
.bar-fill span {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Chip row: a bar implies a scale. "Decoding happens on NVDEC" has no scale, so
   presenting it as a bar invited exactly the wrong reading. */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 40px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--line-soft); background: var(--panel); color: var(--dim);
}
.chip.good { border-color: rgba(53,224,122,.35); background: rgba(53,224,122,.08); color: #7ff0ac; }

.perf-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.note {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}
.note b { display: block; font-family: var(--font-display); font-size: 15.5px; margin-bottom: 5px; }
.note span { font-size: 14px; color: var(--muted); }

/* ─────────────── screenshots ─────────────── */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.shot:hover { border-color: var(--line); transform: translateY(-3px); }
.shot-wide { grid-column: 1 / -1; }
.shot img { width: 100%; height: auto; border-bottom: 1px solid var(--line-soft); }
.shot figcaption { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 3px; }
.shot figcaption b { font-family: var(--font-display); font-size: 15.5px; }
.shot figcaption span { font-size: 13.5px; color: var(--dim); }

/* ─────────────── compare table ─────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; font-size: 14.8px; }
.cmp thead th {
  background: var(--panel);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--muted); letter-spacing: .02em;
  border-bottom: 1px solid var(--line);
}
.cmp thead th.us { color: #fff; background: linear-gradient(180deg, rgba(255,59,87,.16), rgba(255,59,87,.05)); }
.cmp tbody tr { border-bottom: 1px solid var(--line-soft); }
.cmp tbody tr:last-child { border-bottom: 0; }
.cmp td { color: var(--muted); }
.cmp td:first-child { color: var(--text); }
.cmp td.us { background: rgba(255,59,87,.045); }
.cmp td.yes { color: #63e39b; font-weight: 500; }
.cmp td.no { color: var(--dim); }

/* ─────────────── download ─────────────── */
.dl-grid { align-items: stretch; }
.dl-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.dl-card:hover { border-color: var(--line); transform: translateY(-3px); }
.dl-card.featured { border-color: rgba(255,59,87,.42); box-shadow: 0 20px 50px -26px var(--accent-glow); }
.dl-tag {
  align-self: flex-start;
  margin-bottom: 16px; padding: 4px 11px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,59,87,.14); color: #ff8095;
  border: 1px solid rgba(255,59,87,.28); border-radius: 999px;
}
.dl-tag.alt { background: rgba(53,214,232,.12); color: #7fe6f2; border-color: rgba(53,214,232,.26); }
.dl-card h3 { font-size: 23px; margin-bottom: 10px; }
.dl-desc { margin: 0 0 20px; font-size: 14.5px; color: var(--muted); flex: 1; }
.dl-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--dim);
}
.dl-meta span { padding: 3px 9px; background: rgba(255,255,255,.045); border-radius: 6px; }

.req {
  margin-top: 34px; padding: 24px 26px;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.req b { font-family: var(--font-display); font-size: 16px; }
.req ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.req li { margin-bottom: 5px; }

/* ─────────────── faq ─────────────── */
.faq {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  margin-bottom: 11px;
  background: var(--panel);
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background .16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1;
  transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: rgba(255,255,255,.03); }
.faq p { margin: 0; padding: 0 22px 20px; font-size: 14.8px; color: var(--muted); }
.faq code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px;
}

/* ─────────────── final cta ─────────────── */
.cta-final {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(255,59,87,.16), transparent 68%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}
.cta-mark { width: 66px; height: 66px; margin: 0 auto 24px; border-radius: 16px; }
.cta-final h2 { font-size: clamp(27px, 4vw, 40px); }
.cta-final p { margin: 16px 0 30px; color: var(--muted); font-size: 16.5px; }
.cta-note { display: block; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }

/* ── kinetic headline: per-character reveal ─────────────────────────────── */
/* The characters are injected by main.js. Each one rises and un-blurs slightly
   after the last, which reads as the line being written rather than switched on.
   The delay comes from --i, so a 40-character headline costs one CSS rule. */
.ch { display: inline-block; }
/* The gradient is painted per character (a transformed child cannot inherit a
   parent's background-clip), which would restart the gradient inside every letter
   and read as stripes. background-size makes each character's slice the full
   width of the line, and background-position offsets it by the character's
   index, so the visible result is one continuous gradient across the headline.

   --ch-total is set by main.js to the number of characters in the line. */
.grad .ch-grad {
  background-image: linear-gradient(100deg, #e2454a 0%, #ff7a8a 42%, #3ad0e0 100%);
  background-size: calc(var(--ch-total, 12) * 100%) 100%;
  background-position: calc(var(--i, 0) * -100%) 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.reveal[data-split] .ch {
  opacity: 0;
  transform: translateY(.42em);
  filter: blur(9px);
}
.reveal[data-split].in .ch {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity .62s cubic-bezier(.16,1,.3,1),
    transform .62s cubic-bezier(.16,1,.3,1),
    filter .62s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i) * 32ms);
}

/* ── shiny text: a light sweep across the letters ───────────────────────── */
/* Used for small uppercase labels so they have life without shouting. */
.shiny {
  background-image: linear-gradient(100deg, var(--dim) 30%, #fff 50%, var(--dim) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine 3.6s linear infinite;
}
@keyframes shine {
  from { background-position: 220% 0; }
  to   { background-position: -120% 0; }
}

/* ── count-up numbers keep their final width ────────────────────────────── */
/* A figure that changes from "0" to "5.000+" reflows its container while it
   animates. Reserving the width with a tabular figure stops the layout jumping. */
[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .ch, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .shiny { animation: none; background-image: none; -webkit-text-fill-color: currentColor; color: var(--dim); }
}

/* ─────────────── footer ─────────────── */
.foot { background: var(--bg-alt); border-top: 1px solid var(--line-soft); }
.foot-in {
  display: flex; gap: 56px; flex-wrap: wrap;
  padding-block: 54px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-brand { display: flex; gap: 13px; align-items: flex-start; }
.foot-mark { width: 38px; height: 38px; border-radius: 10px; }
.foot-brand b { display: block; font-family: var(--font-display); font-size: 17px; }
.foot-brand span { font-size: 13.5px; color: var(--dim); }

.foot-links { display: flex; gap: 56px; flex-wrap: wrap; margin-left: auto; }
.foot-links > div { display: flex; flex-direction: column; gap: 9px; min-width: 140px; }
.foot-links b {
  font-family: var(--font-display); font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 3px;
}
.foot-links a { font-size: 14.5px; color: var(--muted); transition: color .16s ease; }
.foot-links a:hover { color: var(--accent); }

.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-block: 24px;
  font-size: 13px; color: var(--dim);
}
.partof b { color: var(--muted); font-weight: 600; }

/* ─────────────── responsive ─────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .perf-notes { grid-template-columns: 1fr; }
  .perf-row { grid-template-columns: 1fr; gap: 12px; }
  .foot-links { gap: 40px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 54px); padding-bottom: 68px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .grid-3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .sec { padding: 68px 0; }
  .strip-in i { display: none; }
  .strip-in { justify-content: flex-start; gap: 22px; }
  .foot-in { gap: 36px; }
  .foot-links { margin-left: 0; gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Reveal-on-scroll.
   The hidden state is applied by a class the script adds, never by the base
   style, so if JavaScript is blocked (or a crawler/screenshot tool renders the
   page without running it) every section is visible instead of invisible. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* If scripting is unavailable, nothing may stay hidden. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ─────────────── video ─────────────── */
.sec-head-center { max-width: 720px; margin-inline: auto; text-align: center; }
.sec-video { background: var(--bg); }

.video-frame {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -50px rgba(255, 59, 87, .5), 0 24px 60px -40px rgba(0,0,0,.9);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8,9,12,.7);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
