/* ==========================================================================
   sections.css - hero + section-specific composition
   ========================================================================== */

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: clamp(600px, 90vh, 920px);
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(125% 120% at 50% 42%, transparent 58%, rgba(0,0,0,.5) 100%),
    var(--ink-900);
}
.hero::before {   /* fine grain so the dark field never bands */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04; mix-blend-mode: overlay;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(24px,4vw,72px);
  align-items: center; width: 100%;
}
.hero__eyebrow { margin-bottom: var(--s-5); }
.hero__granted { color: var(--text); white-space: nowrap; }
.hero__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 8px rgba(226,59,46,.7); }
.hero__h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.9rem, 1.6rem + 6vw, 6.2rem); line-height: .96; letter-spacing: -.015em;
  color: var(--text-hi); margin-bottom: var(--s-5);
}
.hero__sub { font-size: var(--fs-lead); color: var(--text-mut); max-width: 46ch; line-height: 1.5; margin-bottom: var(--s-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.hero__trust {
  margin-top: var(--s-7); font-family: var(--font-mono); font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint);
}
/* right stage: the part floats in air, one spotlight behind it, no card.
   holds a live WebGL canvas; the render poster paints instantly and cross-fades out
   the moment three.js is ready (or stays put if the device can't do WebGL). */
.hero__stage { position: relative; }
.hero__viewer {
  position: relative; display: block; aspect-ratio: 1 / 1;
  touch-action: none; cursor: grab;
}
.hero__viewer:active { cursor: grabbing; }
.hero__viewer::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(56% 54% at 52% 48%, #12161b 0%, var(--ink-850) 46%, transparent 76%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}
.hero__viewer canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100% !important; height: 100% !important; display: block;
  opacity: 0; transition: opacity .6s ease;
}
.hero__viewer.is-live canvas { opacity: 1; }
.hero__poster {
  position: absolute; inset: 0; margin: auto; z-index: 1;
  width: min(86%, 440px); height: auto;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.5));   /* render already carries its own ground shadow */
  transition: opacity .6s ease;
}
.hero__viewer.is-live .hero__poster { opacity: 0; }
.hero__viewer .stage__hint { z-index: 3; opacity: 0; }
.hero__viewer.is-live .stage__hint { opacity: .85; }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { order: -1; max-width: 360px; margin-inline: auto; width: 100%; }
  .hero__h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
}

/* scrolling marquee of fitment / trust */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-850); }
.marquee__track { display: flex; gap: var(--s-7); padding-block: 14px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--text-faint); display: inline-flex; align-items: center; gap: var(--s-3); }
.marquee__track span::after { content: "•"; color: var(--red-500); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee__track { animation: none; } }

/* ---- problem ---- */
.problem__panel {
  background: linear-gradient(120deg, rgba(197,40,28,.14), transparent 60%), var(--ink-850);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(28px,4vw,56px);
}

/* ---- how it works ---- */
.steps { counter-reset: step; }

/* ---- specs table ---- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-table th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--text-faint); font-weight: 700; width: 42%; }
.spec-table td { color: var(--text-hi); }

/* ---- investors ---- */
.invest {
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(61,90,128,.22), transparent 55%),
    linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line-2); border-radius: var(--radius-l);
  padding: clamp(28px,4vw,64px);
}

/* ---- app teaser ---- */
.appteaser { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; justify-content: space-between; }
.appbadge { display:inline-flex; align-items:center; gap:10px; padding:12px 20px; border:1px solid var(--line-2); border-radius: var(--radius); color: var(--text-faint); }
.appbadge small { display:block; font-size:.62rem; letter-spacing:.1em; text-transform:uppercase; }
.appbadge strong { font-family: var(--font-display); font-size:1.15rem; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,72px); align-items: start; }
.contact-card { display:flex; flex-direction:column; gap: var(--s-4); }
.contact-line { display:flex; gap:14px; align-items:flex-start; }
.contact-line svg { width:22px; height:22px; color: var(--red-400); flex:none; margin-top:2px; }
.contact-line b { color: var(--text-hi); display:block; font-family: var(--font-display); letter-spacing:.02em; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }

/* turnstile box keeps layout from jumping */
.cf-turnstile { min-height: 65px; }
