/* ═══════════════════════════════════════════════════════════════════════
   Reelmaker
   Palette is pulled from the footage itself — Miami at golden hour:
   violet-black water, sunset magenta, amber, and the aqua off the bay.
   Deliberately not neutral-black-plus-one-accent.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink:    #170B29;
  --ink-2:  #241040;
  --ink-3:  #33195A;
  --hot:    #FF2D87;
  --sun:    #FFB020;
  --surf:   #2FE3D0;
  --lilac:  #C9A7FF;
  --cream:  #FFF6EC;
  --dim:    #A78FC4;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body:    "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  --r: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.shell { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ── atmosphere ─────────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.glow { position: fixed; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; }
.glow-a { width: 46vw; height: 46vw; top: -14vw; left: -10vw; background: rgba(255,45,135,.30); }
.glow-b { width: 40vw; height: 40vw; top: 24vw; right: -14vw; background: rgba(47,227,208,.16); }

main, .nav, .foot { position: relative; z-index: 1; }

/* ── nav ────────────────────────────────────────────────────────────── */
.nav { padding: 20px 0; }
.nav-in { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: var(--display); font-weight: 800; font-size: 21px;
  color: var(--cream); text-decoration: none; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 9px;
}
.brand-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hot), var(--sun));
}

.btn {
  font-family: var(--body); font-weight: 700; font-size: 15px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  display: inline-block; padding: 13px 24px; transition: transform .16s, box-shadow .16s, opacity .16s;
}
.btn-ghost {
  background: rgba(255,255,255,.07); color: var(--cream);
  border: 1px solid rgba(255,255,255,.16); padding: 9px 20px; font-size: 14px;
}
.btn-ghost:hover { background: rgba(255,255,255,.13); }
.btn-hot {
  background: linear-gradient(120deg, var(--hot), #FF6A3D 55%, var(--sun));
  color: #2A0715; box-shadow: 0 8px 26px rgba(255,45,135,.34);
}
.btn-hot:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,45,135,.46); }
.btn-hot:disabled { opacity: .55; transform: none; cursor: default; }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 72px; }
.hero-in {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
/* grid items default to min-width:auto and refuse to shrink below their
   content — that pushes the whole shell past the viewport on small screens */
.hero-in > *, .machine > *, .proof-in > * { min-width: 0; }

.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sun); margin: 0 0 18px;
  display: flex; align-items: center; gap: 8px;
}
.spark { color: var(--hot); }

h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(44px, 6.4vw, 82px); line-height: .96; letter-spacing: -.035em;
  margin: 0 0 22px;
}
h1 em { font-style: italic; color: var(--sun); }
.hl {
  background: linear-gradient(100deg, var(--hot), var(--lilac));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: 18px; color: var(--dim); max-width: 46ch; margin: 0 0 30px; }

.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input, .signup select {
  flex: 1 1 210px; min-width: 0;
  background: rgba(255,255,255,.06); color: var(--cream);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: 13px 22px; font-size: 15px; font-family: var(--body); outline: none;
  transition: border-color .16s, background .16s;
}
.signup input::placeholder { color: rgba(255,246,236,.42); }
.signup input:focus, .signup select:focus { border-color: var(--hot); background: rgba(255,255,255,.10); }
.signup select { flex: 0 1 200px; color: var(--dim); }

.form-status { min-height: 20px; font-size: 14px; color: var(--dim); margin: 14px 0 0; font-family: var(--mono); }
.form-status.ok  { color: var(--surf); }
.form-status.err { color: #FF7A9A; }
.microcopy { font-family: var(--mono); font-size: 12px; color: rgba(167,143,196,.75); margin: 14px 0 0; }

/* ── signature: raw stack → reel wall ───────────────────────────────── */
.machine {
  position: relative; padding-top: 26px;
  display: grid; grid-template-columns: auto 24px 1fr; gap: 12px;
  align-items: center; height: 520px;
}

/* labels sit on .machine, not inside .wall — .wall clips its overflow */
.tag-raw, .tag-out {
  position: absolute; top: 0; z-index: 4;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}
.tag-raw { left: 0; }
.tag-out { right: 0; color: var(--sun); }

.raw-stack { position: relative; width: 116px; height: 190px; }
.raw {
  position: absolute; width: 112px; border-radius: 9px; display: block;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  filter: saturate(.55) contrast(.9);
}
.raw.r1 { top: 8px;  left: 0;  transform: rotate(-7deg); }
.raw.r2 { top: 34px; left: 12px; transform: rotate(3deg); }
.raw.r3 { top: 62px; left: 4px;  transform: rotate(-2deg); }

.chute { display: flex; flex-direction: column; gap: 7px; align-items: center; }
.chute span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sun);
  animation: flow 1.5s ease-in-out infinite;
}
.chute span:nth-child(2) { animation-delay: .2s; }
.chute span:nth-child(3) { animation-delay: .4s; }
@keyframes flow { 0%,100% { opacity:.2; transform: translateX(-4px);} 50% { opacity:1; transform: translateX(4px);} }

/* four narrow columns rather than three wide ones: smaller tiles read as
   volume, which is the whole claim */
.wall {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 7px; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
}
.wall-col { overflow: hidden; }
.wall-track { display: flex; flex-direction: column; gap: 7px; will-change: transform; }
.wall-track img {
  width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.10);
}
.wall-col-1 .wall-track { animation: drift 44s linear infinite; }
.wall-col-2 .wall-track { animation: drift 34s linear infinite reverse; }
.wall-col-3 .wall-track { animation: drift 52s linear infinite; }
.wall-col-4 .wall-track { animation: drift 40s linear infinite reverse; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* ── ticker ─────────────────────────────────────────────────────────── */
.ticker {
  border-block: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(90deg, rgba(255,45,135,.13), rgba(255,176,32,.10));
  overflow: hidden; padding: 13px 0;
}
.ticker-row { display: flex; gap: 26px; align-items: center; width: max-content; animation: slide 34s linear infinite; }
.ticker-row span {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  text-transform: lowercase; letter-spacing: -.01em; white-space: nowrap;
}
.ticker-row i { color: var(--sun); font-style: normal; }
@keyframes slide { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ── shared section furniture ───────────────────────────────────────── */
section { padding: 92px 0; }
.sec-h {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -.03em;
  margin: 0 0 16px;
}
.sec-p { color: var(--dim); font-size: 17px; max-width: 56ch; margin: 0 0 40px; }

/* ── the math ───────────────────────────────────────────────────────── */
.math-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.price-card { border-radius: 20px; padding: 34px; border: 1px solid rgba(255,255,255,.13); }
.price-card.old { background: rgba(255,255,255,.04); }
.price-card.old .big { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 3px; }
.price-card.new {
  background: linear-gradient(150deg, rgba(255,45,135,.20), rgba(255,176,32,.11));
  border-color: rgba(255,45,135,.44);
}
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}
.big { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 72px); margin: 10px 0 6px; letter-spacing: -.04em; }
.big span { font-size: 22px; font-weight: 700; color: var(--dim); -webkit-text-fill-color: var(--dim); }
.price-card.new .big { background: linear-gradient(100deg, var(--sun), var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail { margin: 0 0 8px; font-size: 15.5px; }
.per { font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin: 0; }
.math-note { margin: 26px 0 0; color: var(--dim); font-size: 16px; }
.math-note strong { color: var(--sun); }

/* ── how ────────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { border-top: 2px solid var(--hot); padding-top: 20px; }
.steps li:nth-child(2) { border-color: var(--sun); }
.steps li:nth-child(3) { border-color: var(--surf); }
.num { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 10px 0 8px; letter-spacing: -.02em; }
.steps p { color: var(--dim); font-size: 15px; margin: 0; }

/* ── niches ─────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 11px; }
.chip {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid;
  transition: transform .16s;
}
.chip:hover { transform: rotate(-2deg) scale(1.04); }
.c1 { color: var(--surf); border-color: rgba(47,227,208,.5); }
.c2 { color: var(--sun);  border-color: rgba(255,176,32,.5); }
.c3 { color: var(--hot);  border-color: rgba(255,45,135,.5); }
.c4 { color: var(--lilac);border-color: rgba(201,167,255,.5); }
.c5 { color: var(--cream);border-color: rgba(255,246,236,.34); }
.c6 { color: #2A0715; background: linear-gradient(120deg, var(--sun), var(--hot)); border-color: transparent; }

/* ── proof ──────────────────────────────────────────────────────────── */
.proof-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.proof-copy h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px,4vw,46px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 18px; }
.proof-copy p { color: var(--dim); font-size: 16.5px; }
.proof-stat { font-family: var(--mono); font-size: 15px; color: var(--cream); margin-top: 20px; }
.proof-stat strong { color: var(--sun); font-size: 22px; }
.proof-video { display: flex; justify-content: center; }
.proof-video video {
  width: 100%; max-width: 268px; aspect-ratio: 9/16; object-fit: cover;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.16); background: #000;
  box-shadow: 0 26px 60px rgba(0,0,0,.55);
}

/* ── strategy ───────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px; padding: 26px; transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,45,135,.42); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 8px; letter-spacing: -.02em; }
.card p { color: var(--dim); font-size: 14.5px; margin: 0; }

/* ── anti-slop ──────────────────────────────────────────────────────── */
.slop { text-align: center; }
.slop-in h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 5.4vw, 64px); line-height: 1; letter-spacing: -.035em; margin: 0 0 22px;
}
.slop s { color: var(--dim); text-decoration-thickness: 4px; }
.hl2 { background: linear-gradient(100deg, var(--surf), var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slop p { color: var(--dim); font-size: 17.5px; max-width: 58ch; margin: 0 auto; }

/* ── cta ────────────────────────────────────────────────────────────── */
.cta-in { text-align: center; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px,5.4vw,62px); line-height: 1; letter-spacing: -.035em; margin: 0 0 32px; }
.signup-lg { max-width: 620px; margin-inline: auto; justify-content: center; }

/* ── foot ───────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid rgba(255,255,255,.11); padding: 30px 0; }
.foot-in { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }

/* ── auth pages ─────────────────────────────────────────────────────── */
.auth { display: flex; justify-content: center; padding: 80px 20px 110px; }
.auth-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px; padding: 42px; width: 100%; max-width: 440px;
}
.auth-card--wide { max-width: 660px; }
.auth-card h1 { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.03em; margin: 0 0 12px; }
.auth-sub { color: var(--dim); font-size: 15.5px; margin: 0 0 26px; }
.auth-form { display: flex; flex-direction: column; gap: 11px; }
.auth-form input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: var(--cream); padding: 14px 20px; border-radius: 999px;
  font-size: 15px; font-family: var(--body); outline: none;
}
.auth-form input:focus { border-color: var(--hot); }
.auth-form button {
  background: linear-gradient(120deg, var(--hot), #FF6A3D 55%, var(--sun));
  color: #2A0715; border: 0; padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 700; font-family: var(--body); cursor: pointer;
}
.auth-form button:disabled { opacity: .55; cursor: default; }
.auth-foot { color: var(--dim); font-size: 13px; margin: 22px 0 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--sun); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.dash-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 30px; }
.dash-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px; }
.dash-stat-label { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.dash-stat-value { font-family: var(--display); font-weight: 700; font-size: 22px; }
button.btn-ghost { font-family: var(--body); }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-in, .proof-in { grid-template-columns: 1fr; }
  .machine { height: 380px; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  section { padding: 68px 0; }
  .math-grid, .steps, .cards, .dash-grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .signup select, .signup input { flex: 1 1 auto; }
  .machine { grid-template-columns: auto 16px 1fr; height: 320px; gap: 8px; }
  .raw-stack { width: 92px; height: 160px; }
  .raw { width: 82px; }
  /* four columns is too many once the wall is only ~200px wide */
  .wall { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .wall-col-4 { display: none; }
  .tag-out { font-size: 9.5px; }
  .auth-card { padding: 28px 22px; }
  .foot-in { flex-direction: column; gap: 6px; }
}

/* ── a11y ───────────────────────────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-track, .ticker-row, .chute span { animation: none !important; }
  .card:hover, .chip:hover, .btn-hot:hover { transform: none; }
}
