/* Fonts */
:root {
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;

  /* Palette */
  --bg: #09090b;
  --surface: #111114;
  --surface-alt: #18181c;
  --accent: #c9a96e;
  --accent-dim: rgba(201, 169, 110, 0.12);
  --text: #f0ece4;
  --text-muted: #6e6c6a;
  --border: rgba(240, 236, 228, 0.08);
  --done: #4ade80;
  --active: #c9a96e;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.35rem 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ── Hero ── */
.hero {
  min-height: 88vh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 4rem 3rem 5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(201, 169, 110, 0.05) 0%, transparent 55%),
    var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
}

/* Top row: text content + video panel side by side */
.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__inner { position: relative; }
.hero__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.hero__sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  font-weight: 300;
  line-height: 1.7;
}
.hero__cta-row {
  margin-top: 2.5rem;
}

/* Video panel */
.hero__video-panel {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  margin-top: 3rem;
}
.hero__video-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.hero__video-label svg {
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hero__canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 920px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.5);
}
#hero-video-canvas {
  display: block;
  width: 100%;
  height: 260px;
}

/* Play button overlay (appears on hover — for when a real video is added) */
.hero__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 11, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}
.hero__play-btn:hover { opacity: 1; }
.hero__play-btn svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 12px rgba(201, 169, 110, 0.4));
}

/* Pill badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201, 169, 110, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: rgba(201, 169, 110, 0.06);
  margin-bottom: 1.25rem;
}
.hero__badge::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--done);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--accent);
  transition: opacity 0.2s ease;
}
.btn-primary:hover {
  opacity: 0.85;
}
.hero__signal {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--done);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* ── Section label ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text-muted);
}

/* ── Studio ── */
.studio {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.studio__left {
  padding: 5rem 3rem 5rem 3rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.studio__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.studio__sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}
.studio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.studio__step {
  padding: 3.5rem 2.5rem;
  border-right: 1px solid var(--border);
}
.studio__step:last-child { border-right: none; }
.studio__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}
.studio__step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.studio__step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Pipeline ── */
.pipeline {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pipeline__visual { max-width: 900px; margin: 0 auto; }
.pipe-track {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}
.pipe-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  background: var(--surface-alt);
}
.pipe-dot--done { border-color: var(--done); background: rgba(74, 222, 128, 0.08); }
.pipe-dot--active { border-color: var(--accent); background: var(--accent-dim); }
.pipe-label {
  position: absolute;
  top: calc(100% + 0.75rem);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.05em;
}
.pipe-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.pipeline__stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pipeline__stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Output ── */
.output {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--border);
}
.output__top { margin-bottom: 3.5rem; }
.output__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 300px;
}
.output__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.output__card {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.output__card:nth-child(even) { border-right: none; padding-left: 2rem; }
.output__card:nth-child(3),
.output__card:nth-child(4) { border-bottom: none; }
.output__card:nth-child(3) { padding-top: 2.5rem; }
.output__card:nth-child(4) { padding-top: 2.5rem; padding-left: 2rem; border-right: none; }
.output__icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
}
.output__card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.output__card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Testimonials ── */
.testimonials {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--border);
}
.testimonials__inner { max-width: 1100px; }
.testimonials__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 3rem;
  max-width: 400px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.testimonials__card {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--border);
  position: relative;
}
.testimonials__card:last-child { border-right: none; padding-right: 0; padding-left: 2rem; }
.testimonials__card:not(:first-child):not(:last-child) { padding-left: 2rem; }
.testimonials__card--accent {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  margin: 0 1rem;
}
.testimonials__card--accent:first-child { margin-left: 0; padding-left: 0; }
.testimonials__card--accent:last-child { margin-right: 0; padding-right: 0; padding-left: 2rem; }
.testimonials__card--accent:not(:first-child):not(:last-child) { padding-left: 2rem; }
.testimonials__quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 0.6;
  margin-bottom: 1.25rem;
  display: block;
  letter-spacing: -0.06em;
}
.testimonials__quote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2rem;
}
.testimonials__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonials__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  flex-shrink: 0;
}
.testimonials__name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.testimonials__role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* ── Closing ── */
.closing {
  padding: 7rem 3rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.closing__line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.closing__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ── Footer ── */
.footer {
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.03em;
}
.footer__divider {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.footer__note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ── Waitlist form ── */
.waitlist-form {
  margin: 2.5rem auto 0;
  max-width: 460px;
}
.waitlist-form__row {
  display: flex;
  gap: 0;
  border: 1px solid var(--accent);
  overflow: hidden;
}
.waitlist-form__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.8rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  min-width: 0;
}
.waitlist-form__input::placeholder { color: var(--text-muted); }
.waitlist-form__input:focus { background: rgba(201, 169, 110, 0.04); }
.waitlist-form__btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 0.8rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}
.waitlist-form__btn:hover { opacity: 0.85; }
.waitlist-form__btn:disabled { cursor: not-allowed; opacity: 0.6; }
.waitlist-form__btn-loading { display: none; }
.waitlist-form__btn.is-loading .waitlist-form__btn-text { display: none; }
.waitlist-form__btn.is-loading .waitlist-form__btn-loading { display: flex; }
.waitlist-form__feedback {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  text-align: center;
  min-height: 1.2em;
}
.waitlist-form__feedback.is-success { color: var(--done); }
.waitlist-form__feedback.is-error { color: #f87171; }

@media (max-width: 480px) {
  .waitlist-form { max-width: 100%; }
  .waitlist-form__input { font-size: 0.75rem; padding: 0.7rem 0.85rem; }
  .waitlist-form__btn { padding: 0.7rem 0.9rem; font-size: 0.65rem; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 1.25rem 1.5rem; }
  .hero { padding: 3rem 1.5rem 4rem; min-height: auto; }
  .hero__signal { display: none; }
  .studio { grid-template-columns: 1fr; }
  .studio__left { border-right: none; border-bottom: 1px solid var(--border); padding: 3rem 1.5rem; }
  .studio__grid { grid-template-columns: 1fr; }
  .studio__step { border-right: none; border-bottom: 1px solid var(--border); padding: 2rem 1.5rem; }
  .studio__step:last-child { border-bottom: none; }
  .pipeline { padding: 3rem 1.5rem; }
  .pipe-track { gap: 0; }
  .pipe-label { display: none; }
  .pipeline__stat-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .pipeline__stat:last-child { grid-column: 1 / -1; }
  .output { padding: 3rem 1.5rem; }
  .output__grid { grid-template-columns: 1fr; }
  .output__card:nth-child(even) { padding-left: 0; border-right: none; }
  .output__card:nth-child(3),
  .output__card:nth-child(4) { padding-top: 0; }
  .output__card { border-right: none; }
  .closing { padding: 4rem 1.5rem; }
  .footer { padding: 2rem 1.5rem; flex-direction: column; gap: 0.75rem; }
}