/* ============================================================
   VIBE MEDIA — "Run-of-Show" Theme v1
   Stage-native, conversion-first. 80% dark / 15% space / 5% accent.
   Tokens first; every component reads tokens only.
   ============================================================ */

:root {
  /* Ground */
  --ground: #0e1013;
  --panel: #16191e;
  --panel-2: #1b1f25;
  --line: #262b33;
  --line-soft: #1e232a;

  /* Ink */
  --ink: #f4f5f7;
  --body: #a9afb9;
  --dim: #6d747f;

  /* The light beam — never the wall paint */
  --accent: #b14bf4;
  --accent-soft: rgba(177, 75, 244, 0.13);
  --accent-line: rgba(177, 75, 244, 0.38);
  --accent-glow: rgba(177, 75, 244, 0.22);

  /* Semantic (ops status, not brand accent) */
  --ok: #4ade80;

  /* Type */
  --font-sans: "Archivo", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  /* Rhythm */
  --space: clamp(1rem, 2vw, 2rem);
  --section-pad: clamp(5rem, 10vw, 9rem);
  --radius: 2px; /* flight-case sharp, not SaaS-rounded */

  /* Z scale */
  --z-nav: 50;
  --z-beam: 0;
  --z-content: 10;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0e1013; }

/* Scrollbar — quiet, desk-fader thin */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

img { max-width: 100%; display: block; }
a { color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- Type scale ---------- */
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
.display {
  font-size: clamp(2.9rem, 8.5vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
}
.h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { max-width: 62ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink); font-weight: 500; }

/* Mono metadata layer — the run-sheet paperwork */
.cue-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.cue-label::after { content: ""; height: 1px; width: 56px; background: var(--accent-line); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Status-bar nav ---------- */
.statusbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 3vw, 32px);
  background: rgba(14, 16, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}
.statusbar .brand {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: baseline; gap: 6px;
}
.statusbar .ops {
  display: flex; align-items: center; gap: 20px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.pip { display: inline-flex; align-items: center; gap: 7px; }
.pip i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dim);
  transition: background 400ms ease;
}
.pip.live i { background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
.pip.live { color: var(--body); }
.timecode { color: var(--body); min-width: 8ch; text-align: right; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #0e1013;
}
.btn-primary:hover { box-shadow: 0 0 24px var(--accent-glow); background: #bd64f6; }
.btn-primary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--dim); background: var(--panel); }
.btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.statusbar .btn { min-height: 36px; padding: 0 16px; font-size: 13px; }

/* ---------- Hero (CUE 00) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}
#beam-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: var(--z-beam);
}
/* Reduced-motion / no-JS fallback wash */
.hero .wash {
  position: absolute; inset: 0; z-index: var(--z-beam);
  background:
    radial-gradient(ellipse 60% 45% at 68% 8%, var(--accent-soft), transparent 70%),
    radial-gradient(ellipse 45% 35% at 20% 0%, rgba(177, 75, 244, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 1200ms ease;
}
.hero.lit .wash { opacity: 1; }
.hero-inner { position: relative; z-index: var(--z-content); width: 100%; }
.hero .cue-label { color: var(--dim); }
.hero .cue-label::after { background: var(--line); }

.hero .display .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero .display .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero.lit .display .word > span { transform: translateY(0); }

/* Meter-bar "I" — the Signal Mark */
.pulse-i {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.06em;
  height: 0.74em;
  padding: 0 0.03em;
  transform: translateY(-0.02em);
}
.pulse-i b {
  display: block;
  width: 0.09em;
  background: var(--accent);
  animation: meter 1.5s ease-in-out infinite;
}
.pulse-i b:nth-child(1) { height: 46%; animation-delay: 0s; }
.pulse-i b:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.pulse-i b:nth-child(3) { height: 66%; animation-delay: 0.4s; }
@keyframes meter { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.5); } }

.hero-sub {
  margin: 26px 0 34px;
  max-width: 52ch;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections as cues ---------- */
.cue { padding: var(--section-pad) 0 0; }
.cue-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.cue-head p { margin-top: 16px; }

/* Cue rows arm (light up) as they enter — desk channels */
.arm {
  opacity: 0.001;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.arm.armed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .arm { opacity: 1; transform: none; transition: none; }
  .pulse-i b { animation: none; }
  .hero .display .word > span { transform: none; transition: none; }
  .hero .wash { opacity: 1; transition: none; }
}

/* Stats ledger */
.ledger {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ledger > div {
  padding: 28px 24px 30px 0;
  border-bottom: 1px solid var(--line);
}
.ledger .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.ledger .num em { color: var(--accent); font-style: normal; }
.ledger .cap {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 12px;
}
@media (max-width: 720px) { .ledger { grid-template-columns: 1fr; } .ledger > div { padding-right: 0; } }

/* Service ledger rows — not cards */
.svc {
  border-top: 1px solid var(--line);
}
.svc-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.6fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(24px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 250ms ease;
}
.svc-row:hover { background: linear-gradient(90deg, var(--panel) 0%, transparent 80%); }
.svc-row::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-row.armed::before { transform: scaleY(1); }
.svc-row .idx {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--dim);
  padding-top: 6px;
}
.svc-row h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; }
.svc-row .desc p { margin: 0 0 10px; font-size: 15px; }
.svc-row .desc ul {
  margin: 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--dim); letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.svc-row .desc li::before { content: "— "; color: var(--accent); }
.svc-row .go {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding-top: 8px;
  white-space: nowrap;
  transition: color 200ms ease;
}
.svc-row .go:hover { color: var(--accent); }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 56px 1fr; }
  .svc-row .desc { grid-column: 2; }
  .svc-row .go { grid-column: 2; }
}

/* Run-of-show timeline */
.ros { border-left: 1px solid var(--line); margin-left: 8px; }
.ros-step {
  position: relative;
  padding: 0 0 clamp(2.4rem, 5vw, 3.6rem) clamp(24px, 4vw, 48px);
}
.ros-step:last-child { padding-bottom: 0; }
.ros-step::before {
  content: "";
  position: absolute; left: -5px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ground);
  border: 2px solid var(--dim);
  transition: border-color 400ms ease, box-shadow 400ms ease;
}
.ros-step.armed::before { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.ros-step .t {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.ros-step h3 { margin-bottom: 8px; }
.ros-step p { margin: 0; font-size: 15px; max-width: 56ch; }

/* Proof */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.quote blockquote {
  margin: 0; color: var(--ink);
  font-size: 15.5px; font-weight: 500; line-height: 1.55;
}
.quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--dim);
}
.sectors {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 200ms ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--dim);
  transition: transform 250ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq .a { padding: 0 0 24px; max-width: 64ch; margin: 0; font-size: 15px; }

/* ---------- Final cue: the form ---------- */
.final-cue {
  margin-top: var(--section-pad);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--panel);
  padding: var(--section-pad) 0;
}
.final-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; } }
.final-grid .h2 { margin-bottom: 18px; }

.showform { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.showform .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .showform { grid-template-columns: 1fr; } .showform .full { grid-column: 1; } }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 8px 2px 10px;
  transition: border-color 200ms ease;
}
.field select { cursor: pointer; }
.field select option { background: var(--panel); color: var(--ink); }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent-line); outline-offset: 4px;
}
.showform .btn-primary { justify-self: start; padding: 0 34px; min-height: 50px; font-size: 15px; }
.submit-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--body);
}
.trust-chip i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
  flex: none;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--dim);
  letter-spacing: 0.04em;
  margin: 0;
  align-self: center;
}
.form-ok {
  display: none;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-weight: 600;
}
.showform.sent { display: none; }
.form-ok.sent { display: block; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 56px;
  font-size: 13.5px;
  color: var(--dim);
}
footer .cols {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
footer .sig { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
footer a { color: var(--body); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .fine { margin-top: 22px; font-size: 12px; max-width: 72ch; }
