:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --fg: #f5f5f5;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.08);

  --smpte-yellow:  #e5d538;
  --smpte-cyan:    #4ed9c9;
  --smpte-green:   #5bc85c;
  --smpte-magenta: #d24fbf;
  --smpte-red:     #e55454;
  --smpte-blue:    #4567e5;

  --font-display: "Bowlby One", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --pad: clamp(20px, 4vw, 40px);
}

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

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* Top SMPTE strip */
.bars {
  display: flex;
  height: 4px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 60;
}
.bars span {
  flex: 1;
  background: var(--c);
}

/* Nav — sticky under the SMPTE bar */
.nav {
  position: sticky;
  top: 4px;
  z-index: 50;
  padding: 14px 0;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__icon {
  height: 42px;
  width: 42px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
}
.brand__logo { height: 24px; width: auto; display: block; }
.footer__logo { height: 26px; width: auto; }
.brand__wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #fff;
}
.nav__cta {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.nav__cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 96px) var(--pad) clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero__signal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  filter: blur(0.5px) saturate(1.1);
  animation: signalGlitch 7s steps(1, end) infinite;
}
@keyframes signalGlitch {
  0%, 92%, 100% { transform: translate3d(0,0,0); filter: blur(0.5px) saturate(1.1); }
  92.5% { transform: translate3d(3px, -1px, 0); filter: blur(2px) saturate(1.4) hue-rotate(8deg); }
  93%   { transform: translate3d(-4px, 2px, 0); filter: blur(0.5px); }
  93.5% { transform: translate3d(2px, 0, 0); filter: blur(1.5px) saturate(0.6); }
  94%   { transform: translate3d(0,0,0); filter: blur(0.5px) saturate(1.1); }
  96%   { transform: translate3d(-2px, 0, 0); }
  96.5% { transform: translate3d(0, 1px, 0); }
}
.hero__bars {
  animation: barShift 11s ease-in-out infinite;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.hero__bars span {
  flex: 1;
  width: 100%;
}
@keyframes barShift {
  0%, 88%, 100% { transform: translateY(0) scaleY(1); }
  89% { transform: translateY(-4px) scaleY(1.015); }
  90% { transform: translateY(3px) scaleY(0.99); }
  91% { transform: translateY(0) scaleY(1); }
}
.hero__scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.4) 0,
    rgba(0, 0, 0, 0.4) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  animation: scan 0.18s linear infinite;
}
@keyframes scan {
  from { background-position: 0 0; }
  to   { background-position: 0 3px; }
}
.hero__noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, var(--bg) 75%);
}
.hero__noise::before {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
  top: 35%;
  animation: tear 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}
@keyframes tear {
  0%, 100% { top: 18%; opacity: 0; height: 2px; }
  8%  { top: 78%; opacity: 0.55; }
  9%  { top: 78%; opacity: 0; }
  37% { top: 42%; opacity: 0.4; height: 1px; }
  38% { top: 42%; opacity: 0; }
  66% { top: 65%; opacity: 0.6; height: 3px; }
  67% { top: 65%; opacity: 0; }
  85% { top: 25%; opacity: 0.3; }
  86% { top: 25%; opacity: 0; }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 28px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 168px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  color: #fff;
  text-shadow:
    0 0 30px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(86, 200, 92, 0.15);
}
.wordmark__img {
  display: block;
  margin: 0 auto;
  width: clamp(420px, 95vw, 1300px);
  height: auto;
  animation: chroma 4s steps(1, end) infinite;
}
@keyframes chroma {
  0% {
    transform: translate3d(-8px, 1px, 0) skewX(-2deg);
    filter:
      drop-shadow(16px 0 0 rgba(229, 84, 84, 0.85))
      drop-shadow(-16px 0 0 rgba(78, 217, 201, 0.85))
      drop-shadow(0 0 80px rgba(86, 200, 92, 0.25));
  }
  3% {
    transform: translate3d(7px, -2px, 0);
    filter:
      drop-shadow(11px 0 0 rgba(229, 84, 84, 0.7))
      drop-shadow(-11px 0 0 rgba(78, 217, 201, 0.7));
  }
  6% {
    transform: translate3d(-3px, 0, 0);
    filter:
      drop-shadow(5px 0 0 rgba(229, 84, 84, 0.5))
      drop-shadow(-5px 0 0 rgba(78, 217, 201, 0.5));
  }
  9%, 100% {
    transform: translate3d(0, 0, 0);
    filter:
      drop-shadow(2px 0 0 rgba(229, 84, 84, 0.35))
      drop-shadow(-2px 0 0 rgba(78, 217, 201, 0.35))
      drop-shadow(0 0 30px rgba(255, 255, 255, 0.08))
      drop-shadow(0 0 80px rgba(86, 200, 92, 0.18));
  }
}
.case-normal { text-transform: none; letter-spacing: 0.04em; }

.tagline {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 245, 0.72);
  margin: 0 0 32px;
}

.lede {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Waitlist form */
.waitlist-form {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.waitlist {
  display: flex;
  gap: 6px;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  transition: border-color 0.2s;
}
.waitlist-form:focus-within .waitlist {
  border-color: rgba(91, 200, 92, 0.5);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg);
  padding: 12px 18px;
  font: inherit;
  font-size: 16px;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:-webkit-autofill,
.waitlist input:-webkit-autofill:hover,
.waitlist input:-webkit-autofill:focus,
.waitlist input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset;
          box-shadow: 0 0 0 1000px var(--bg-2) inset;
  caret-color: var(--fg);
  border-radius: 999px;
  transition: background-color 5000s ease-in-out 0s,
              color 5000s ease-in-out 0s;
}
.waitlist button {
  position: relative;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.waitlist button:hover { background: var(--smpte-green); }
.waitlist button:active { transform: scale(0.97); }
.waitlist button[disabled] { opacity: 0.6; cursor: progress; }

.btn-spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.waitlist-form.loading .btn-label { visibility: hidden; }
.waitlist-form.loading .btn-spinner {
  display: inline-block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.waitlist button { position: relative; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.waitlist__msg {
  text-align: center;
  font-size: 13px;
  margin: 18px 0 0;
  min-height: 18px;
  line-height: 1.4;
}
.waitlist__msg.is-success { color: var(--smpte-green); }
.waitlist__msg.is-error   { color: var(--smpte-red); }

/* Sections */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 56px;
}

/* How it works */
.how {
  padding: clamp(60px, 8vw, 120px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.how .section-title { margin-bottom: 56px; color: #f6e9a8; }
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 1fr;
  gap: 28px;
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.step:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
}
.step__num {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.step h3 {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* Screens */
.screens {
  padding: clamp(48px, 6vw, 80px) var(--pad) clamp(60px, 8vw, 120px);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.screens .section-title { margin-bottom: 56px; color: #d4b5e8; }
.screens__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  align-items: end;
}
@media (max-width: 720px) {
  .screens__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 460px) {
  .screens__grid { grid-template-columns: 1fr; }
}
.phone {
  margin: 0;
  text-align: center;
}
.phone img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 32px;
  background: var(--bg-2);
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone img[src=""], .phone img:not([src]) { display: none; }
.phone figcaption {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f6e9a8;
  text-align: center;
  min-height: 2.6em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.3;
}

/* Final CTA */
.cta {
  position: relative;
  padding: clamp(80px, 10vw, 140px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 200, 92, 0.12), transparent 60%);
  pointer-events: none;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  margin: 0 0 14px;
  position: relative;
}
.cta > p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
  position: relative;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--pad);
  margin-top: 0;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__meta {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .hero { padding: 32px 18px 56px; }
  .how, .screens { padding: 48px 18px; }
  .cta { padding: 56px 18px; }
  .wordmark__img { width: min(92vw, 560px); }
  .tagline { font-size: 14px; margin-bottom: 24px; }
  .eyebrow { margin-bottom: 20px; }
  .step { padding: 22px 20px; }
  .step__num { font-size: 24px; margin-bottom: 14px; }
}
@media (max-width: 540px) {
  .waitlist {
    flex-direction: row;
    border-radius: 999px;
    padding: 5px;
    gap: 4px;
  }
  .waitlist input { padding: 12px 14px; font-size: 16px; min-width: 0; }
  .waitlist button { padding: 12px 18px; font-size: 13px; width: auto; flex-shrink: 0; }
  .waitlist__msg { font-size: 12px; margin-top: 16px; }
  .nav { padding: 10px 0; }
  .nav__inner { padding: 0 16px; }
  .nav__cta { font-size: 12px; padding: 7px 12px; }
  .brand { gap: 8px; }
  .brand__icon { height: 36px; width: 36px; border-radius: 8px; }
  .brand__logo { height: 18px; }
  .footer__logo { height: 22px; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .footer__meta { font-size: 12px; }
}
@media (max-width: 380px) {
  .brand__icon { height: 32px; width: 32px; border-radius: 7px; }
  .brand__logo { height: 16px; }
  .nav__cta { font-size: 11px; padding: 6px 10px; }
}
@media (max-width: 380px) {
  .waitlist input { padding: 10px 12px; font-size: 16px; }
  .waitlist button { padding: 10px 12px; font-size: 12px; }
}
