/* ── Factory Dark · styles.css ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Serif+Display&family=Barlow+Condensed:wght@600;700;800&display=swap');

:root {
  --ink:      #08090C;
  --navy:     #0F1620;
  --steel:    #2C3E52;
  --blue:     #1A7FC0;
  --blue-lt:  #2B9FE0;
  --teal:     #00A882;
  --ash:      #B8C4CF;
  --smoke:    #6B7B8D;
  --white:    #ffffff;
  --danger:   #C94A2A;
  --rule:     rgba(255,255,255,0.07);
  --card-bg:  rgba(8,9,12,0.68);
  --card-bd:  rgba(255,255,255,0.09);
  --max:      1040px;
  --fd:       'Barlow Condensed', sans-serif;
  --fb:       'DM Sans', sans-serif;
  --fs:       'DM Serif Display', serif;
  --ease:     cubic-bezier(0.22,1,0.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--fb);
  background: var(--ink);
  color: var(--ash);
  overflow-x: hidden;
}

/* ── Grain overlay ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 0 48px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,9,12,0.95) 0%, transparent 100%);
  backdrop-filter: blur(3px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

.brand-wrap { display: flex; align-items: center; gap: 14px; pointer-events: auto; }

.mark {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--fd); font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--white);
  user-select: none;
}

.mark .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 8px var(--blue);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.35; transform:scale(0.6); }
}

.vtag {
  font-family: var(--fb); font-size: 10px; font-weight: 500;
  color: var(--teal); letter-spacing: 0.1em;
  border: 1px solid rgba(0,168,130,0.3); padding: 3px 8px;
}

#targetLabel {
  font-family: var(--fb); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--smoke); text-transform: uppercase;
  transition: color 0.4s; pointer-events: auto;
}
#targetLabel.live { color: var(--teal); }

/* ── Nav dots ────────────────────────────────────────────── */
.nav-dots {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 9px;
}
.ndot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.15); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.ndot.active { background: var(--blue); transform: scale(1.8); box-shadow: 0 0 6px var(--blue); }

/* ── Scroller ─────────────────────────────────────────────── */
.scroller {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* ── Scenes ──────────────────────────────────────────────── */
.scene {
  position: relative; height: 100vh;
  scroll-snap-align: start; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}

.bg {
  position: absolute; inset: -8vh -8vw;
  width: calc(100% + 16vw); height: calc(100% + 16vh);
  object-fit: cover; object-position: center;
  transform: translate3d(0,0,0) scale(1.08);
  will-change: transform, filter;
  filter: saturate(0.88) contrast(1.02) brightness(0.83);
}

/* Per-scene scrim */
.scene[data-scene="0"] .bg { object-position: center 40%; }
.scene[data-scene="1"] .bg { object-position: center center; }
.scene[data-scene="2"] .bg { object-position: center 55%; }
.scene[data-scene="3"] { background: linear-gradient(160deg,#0A1622 0%,#0E1C2C 50%,#07101A 100%); }
.scene[data-scene="4"] .bg { object-position: center 30%; }

.scene::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 55% 50%, rgba(0,0,0,0.12), rgba(0,0,0,0.72)),
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.38) 40%, rgba(0,0,0,0.72));
}

/* Left accent rule */
.scene::after {
  content: ''; position: absolute; left: 36px; top: 18%; bottom: 18%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(26,127,192,0.4) 35%, rgba(26,127,192,0.4) 65%, transparent);
  z-index: 3;
}
.scene[data-scene="0"]::after,
.scene[data-scene="1"]::after { opacity: 0; }
.scene[data-scene="3"]::after,
.scene[data-scene="4"]::after {
  background: linear-gradient(to bottom, transparent, rgba(0,168,130,0.35) 35%, rgba(0,168,130,0.35) 65%, transparent);
}

/* Grid texture for non-photo scenes */
.scene[data-scene="3"]::before {
  background:
    linear-gradient(rgba(0,168,130,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,130,0.022) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ── Content ─────────────────────────────────────────────── */
.content {
  position: relative; z-index: 5;
  width: 100%; max-width: calc(var(--max) + 60px);
  padding: 36px 96px 40px 96px;
}

/* ── Type system ─────────────────────────────────────────── */
.overline {
  font-family: var(--fb); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.05s, transform 0.5s var(--ease) 0.05s;
}
.overline::before { content: ''; display: block; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.overline.teal { color: var(--teal); }

.display-quote {
  font-family: var(--fs); font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.2; color: var(--white); margin-bottom: 32px; font-weight: 400;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease) 0.12s, transform 0.6s var(--ease) 0.12s;
}
.display-quote em { color: var(--blue-lt); font-style: normal; }

.attr {
  font-family: var(--fb); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke);
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.22s, transform 0.5s var(--ease) 0.22s;
}
.attr::before { content: ''; display: block; width: 26px; height: 1px; background: var(--blue); }

.hero-title {
  font-family: var(--fd); font-size: clamp(64px, 9vw, 112px);
  font-weight: 800; line-height: 0.88;
  letter-spacing: -0.02em; text-transform: uppercase; color: var(--white);
  margin-bottom: 22px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s var(--ease) 0.08s, transform 0.65s var(--ease) 0.08s;
}
.hero-title .accent { color: var(--blue); }

.section-title {
  font-family: var(--fd); font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.01em; text-transform: uppercase; color: var(--white);
  margin-bottom: 16px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease) 0.08s, transform 0.6s var(--ease) 0.08s;
}

.lead {
  font-size: 17px; font-weight: 400; line-height: 1.72; color: var(--ash);
  max-width: 500px; margin-bottom: 22px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.18s, transform 0.5s var(--ease) 0.18s;
}
.body-copy {
  font-size: 15px; line-height: 1.75; color: #8FA0B0; max-width: 480px; margin-bottom: 16px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.26s, transform 0.5s var(--ease) 0.26s;
}
.caption { font-size: 12px; color: var(--smoke); font-style: italic; }

/* Activate animations */
.scene.is-active .overline,
.scene.is-active .display-quote,
.scene.is-active .attr,
.scene.is-active .hero-title,
.scene.is-active .section-title,
.scene.is-active .lead,
.scene.is-active .body-copy,
.scene.is-active .stats-strip,
.scene.is-active .signup-block { opacity: 1; transform: translateY(0); }

/* ── Stats ───────────────────────────────────────────────── */
.stats-strip {
  display: flex; gap: 28px; margin-bottom: 26px;
  padding-bottom: 22px; border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.14s, transform 0.5s var(--ease) 0.14s;
}
.stat-num { font-family: var(--fd); font-size: 38px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 4px; }
.stat-lbl { font-size: 11px; font-weight: 500; color: var(--ash); margin-bottom: 2px; line-height: 1.3; }
.stat-src { font-size: 10px; color: var(--smoke); font-style: italic; }

/* ── Countdown ───────────────────────────────────────────── */
.launch-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--smoke); margin-bottom: 7px;
}
.countdown {
  display: flex; align-items: baseline; gap: 1px;
  font-family: var(--fd); margin-bottom: 24px;
}
.seg { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.seg strong { font-size: 34px; font-weight: 800; color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; }
.seg span { font-size: 8px; font-weight: 600; letter-spacing: 0.1em; color: var(--smoke); text-transform: uppercase; margin-top: 3px; }
.seg.ms strong { font-size: 20px; color: var(--smoke); font-weight: 600; }
.cd-sep { font-size: 20px; font-weight: 700; color: var(--steel); padding-bottom: 8px; }
.cd-sep.dot { font-size: 13px; padding-bottom: 4px; opacity: 0.45; }

/* ── Signup block ────────────────────────────────────────── */
.signup-block {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.55s var(--ease) 0.22s, transform 0.55s var(--ease) 0.22s;
}

/* ── Form ────────────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-bottom: 10px; }
label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); margin-bottom: 5px; }
input {
  display: block; width: 100%; padding: 10px 13px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  color: var(--white); font-family: var(--fb); font-size: 14px;
  outline: none; border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
}
input::placeholder { color: var(--smoke); }
input:focus { border-color: var(--blue); background: rgba(26,127,192,0.05); }

.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--fb); font-size: 13px; font-weight: 600;
  background: var(--blue); color: var(--white);
  border: none; padding: 11px 24px; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #1890D5; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-ghost {
  font-family: var(--fb); font-size: 13px;
  background: none; border: 1px solid rgba(255,255,255,0.1);
  color: var(--smoke); padding: 10px 15px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--ash); }
.form-note { font-size: 11px; color: var(--smoke); margin-top: 8px; }
.status-msg { margin-top: 10px; font-size: 13px; font-weight: 500; min-height: 18px; }
.status-msg.ok { color: var(--teal); }
.status-msg.error { color: var(--danger); }

/* Thank-you panel */
.thank-you {
  display: none; margin-top: 20px; padding: 20px;
  background: rgba(0,168,130,0.06); border-left: 2px solid var(--teal);
}
.thank-you .ty-name { font-family: var(--fs); font-size: 20px; color: var(--white); margin-bottom: 8px; }
.thank-you p { font-size: 13px; color: var(--ash); line-height: 1.65; max-width: 360px; }
.thank-you .ty-sub { font-size: 11px; color: var(--smoke); margin-top: 8px; font-style: italic; }

/* ── Scene 1: two-col ─────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; max-width: 1040px; }

/* ── Level grid (Scene 3) — Shapiro's original names ────── */
.level-grid {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px;
}
.level-row {
  display: grid; grid-template-columns: 48px 160px 1fr;
  align-items: center;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
}
.level-row:hover { background: rgba(255,255,255,0.06); }
.level-row.active { background: rgba(26,127,192,0.12); }

.lb-n {
  font-family: var(--fd); font-size: 16px; font-weight: 800;
  color: var(--smoke); text-align: center; padding: 10px 0;
  border-right: 2px solid rgba(255,255,255,0.06);
}
.level-row.active .lb-n { color: var(--blue); border-right-color: var(--blue); }

.lb-name {
  font-family: var(--fd); font-size: 14px; font-weight: 700;
  color: var(--ash); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 14px; border-right: 1px solid rgba(255,255,255,0.04);
}
.level-row.active .lb-name { color: var(--white); }

.lb-d { font-size: 12px; color: var(--smoke); padding: 10px 14px; line-height: 1.45; }
.level-row.active .lb-d { color: var(--ash); }

/* ── Version log (Scene 4) ───────────────────────────────── */
.ver-log { border-top: 1px solid var(--rule); margin-bottom: 26px; }
.ver-row { display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.04); align-items: start; }
.ver-tag { font-family: var(--fb); font-size: 12px; font-weight: 600; color: var(--blue); }
.ver-copy { font-size: 14px; color: var(--smoke); line-height: 1.5; }
.ver-copy strong { color: var(--ash); font-weight: 500; }

/* ── Scroll hint ─────────────────────────────────────────── */
.hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 10;
  opacity: 0; transition: opacity 0.5s var(--ease) 0.5s;
  pointer-events: none;
}
.scene.is-active .hint { opacity: 1; }
.chip {
  font-family: var(--fb); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--smoke);
  border: 1px solid rgba(255,255,255,0.08); padding: 5px 14px;
  backdrop-filter: blur(4px);
}

/* ── Footer ──────────────────────────────────────────────── */
.ft {
  position: relative; bottom: auto; left: auto; right: auto; z-index: 100;
  height: 80px; padding: 0 0 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,9,12,0.94);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ft-left { display: flex; align-items: center; gap: 16px; }
.ft-copy { font-size: 11px; color: var(--smoke); letter-spacing: 0.04em; }
.ft-li { display: flex; align-items: center; opacity: 0.65; transition: opacity 0.2s; }
.ft-li:hover { opacity: 1; }

.ft-book { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.ft-book img {
  height: 120px; width: auto;
  filter: drop-shadow(0 -8px 20px rgba(0,0,0,0.7));
  transition: transform 0.3s var(--ease), filter 0.3s;
  cursor: pointer; transform-origin: bottom right;
  display: block;
}
.ft-book img:hover {
  transform: scale(1.06) translateY(-4px);
  filter: drop-shadow(0 -12px 28px rgba(26,127,192,0.3)) drop-shadow(0 -8px 20px rgba(0,0,0,0.7));
}
.ft-book-tag {
  font-size: 9px; color: var(--smoke); font-style: italic;
  letter-spacing: 0.04em; text-align: right;
  padding: 4px 0; white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .topbar { padding: 0 20px; }
  .content { padding: 72px 24px 32px 32px; }
  .scene::after { left: 14px; }
  .nav-dots { right: 12px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .ft { padding: 0 0 0 20px; }
  .ft-book img { height: 90px; }
}
