/* WZ-AudioOpt — design system
   Night-ops HUD. One accent, used sparingly. */

/* -------------------------------------------------------------------------- */
/* Tokens                                                                      */
/* -------------------------------------------------------------------------- */
:root {
  --bg: #090b08;
  --bg-elevated: #0e100d;
  --surface: #131612;
  --surface-2: #191c17;
  --border: #2a2e28;
  --border-strong: #3a3f37;
  --ink: #ecebe3;
  --ink-muted: #9a9c90;
  --ink-faint: #6a6d63;
  --accent: #43e07a;
  --accent-2: #7beda0;
  --accent-deep: #22a35a;
  --accent-ink: #07140b;
  --accent-soft: rgba(67, 224, 122, 0.1);
  --accent-glow: rgba(67, 224, 122, 0.09);
  --olive: #6e7c52;
  --olive-dim: rgba(110, 124, 82, 0.12);
  --hud: #8a9a90;
  --danger: #c45c4a;
  --ok: #7a9b4a;

  --font-display: "Rajdhani", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --n: 12px;
  --n-sm: 7px;
  --radius: 2px;
  --container: 72rem;
  --header-h: 4.25rem;
  --ease: 180ms ease;
  --ease-out: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-cta: 0 1px 0 rgba(255, 255, 255, 0.34) inset, 0 -2px 0 rgba(7, 20, 11, 0.22) inset, 0 0 0 1px rgba(67, 224, 122, 0.4), 0 10px 26px rgba(0, 0, 0, 0.42), 0 0 28px rgba(67, 224, 122, 0.16);
  --hero-cut: clamp(1.6rem, 4.8vw, 4.15rem);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --hatch: repeating-linear-gradient(-32deg, rgba(7, 20, 11, 0.09) 0 1px, transparent 1px 3px);
  --hud-clip: polygon(
    0 var(--n),
    var(--n) 0,
    calc(100% - var(--n)) 0,
    100% var(--n),
    100% calc(100% - var(--n)),
    calc(100% - var(--n)) 100%,
    var(--n) 100%,
    0 calc(100% - var(--n))
  );
}

/* -------------------------------------------------------------------------- */
/* Reset / base                                                                */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
}

img,
svg,
video { max-width: 100%; display: block; height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-2); }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main { flex: 1; position: relative; z-index: 1; }

/* Flat desaturated field — accent is not a wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 42% at 100% -10%, rgba(255, 255, 255, 0.028), transparent 58%),
    var(--bg);
}

/* Film grain — SVG feTurbulence, CSS-Tricks grainy-gradients pattern */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: var(--grain);
}

/* -------------------------------------------------------------------------- */
/* Typography                                                                  */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none;
  margin: 0;
}

h1 { font-size: clamp(2.15rem, 6.4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.03em; line-height: 1.25; }

p,
.lede,
.prose p,
.feature-card p,
.review-card blockquote,
.section-head p,
.page-head p {
  text-wrap: pretty;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lede {
  margin: 0;
  max-width: min(38rem, 100%);
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}

.prose {
  max-width: 42rem;
  color: var(--ink-muted);
}
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--accent); }
.prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.7rem;
  color: var(--ink);
}
.prose h3 {
  margin: 1.4rem 0 0.5rem;
  color: var(--ink);
}
.prose ul,
.prose ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin: 0.3rem 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.12em 0.4em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.prose details {
  border: 1px solid var(--border);
  padding: 0.95rem 1.15rem;
  margin: 0 0 0.7rem;
  background: var(--surface);
}
.prose summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
}
.prose summary::-webkit-details-marker { display: none; }
.prose details p:last-child { margin-bottom: 0; }
.prose details[open] summary { margin-bottom: 0.55rem; }

.guide-shot {
  margin: 0 0 1.3rem;
  max-width: 34rem;
  position: relative;
  isolation: isolate;
  clip-path: var(--hud-clip);
  background: linear-gradient(145deg, rgba(198, 214, 186, 0.42) 0%, var(--border-strong) 28%, var(--border) 58%, #171a15 100%);
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}
.guide-shot img {
  display: block;
  width: calc(100% - 2px);
  height: auto;
  margin: 1px auto 0;
  clip-path: var(--hud-clip);
}
.guide-shot figcaption {
  padding: 0.55rem 0.9rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--surface);
}
.guide-shot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  max-width: 42rem;
  margin: 0 0 1.3rem;
}
.guide-shot-row .guide-shot {
  flex: 1 1 15rem;
  max-width: none;
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                      */
/* -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--container));
  max-width: calc(100vw - 2rem);
  margin-inline: auto;
}

.section {
  padding: clamp(3.25rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}
.section-head h2 { margin-bottom: 0.55rem; }
.section-head p { margin: 0; color: var(--ink-muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.55rem 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--accent-ink); }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */
.btn {
  --n: 7px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  clip-path: var(--hud-clip);
  transition:
    background var(--ease-out),
    background-color var(--ease-out),
    border-color var(--ease-out),
    color var(--ease-out),
    box-shadow var(--ease-out),
    filter var(--ease-out),
    transform var(--ease-out);
}
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; }
  .hero .btn-row .btn,
  .cta-band .btn-row .btn { width: 100%; }
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: var(--accent-ink);
  background-color: var(--accent);
  background-image:
    var(--grain),
    var(--hatch),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 38%, transparent 58%),
    linear-gradient(180deg, #6aee96 0%, var(--accent) 46%, #2db866 100%);
  background-blend-mode: overlay, normal, normal, normal;
  box-shadow: var(--shadow-cta);
  filter:
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 18px rgba(67, 224, 122, 0.26));
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--accent-ink);
  background-color: var(--accent-2);
  background-image:
    var(--grain),
    var(--hatch),
    linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.1) 38%, transparent 64%),
    linear-gradient(180deg, #9af6b8 0%, #7beda0 46%, #4ae67f 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -2px 0 rgba(7, 20, 11, 0.16) inset,
    0 0 0 1px rgba(123, 237, 160, 0.7),
    0 14px 32px rgba(0, 0, 0, 0.48),
    0 0 40px rgba(67, 224, 122, 0.38);
  filter:
    drop-shadow(0 14px 26px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 26px rgba(67, 224, 122, 0.42));
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(1px);
  filter:
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 10px rgba(67, 224, 122, 0.16));
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.012) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 8px 18px rgba(0, 0, 0, 0.22);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--ink);
  border-color: rgba(67, 224, 122, 0.55);
  background:
    linear-gradient(180deg, rgba(67, 224, 122, 0.14) 0%, rgba(67, 224, 122, 0.04) 100%);
  box-shadow:
    0 1px 0 rgba(67, 224, 122, 0.22) inset,
    0 0 0 1px rgba(67, 224, 122, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.3);
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 12px rgba(67, 224, 122, 0.12));
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(1px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* HUD frames — CSS-Tricks notched boxes (clip-path bevel)                     */
/* -------------------------------------------------------------------------- */
.card,
.stats,
.cta-aside,
.cta-panel {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(198, 214, 186, 0.42) 0%, var(--border-strong) 28%, var(--border) 58%, #171a15 100%);
  clip-path: var(--hud-clip);
  box-shadow: none;
  filter:
    drop-shadow(0 16px 34px rgba(0, 0, 0, 0.5))
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.38));
}
.card::before,
.stats::before,
.cta-aside::before,
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  background-color: var(--surface);
  background-image:
    var(--grain),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, transparent 26%),
    linear-gradient(165deg, rgba(67, 224, 122, 0.055) 0%, transparent 42%),
    linear-gradient(180deg, #1c211a 0%, var(--surface) 46%, #10130f 100%);
  background-blend-mode: overlay, normal, normal, normal, normal;
  clip-path: var(--hud-clip);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(67, 224, 122, 0.055);
}
.card > *,
.cta-aside > *,
.cta-panel > * {
  position: relative;
  z-index: 1;
}
.card {
  padding: 1.35rem 1.3rem 1.4rem;
}

/* Generated HUD frame — 9-slice metal bezel on feature + review cards only.
   CTA / stats keep the CSS bevel so the strip and purchase panel stay uncluttered. */
.feature-card,
.review-card {
  --frame: 18px;
  --n: 10px;
  border: var(--frame) solid transparent;
  border-image-source: url("../img/frame-hud.webp");
  border-image-slice: 13%;
  border-image-width: var(--frame);
  border-image-repeat: stretch;
  padding: 1.05rem 1.05rem 1.15rem;
}
.feature-card::before,
.review-card::before {
  inset: 0;
  clip-path: none;
}

/* -------------------------------------------------------------------------- */
/* Forms (design-system, unused on home)                                       */
/* -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* Header / nav                                                                */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: #090b08;
  border-bottom: 1px solid var(--border);
}
.site-header.is-stuck {
  background: #080a07;
  border-bottom-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-text span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  border-radius: 0;
  transition: color var(--ease), background var(--ease);
}
.nav a:hover { color: var(--ink); background: transparent; }
.nav a[aria-current="page"] {
  color: var(--accent);
}

.header-cta {
  --n: 5px;
  flex-shrink: 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
}
.nav-toggle { flex-shrink: 0; }

.nav-toggle {
  --n: 5px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-strong);
  border-radius: 0;
  clip-path: var(--hud-clip);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 6px 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform var(--ease), opacity var(--ease);
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 29;
  background: var(--bg);
  padding: 1.25rem 1rem 2rem;
  overflow-y: auto;
}
body.nav-open .nav-drawer { display: block; }
.nav-drawer a {
  display: block;
  padding: 0.95rem 0.4rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-drawer a[aria-current="page"] { color: var(--accent); }
.nav-drawer .btn { width: 100%; margin-top: 1.25rem; }

@media (max-width: 440px) {
  .brand-text span { display: none; }
  .header-cta { padding: 0.46rem 0.62rem; font-size: 0.8rem; letter-spacing: 0.08em; }
}

@media (min-width: 880px) {
  .header-inner { gap: 1rem; }
  .header-cta { padding: 0.58rem 1rem; font-size: 0.92rem; }
  .nav { display: flex; }
  .nav-toggle,
  .nav-drawer { display: none !important; }
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}
.footer-brand:hover { color: var(--ink); }
.footer-brand img {
  width: 1.7rem;
  height: 1.7rem;
}
.footer-brand strong {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.15rem;
}
.footer-col p,
.footer-col a {
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 0.78rem;
}
.footer-bottom a { color: var(--ink-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink-muted); }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
}

/* -------------------------------------------------------------------------- */
/* Badges / chips — HUD tags, not pills                                        */
/* -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--bg-elevated);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 4px 10px rgba(0, 0, 0, 0.18);
  max-width: 100%;
  min-width: 0;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(48% 56% at 84% 46%, rgba(255, 255, 255, 0.03), transparent 62%),
    linear-gradient(180deg, #0c0e0b 0%, #070806 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hero-cut)), 0 100%);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 44rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.1rem, 5.5vw, 4rem) 0 calc(clamp(2.8rem, 6vw, 4.2rem) + var(--hero-cut));
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-atmosphere::before {
  content: "";
  position: absolute;
  right: 8%;
  top: 22%;
  width: min(38vw, 26rem);
  height: min(38vw, 26rem);
  background: radial-gradient(circle, rgba(67, 224, 122, 0.07), transparent 70%);
}
.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 6, 0.72) 0%, rgba(7, 8, 6, 0.28) 42%, transparent 70%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 4%, rgba(0, 0, 0, 0.35) 42%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, rgba(0, 0, 0, 0.35) 42%, #000 100%);
  opacity: 0.55;
}

.hero-panel {
  position: absolute;
  inset: -12% -8% -18% 36%;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.03) 0%, rgba(10, 12, 9, 0.08) 38%, transparent 70%),
    linear-gradient(180deg, rgba(22, 26, 20, 0.28), rgba(10, 12, 9, 0.04));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-panel-edge {
  position: absolute;
  inset: -12% -8% -18% 36%;
  background: var(--border-strong);
  clip-path: polygon(22% 0, calc(22% + 2px) 0, 2px 100%, 0 100%);
}

.hero-scope {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  height: min(48%, 26rem);
  z-index: 1;
  pointer-events: none;
}
.hero-wave {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.92;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 22%, #000 52%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 22%, #000 52%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}

.hero-mark-shift {
  position: absolute;
  z-index: 2;
  inset: 2.5% 0.35% calc(var(--hero-cut) + 2.5%) auto;
  width: min(52vw, 40rem);
  display: grid;
  place-items: center end;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 93%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, #000 0%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 93%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, #000 0%, #000 86%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}
.hero-mark {
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: right center;
  user-select: none;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 28px rgba(67, 224, 122, 0.12));
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: min(42rem, 100%);
  min-width: 0;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-faint);
}
.hero-kicker::before {
  content: "";
  width: 0.85rem;
  height: 0.7rem;
  border-left: 2px solid var(--accent);
  border-top: 1px solid var(--border-strong);
  background: none;
  flex-shrink: 0;
}
.hero-title {
  margin-bottom: 1.05rem;
  font-size: clamp(2.35rem, 7vw, 4.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.06;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
}
.hero-title-line {
  display: block;
  padding-bottom: 0.06em;
}
.hero .lede { margin-bottom: 1.45rem; }
.hero .btn-row { margin-bottom: 1.15rem; }

.hero-rail-wrap {
  position: relative;
  z-index: 3;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
}
@media (min-width: 840px) {
  .hero-rail-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--hero-cut) + 0.7rem);
    margin-top: 0;
  }
}
.hero-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-shadow: 0 2px 10px #070806, 0 0 18px #070806;
}
.hero-rail-tag {
  margin-left: auto;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
}

.slash-rule {
  height: var(--hero-cut);
  margin-top: calc(var(--hero-cut) * -1);
  position: relative;
  z-index: 4;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border-strong) 22%, var(--border-strong) 100%);
  clip-path: polygon(0 0, 100% 100%, 100% calc(100% - 2px), 0 2px);
  pointer-events: none;
}

@media (min-width: 840px) {
  .hero-copy { max-width: min(40rem, 54%); }
}

@media (min-width: 840px) and (max-width: 1299px) {
  .hero-mark-shift {
    width: min(48vw, 32rem);
    inset: 4% 0.2% calc(var(--hero-cut) + 3.5%) auto;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 18%, #000 92%, rgba(0, 0, 0, 0.65) 100%),
      linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 18%, #000 92%, rgba(0, 0, 0, 0.65) 100%),
      linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
  }
}

@media (min-width: 1440px) {
  .hero-mark-shift {
    width: min(48vw, 42rem);
    inset: 2% 0.6% calc(var(--hero-cut) + 2%) auto;
  }
}

@media (max-width: 839px) {
  .hero-stage { min-height: 0; }
  .hero-mark-shift {
    display: block;
    inset: auto;
    top: -2%;
    right: -6%;
    bottom: auto;
    width: min(88vw, 28rem);
    height: auto;
    opacity: 0.48;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 72% 68% at 48% 42%, #000 26%, transparent 72%);
    mask-image: radial-gradient(ellipse 72% 68% at 48% 42%, #000 26%, transparent 72%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .hero-mark {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .hero-panel,
  .hero-panel-edge { inset: -12% -18% -18% 52%; }
  .hero-copy { max-width: min(38rem, 100%); }
  .hero-rail-tag { margin-left: 0; }
  .hero-scope {
    height: 36%;
    bottom: 1%;
    opacity: 0.42;
  }
}

@media (max-width: 420px) {
  .hero-mark-shift {
    right: -10%;
    width: min(96vw, 22rem);
    opacity: 0.34;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark,
  .hero-mark-shift,
  .hero-panel,
  .hero-panel-edge { transform: none !important; }
}

/* -------------------------------------------------------------------------- */
/* Stats strip                                                                 */
/* -------------------------------------------------------------------------- */
.stats-wrap {
  position: relative;
  z-index: 2;
  padding-top: 0.35rem;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.stats {
  --n: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.stats div {
  position: relative;
  z-index: 1;
  padding: 1.05rem 1.1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.stats div:nth-child(2n) { border-right: 0; }
.stats div:nth-last-child(-n + 2) { border-bottom: 0; }
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.stats span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 719px) {
  .stats strong { font-size: 1.08rem; letter-spacing: 0.02em; }
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats div { border-bottom: 0; }
  .stats div:nth-child(2n) { border-right: 1px solid var(--border); }
  .stats div:last-child { border-right: 0; }
}

/* -------------------------------------------------------------------------- */
/* Features — index number as the mark, no icon-in-rounded-square              */
/* -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
}
.feature-card {
  min-width: 0;
  transition: filter var(--ease-out);
}
.feature-card:hover {
  filter:
    drop-shadow(0 18px 38px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 14px rgba(67, 224, 122, 0.08));
}
.feature-card:has(.feat-num)::after {
  display: none;
}
.feat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.feat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: var(--accent);
}
.feat-icon {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  margin: 0;
  color: var(--hud);
  border-radius: 0;
  background: none;
  box-shadow: none;
  flex-shrink: 0;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------------------- */
/* Reviews                                                                     */
/* -------------------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
}

.review-card {
  transition: filter var(--ease-out);
}
.review-card:hover {
  filter:
    drop-shadow(0 18px 38px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 14px rgba(67, 224, 122, 0.08));
}
.review-card::after {
  content: "“";
  position: absolute;
  top: 0.45rem;
  right: 1.05rem;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  opacity: 0.07;
  pointer-events: none;
}
.review-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
}
.review-card footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.review-card footer strong { font-size: 0.92rem; }
.review-card footer span {
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.stars {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

@media (min-width: 720px) {
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .feature-card,
  .review-card {
    --frame: 16px;
    --n: 8px;
  }
}

/* -------------------------------------------------------------------------- */
/* Section key-art / textures (generated plates, not CSS-only fills)           */
/* -------------------------------------------------------------------------- */
.section-tex-grid {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
}
.section-tex-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 11, 8, 0.84) 0%, rgba(9, 11, 8, 0.8) 48%, rgba(9, 11, 8, 0.9) 100%),
    url("../img/tex-grid.webp") center / cover no-repeat;
}
.section-tex-grid > .container,
.section-tex-plate > .container,
.section-tex-plate > .review-grid {
  position: relative;
  z-index: 1;
}

.section-tex-plate {
  position: relative;
  isolation: isolate;
}
.section-tex-plate::before {
  content: "";
  position: absolute;
  right: max(-5rem, -6vw);
  top: 52%;
  width: min(34rem, 50vw);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  translate: 0 -50%;
  background: url("../img/tex-plate.webp") center / contain no-repeat;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 78%, transparent 100%);
}


@media (max-width: 719px) {
  .section-tex-plate::before {
    right: -22vw;
    width: 78vw;
    opacity: 0.12;
  }
}

/* -------------------------------------------------------------------------- */
/* CTA / pricing band                                                          */
/* -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #10130e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  padding-block: clamp(4.75rem, 11vw, 8rem);
}
.cta-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cta-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 48%;
}
.cta-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 8, 0.22) 0%, rgba(9, 11, 8, 0.32) 48%, rgba(9, 11, 8, 0.52) 100%),
    linear-gradient(90deg, rgba(9, 11, 8, 0.18) 0%, rgba(9, 11, 8, 0.05) 50%, rgba(9, 11, 8, 0.2) 100%);
}
.cta-band > .container {
  position: relative;
  z-index: 1;
}
.cta-panel {
  --n: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  padding: 1.6rem 1.45rem;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
}
.price-note { color: var(--ink-muted); font-size: 0.95rem; }
.cta-aside {
  --n: 12px;
  padding: 1.3rem 1.3rem 1.4rem;
}
.cta-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.cta-aside li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.cta-aside li span { min-width: 0; flex: 1; }
.cta-aside svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--hud); }

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.7rem;
  padding: 0 0.55rem;
  background: linear-gradient(180deg, #f7f5ee, #e8e4d8);
  border-radius: 2px;
  color: #111;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 4px 10px rgba(0, 0, 0, 0.28);
}

@media (min-width: 860px) {
  .cta-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 2.2rem;
    padding: 1.85rem 1.7rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Inner pages                                                                 */
/* -------------------------------------------------------------------------- */
.page-atmosphere {
  position: relative;
  height: clamp(12rem, 32vw, 22rem);
  margin-bottom: -6.2rem;
  overflow: hidden;
  pointer-events: none;
}
.page-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}
.page-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 8, 0.86) 0%, rgba(9, 11, 8, 0.58) 36%, rgba(9, 11, 8, 0.22) 70%, rgba(9, 11, 8, 0.4) 100%),
    linear-gradient(180deg, rgba(9, 11, 8, 0.18) 0%, rgba(9, 11, 8, 0.08) 42%, var(--bg) 100%);
}
.page-head {
  position: relative;
  z-index: 1;
  padding: clamp(2.6rem, 7vw, 4.2rem) 0 1.65rem;
  margin-bottom: 0.4rem;
}
.page-head h1 { margin-bottom: 0.4rem; }
.page-head p { max-width: min(38rem, 100%); }
.page-head::after {
  content: "";
  display: block;
  width: 4.6rem;
  height: 2px;
  margin-top: 1.25rem;
  background: var(--accent);
}

@media (max-width: 719px) {
  .page-atmosphere {
    height: clamp(9.5rem, 44vw, 14rem);
    margin-bottom: -5.4rem;
  }
  .page-atmosphere img { object-position: 92% 38%; }
  .page-atmosphere::after {
    background:
      linear-gradient(90deg, rgba(9, 11, 8, 0.9) 0%, rgba(9, 11, 8, 0.78) 52%, rgba(9, 11, 8, 0.48) 100%),
      linear-gradient(180deg, rgba(9, 11, 8, 0.22) 0%, var(--bg) 100%);
  }
}
.page-body {
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}
.video-slot {
  aspect-ratio: 9 / 16;
  max-width: 220px;
  margin: 0 auto 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-slot.is-embed {
  aspect-ratio: auto;
  max-width: 325px;
  background: none;
  border: 0;
  display: block;
}

.error-404 {
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(4rem, 10vw, 6rem);
}
.error-404-code {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: clamp(3.6rem, 11vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 34px var(--accent-glow);
}
.error-404 h1 { margin-bottom: 0.7rem; }
.error-404 p { max-width: 34rem; margin: 0 0 1.6rem; color: var(--ink-muted); }

.merci-card {
  max-width: 30rem;
  margin: clamp(1.5rem, 5vw, 2.5rem) 0 clamp(3rem, 8vw, 5rem);
  padding: clamp(1.6rem, 4vw, 2.2rem);
}
.key-box {
  margin: 0 0 1.3rem;
  padding: 0.9rem 1.05rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  word-break: break-all;
}
.merci-back {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Utilities                                                                   */
/* -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
