:root {
  --bg: #050505;
  --bg-soft: #0c0c0d;
  --panel: rgba(13, 13, 15, 0.84);
  --panel-strong: rgba(17, 17, 19, 0.96);
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.17);
  --text: #fffaf6;
  --muted: #b9b4b1;
  --red: #ff2b2b;
  --rose: #c90021;
  --peach: #ff7448;
  --lime: #ffd166;
  --blue: #ff9a7a;
  --violet: #e44242;
  --success: #bdf4c7;
  --danger: #ffb2b2;
  --shadow: 0 30px 100px rgba(0,0,0,.36);
  --r-lg: 34px;
  --r-md: 22px;
  --r-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 7% 8%, rgba(255,43,43,.22), transparent 28%),
    radial-gradient(circle at 89% 22%, rgba(255,116,72,.13), transparent 26%),
    linear-gradient(180deg, #080808 0%, #030303 100%);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  opacity: .35;
  z-index: -2;
}
.ambient-a { background: rgba(255,43,43,.24); left: -180px; top: 180px; }
.ambient-b { background: rgba(255,116,72,.16); right: -180px; top: 650px; }
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.shell { width: min(1380px, calc(100% - 32px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(5,5,5,.80);
  box-shadow: 0 16px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(22px);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.wordmark-icon {
  width: 43px; height: 43px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--peach));
  color: #160e15;
  font-weight: 900;
  letter-spacing: -.05em;
}
.wordmark strong { display: block; font-size: 1rem; }
.wordmark small { display: block; color: var(--muted); font-size: .72rem; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #eee8e5; text-decoration: none; font-size: .91rem; }
.nav-cta {
  justify-self: end;
  color: #130d14;
  text-decoration: none;
  font-weight: 800;
  background: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
}

.hero {
  min-height: 810px;
  display: grid;
  grid-template-columns: .97fr 1.03fr;
  gap: 42px;
  align-items: center;
  padding: 58px 0 70px;
}
.pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: #eee8e5;
  font-size: .84rem;
}
.pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--lime); box-shadow: 0 0 0 6px rgba(223,247,158,.08); }
.hero h1, .section-intro h2, .money-copy h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.035em;
}
.hero h1 {
  font-size: clamp(4.2rem, 6.6vw, 7.6rem);
  line-height: .89;
  margin: 24px 0 22px;
  max-width: 10.4ch;
}
.hero h1 em, .section-intro h2 em { font-weight: 400; color: var(--red); }
.hero-sub {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 19px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #170f18;
  background: linear-gradient(135deg, var(--red), var(--peach));
  box-shadow: 0 14px 34px rgba(244,110,159,.18);
}
.btn-glass { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.wide { width: 100%; }
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 32px;
}
.proof-row div { padding: 14px 0; border-top: 1px solid var(--line); }
.proof-row strong { display: block; font-size: .96rem; }
.proof-row span { display: block; color: var(--muted); font-size: .79rem; margin-top: 3px; }

.hero-collage {
  position: relative;
  min-height: 690px;
}
.photo-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: #161616;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { width: 67%; height: 650px; left: 7%; top: 0; transform: rotate(-2.2deg); }
.photo-main figcaption {
  position: absolute; left: 18px; bottom: 18px;
  padding: 11px 15px; border-radius: 999px;
  background: rgba(9,7,12,.65); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12);
  font-size: .83rem;
}
.photo-side { width: 38%; height: 280px; right: 0; }
.photo-side.top { top: 46px; transform: rotate(4deg); }
.photo-side.bottom { bottom: 14px; transform: rotate(2deg); }
.floating-stat {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(13,9,16,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px);
  padding: 12px 13px; border-radius: 15px;
}
.floating-stat span, .floating-stat strong { display: block; }
.floating-stat span { font-size: .72rem; color: var(--muted); }
.floating-stat strong { margin-top: 3px; font-size: .87rem; }

.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 15px 0;
  animation: drift 34s linear infinite;
  color: #ddd6d2;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.marquee-track b { color: var(--red); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-35%); } }

.studio, .how, .architecture { padding: 92px 0; }
.section-intro { display: grid; grid-template-columns: .55fr 1.2fr .9fr; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-intro.compact { grid-template-columns: .45fr 1fr; }
.eyebrow { color: var(--peach); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.section-intro h2 { margin: 0; font-size: clamp(3rem, 5vw, 5.2rem); line-height: .95; }
.section-intro p { margin: 0; color: var(--muted); line-height: 1.72; }

.app-shell {
  display: grid;
  grid-template-columns: 360px minmax(0,1fr);
  min-height: 850px;
  border-radius: 34px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(17,12,21,.72);
  box-shadow: var(--shadow);
}
.project-panel {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border-right: 1px solid var(--line);
}
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.step-number { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--red); font-weight: 800; font-size: .82rem; }
.panel-heading strong, .panel-heading small { display: block; }
.panel-heading small { color: var(--muted); margin-top: 1px; }
.upload-card {
  min-height: 215px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(255,43,43,.08), rgba(255,255,255,.025));
  cursor: pointer;
}
.upload-card.dragging { border-color: var(--red); background: rgba(255,43,43,.11); }
.upload-orb { width: 50px; height: 50px; border-radius: 999px; display: grid; place-items: center; background: var(--text); color: #120c15; font-size: 1.5rem; margin-bottom: 14px; }
.upload-card strong { font-size: .98rem; }
.upload-card > span:not(.upload-orb) { margin-top: 7px; color: var(--muted); font-size: .79rem; line-height: 1.5; }
.upload-card small { margin-top: 11px; color: var(--peach); }
.setting-block { margin-top: 18px; }
.setting-block label { display: block; color: #eadfe8; font-size: .82rem; font-weight: 700; margin-bottom: 7px; }
select, textarea, .search-box {
  width: 100%;
  color: var(--text);
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
}
select { padding: 12px 13px; }
option { background: #18111d; color: var(--text); }
textarea { min-height: 104px; padding: 13px; resize: vertical; }
.toggle-list { display: grid; gap: 8px; margin: 18px 0; }
.toggle-list label {
  display: flex; gap: 9px; align-items: center;
  padding: 10px 11px;
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  font-size: .82rem;
}
.toggle-list input { accent-color: var(--red); }
.process-card { margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.process-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.process-head span { color: var(--muted); font-size: .78rem; }
.process-head strong { font-size: .78rem; }
.progress-track { height: 8px; border-radius: 999px; margin-top: 10px; overflow: hidden; background: rgba(255,255,255,.07); }
.progress-bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--peach)); transition: width .25s ease; }
.process-card p { margin: 9px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }

.workspace-panel { padding: 26px; min-width: 0; }
.workspace-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.workspace-topline h3 { margin: 6px 0 0; font-size: 1.15rem; }
.workspace-actions { display: flex; gap: 8px; }
.micro-btn { border: 1px solid var(--line); color: #e9dde7; background: rgba(255,255,255,.045); border-radius: 999px; padding: 9px 11px; cursor: pointer; font-size: .77rem; font-weight: 700; }
.micro-btn:disabled { opacity: .4; cursor: not-allowed; }
.micro-btn.accent { color: #1a111b; background: var(--peach); border-color: transparent; }
.video-preview-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; margin-top: 20px; }
.video-stage { position: relative; background: #050407; border-radius: 23px; overflow: hidden; border: 1px solid var(--line); min-height: 330px; }
.video-stage video { width: 100%; height: 100%; max-height: 470px; object-fit: contain; background: #050407; }
.video-chip { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(7,5,8,.7); border: 1px solid rgba(255,255,255,.1); font-size: .67rem; font-weight: 800; letter-spacing: .1em; }
.video-stats { display: grid; gap: 10px; align-content: start; }
.video-stats div { padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.video-stats span, .video-stats strong { display: block; }
.video-stats span { color: var(--muted); font-size: .72rem; }
.video-stats strong { margin-top: 5px; font-size: 1.05rem; }
.transcript-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 22px 0 12px; }
.transcript-toolbar strong, .transcript-toolbar span { display: block; }
.transcript-toolbar span { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.search-box { width: min(260px, 100%); display: flex; align-items: center; gap: 7px; padding: 9px 11px; }
.search-box input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; }
.empty-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed rgba(255,255,255,.11); border-radius: 22px; padding: 24px; color: var(--muted); }
.empty-state strong { color: var(--text); }
.empty-state p { max-width: 440px; line-height: 1.6; margin-bottom: 0; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.06); color: var(--red); font-family: "Instrument Serif"; font-size: 1.35rem; margin-bottom: 13px; }
.transcript-list { max-height: 500px; overflow: auto; padding-right: 4px; }
.transcript-row { display: grid; grid-template-columns: 68px 1fr auto; gap: 11px; align-items: start; padding: 13px; border-radius: 16px; border: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.028); margin-bottom: 7px; cursor: pointer; transition: opacity .18s ease, background .18s ease, border-color .18s ease; }
.transcript-row:hover { border-color: rgba(255,255,255,.15); }
.transcript-row.removed { opacity: .48; background: rgba(255,255,255,.018); }
.transcript-row.ai-removed { border-color: rgba(255,43,43,.16); }
.transcript-time { color: var(--peach); font-size: .72rem; font-variant-numeric: tabular-nums; }
.transcript-text { line-height: 1.5; font-size: .88rem; }
.keep-switch { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(189,244,199,.12); color: var(--success); border: 1px solid rgba(189,244,199,.14); font-size: .77rem; }
.transcript-row.removed .keep-switch { color: var(--danger); background: rgba(255,178,178,.08); border-color: rgba(255,178,178,.12); }
.gap-row { display: flex; align-items: center; gap: 10px; color: #a99aa8; font-size: .69rem; margin: 3px 0 8px; }
.gap-row::before, .gap-row::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.065); }
.gap-pill { padding: 4px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.export-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(255,43,43,.08), rgba(255,116,72,.055)); border: 1px solid rgba(255,255,255,.09); }
.export-bar strong { display: block; margin-top: 4px; }
.export-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.export-controls select { width: auto; min-width: 130px; }
.result-wrap { margin-top: 20px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 18px; align-items: center; padding: 18px; border-radius: 24px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.result-copy h3 { margin: 8px 0 8px; font-family: "Instrument Serif"; font-size: 2.4rem; font-weight: 400; }
.result-copy p { color: var(--muted); line-height: 1.6; }
.result-wrap video { width: 100%; max-height: 500px; background: #050407; border-radius: 18px; }

.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.how-grid article { min-height: 300px; padding: 22px; border-radius: 26px; border: 1px solid var(--line); background: rgba(255,255,255,.032); }
.how-grid article > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 999px; color: #171019; background: var(--peach); font-weight: 900; }
.how-grid h3 { margin: 54px 0 9px; font-size: 1.05rem; }
.how-grid p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .88rem; }
.money-banner { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 520px; border-radius: 34px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-strong); }
.money-photo img { width: 100%; height: 100%; object-fit: cover; }
.money-copy { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.money-copy h2 { margin: 12px 0 16px; font-size: clamp(3rem, 5vw, 5.5rem); line-height: .92; }
.money-copy p { color: var(--muted); line-height: 1.7; }
.architecture-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.arch-card { padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.arch-card strong, .arch-card span { display: block; }
.arch-card strong { font-size: .92rem; }
.arch-card span { margin-top: 5px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.architecture-note { margin-top: 18px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255,207,155,.16); background: rgba(255,207,155,.05); color: #d5c7cf; line-height: 1.65; }
.footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding: 24px 0 38px; }
.footer p { color: var(--muted); font-size: .82rem; }

@media (max-width: 1150px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero h1 { max-width: 9.7ch; }
  .hero-collage { min-height: 620px; }
  .photo-main { height: 590px; }
  .section-intro { grid-template-columns: .45fr 1fr; }
  .section-intro p { grid-column: 2; }
  .app-shell { grid-template-columns: 320px minmax(0,1fr); }
  .video-preview-wrap { grid-template-columns: 1fr; }
  .video-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .how-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .architecture-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 6.2rem); }
  .hero-collage { min-height: 540px; }
  .photo-main { width: 72%; height: 510px; left: 1%; }
  .photo-side { width: 40%; height: 220px; }
  .section-intro, .section-intro.compact { grid-template-columns: 1fr; }
  .section-intro p { grid-column: auto; }
  .app-shell { grid-template-columns: 1fr; }
  .project-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .money-banner { grid-template-columns: 1fr; }
  .money-photo { min-height: 420px; }
  .architecture-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .result-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 1380px); }
  .nav { top: 7px; margin-top: 7px; padding: 9px; border-radius: 16px; }
  .wordmark-icon { width: 38px; height: 38px; }
  .nav-cta { font-size: .78rem; padding: 10px 12px; }
  .hero { gap: 18px; padding: 36px 0 52px; }
  .hero h1 { font-size: clamp(3.55rem, 16.5vw, 5.5rem); }
  .proof-row { grid-template-columns: 1fr; }
  .hero-collage { min-height: 455px; }
  .photo-main { width: 78%; height: 430px; }
  .photo-side { width: 42%; height: 175px; }
  .photo-side.top { top: 25px; }
  .photo-side.bottom { bottom: 8px; }
  .studio, .how, .architecture { padding: 66px 0; }
  .section-intro h2 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .workspace-panel, .project-panel { padding: 16px; }
  .workspace-topline, .transcript-toolbar, .export-bar, .footer { align-items: flex-start; flex-direction: column; }
  .workspace-actions, .export-controls { width: 100%; }
  .workspace-actions button { flex: 1; }
  .video-stats { grid-template-columns: 1fr; }
  .search-box { width: 100%; }
  .transcript-row { grid-template-columns: 58px 1fr auto; padding: 11px; }
  .export-controls select, .export-controls .btn { width: 100%; }
  .how-grid, .architecture-grid { grid-template-columns: 1fr; }
  .how-grid article { min-height: 240px; }
  .money-copy { padding: 28px 20px; }
}

/* V3 power layer: less cute, more performance/editorial */
.hero-collage::after { content:""; position:absolute; inset:5% 2% 6% 10%; border:1px solid rgba(255,43,43,.28); border-radius:38px; pointer-events:none; transform:rotate(1deg); }
.photo-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.32)), linear-gradient(135deg, rgba(255,0,0,.10), transparent 45%); pointer-events:none; }
.photo-card figcaption, .floating-stat { z-index:2; }
.app-shell { box-shadow: 0 44px 140px rgba(0,0,0,.52), 0 0 0 1px rgba(255,43,43,.035); }
.micro-btn.accent { box-shadow: 0 0 0 1px rgba(255,43,43,.25), 0 12px 28px rgba(201,0,33,.12); }
.transcript-row:hover { border-color: rgba(255,43,43,.34); }
.transcript-text mark { background: rgba(255,43,43,.24); color: #fff; padding: 0 .12em; border-radius: .2em; }
.transcript-text .filler { color: #ff8c8c; text-decoration: underline wavy rgba(255,43,43,.55); text-underline-offset: 3px; }

/* V4 word-level transcript editing */
.transcript-text.word-level {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 4px;
  align-items: baseline;
}
.word-token {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.55;
  padding: 1px 3px;
  margin: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease, color .15s ease;
}
.word-token:hover,
.word-token:focus-visible {
  background: rgba(255,255,255,.1);
  outline: none;
}
.word-token.filler-word {
  box-shadow: inset 0 -2px 0 rgba(255,84,61,.95);
}
.word-token.removed-word {
  opacity: .32;
  text-decoration: line-through;
}
.word-token.ai-removed-word:not(.removed-word) {
  opacity: .65;
}
.word-token.search-match {
  background: rgba(255,196,0,.22);
}
.referral-section {
  padding: 72px 0;
}
.referral-card {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr);
  gap: 28px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(120,0,0,.38), rgba(10,10,10,.94) 55%);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.referral-card h2 { margin: 8px 0 12px; }
.referral-card p { color: var(--muted, #b9b9b9); line-height: 1.65; }
.referral-form { display: grid; gap: 12px; }
.referral-form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #fff;
  padding: 14px 15px;
  font: inherit;
}
.referral-result {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}
.referral-result[hidden] { display:none; }
.referral-link-row { display:flex; gap:10px; align-items:center; }
.referral-link-row input { flex:1; min-width:0; }
.referral-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px; }
.referral-stats div { padding:12px; border-radius:14px; background:rgba(255,255,255,.05); }
.referral-stats strong { display:block; font-size:1.25rem; }
.referral-stats span { font-size:.78rem; color:#bdbdbd; }
@media (max-width: 820px) {
  .referral-card { grid-template-columns: 1fr; padding: 22px; }
  .referral-stats { grid-template-columns: 1fr 1fr 1fr; }
}

.access-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(14px);
}
.access-modal[hidden] { display: none; }
.access-dialog {
  width: min(520px, 100%);
  position: relative;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.13);
  background: radial-gradient(circle at top right, rgba(190,20,15,.28), transparent 40%), #0c0c0c;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
.access-dialog h2 { margin: 8px 0 10px; }
.access-dialog p { color: #bdbdbd; line-height: 1.65; }
.access-dialog small { display:block; color:#8f8f8f; margin-top:14px; }
.modal-close {
  position:absolute;
  right:16px;
  top:14px;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:1.4rem;
}

/* V4 launch pricing */
.pricing-section { padding: 74px 0 22px; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:26px; }
.price-card { position:relative; padding:24px; border-radius:26px; border:1px solid rgba(255,255,255,.10); background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); box-shadow:0 22px 60px rgba(0,0,0,.22); }
.price-card.featured { border-color:rgba(255,56,44,.45); background:radial-gradient(circle at top right,rgba(200,0,24,.22),transparent 38%),linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02)); transform:translateY(-8px); }
.price-badge { position:absolute; right:18px; top:18px; padding:6px 9px; border-radius:999px; background:#d80f25; color:white; font-size:.68rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.price-name { display:block; font-size:.82rem; color:#d0c4cb; text-transform:uppercase; letter-spacing:.15em; font-weight:800; }
.price { display:flex; align-items:baseline; gap:7px; margin:12px 0; }
.price strong { font-family:"Instrument Serif"; font-size:3.4rem; line-height:1; font-weight:400; }
.price small { color:var(--muted); }
.price-card > p { color:var(--muted); line-height:1.6; min-height:52px; }
.video-equivalent { padding:13px; border-radius:15px; border:1px solid rgba(255,255,255,.08); background:rgba(0,0,0,.24); }
.video-equivalent strong,.video-equivalent span { display:block; }
.video-equivalent strong { font-size:.7rem; color:#ff8b7e; text-transform:uppercase; letter-spacing:.11em; margin-bottom:4px; }
.video-equivalent span { font-size:.88rem; line-height:1.45; }
.price-card ul { margin:17px 0 20px; padding-left:18px; color:#c9bec4; line-height:1.75; font-size:.86rem; }
.pricing-note { max-width:820px; margin:16px auto 0; color:#81777d; text-align:center; font-size:.76rem; line-height:1.55; }
@media (max-width:900px) { .pricing-grid { grid-template-columns:1fr; } .price-card.featured { transform:none; } }

.turnstile-slot { min-height: 66px; margin: 4px 0 2px; display: flex; align-items: center; justify-content: flex-start; }
.turnstile-slot[hidden] { display: none !important; }
.referral-bonus { color: #f3d9d0; }


/* Visible creator account entry point */
.creator-account-nav-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.72);
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.creator-account-nav-btn:hover,
.creator-account-nav-btn:focus-visible {
  border-color: #ff2020;
  outline: none;
}
.creator-account-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  background: #ff2020;
}
.creator-account-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(16px);
}
.creator-account-modal[hidden] { display: none; }
.account-modal-open { overflow: hidden; }
.creator-account-card {
  width: min(520px, 100%);
  position: relative;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(circle at top right, rgba(255,32,32,.20), transparent 38%), #070707;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}
.creator-account-card h2 { margin: 8px 0 10px; color: #ff2020; }
.creator-account-card > p { color: #c8c1bd; line-height: 1.6; }
.creator-account-card small { display: block; margin-top: 14px; color: #8e8783; }
.creator-account-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.creator-account-form { display: grid; gap: 14px; margin-top: 20px; }
.creator-account-form label { display: grid; gap: 7px; }
.creator-account-form label span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ff6b63;
}
.creator-account-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: #000;
  color: #fff;
  padding: 14px 15px;
  font: inherit;
}
.creator-account-form input:focus {
  outline: none;
  border-color: #ff2020;
  box-shadow: 0 0 0 3px rgba(255,32,32,.12);
}
.creator-account-message {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #fff !important;
  font-weight: 700;
}
@media (max-width: 760px) {
  .creator-account-nav-btn {
    padding: 9px 12px;
    font-size: .74rem;
  }
  .creator-account-card { padding: 24px 20px; }
}
@media (max-width: 520px) {
  .creator-account-nav-btn {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 80;
    display: block;
    border-color: rgba(255,255,255,.18);
    background: linear-gradient(135deg, #ff2020, #c90021);
    box-shadow: 0 14px 38px rgba(255,32,32,.28);
    padding: 11px 15px;
    font-size: .78rem;
  }
}

/* Production black + red visual refinement */
:root {
  --bg: #000000;
  --bg-soft: #070707;
  --panel: rgba(7,7,7,.92);
  --panel-strong: rgba(10,10,10,.98);
  --text: #fffdf9;
  --muted: #b9b3af;
  --red: #ff2020;
  --rose: #d10016;
  --peach: #ff3b30;
  --violet: #ff2020;
}
body {
  background:
    radial-gradient(circle at 7% 8%, rgba(255,32,32,.13), transparent 25%),
    radial-gradient(circle at 90% 24%, rgba(209,0,22,.09), transparent 25%),
    #000;
}
.nav,
.app-shell,
.project-panel,
.workspace-panel,
.price-card,
.referral-card,
.process-card,
.upload-card,
.transcript-list,
.result-wrap {
  background-color: rgba(4,4,4,.94);
}
.hero h1,
.section-intro h2,
.money-copy h2 {
  color: var(--red);
}
.hero h1 em,
.section-intro h2 em {
  color: #fffdf9;
}
.eyebrow,
.price-name,
.transcript-toolbar strong,
.workspace-topline h3,
.panel-heading strong,
.result-copy h3 {
  color: var(--red);
}
.btn-primary,
.wordmark-icon {
  background: linear-gradient(135deg, #ff2020, #c90021);
  color: #fff;
  box-shadow: 0 14px 38px rgba(255,32,32,.18);
}
.nav-cta {
  background: var(--red);
  color: #fff;
}
.marquee-track { color: #f4efec; }
