:root {
  --navy: #0a0e1a;
  --navy-mid: #111828;
  --slate: #2a3a5c;
  --steel: #6b7fa3;
  --ice: #9fb3d4;
  --white: #e8ecf4;
  --accent: #5b8ec9;
  --accent-bright: #7baee8;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ── Vapor field ── */
.vapor-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vapor-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: vaporDrift 9s ease-in-out infinite;
}

.vapor-line:nth-child(1) { top: 12%; left: -10%; width: 45%; animation-delay: 0s; opacity: 0.07; }
.vapor-line:nth-child(2) { top: 28%; left: 15%; width: 55%; animation-delay: 1.5s; opacity: 0.05; }
.vapor-line:nth-child(3) { top: 44%; left: -8%; width: 38%; animation-delay: 3s; opacity: 0.08; }
.vapor-line:nth-child(4) { top: 58%; left: 25%; width: 50%; animation-delay: 0.8s; opacity: 0.05; }
.vapor-line:nth-child(5) { top: 72%; left: 5%; width: 42%; animation-delay: 4s; opacity: 0.07; }
.vapor-line:nth-child(6) { top: 85%; left: -12%; width: 60%; animation-delay: 2s; opacity: 0.05; }
.vapor-line:nth-child(7) { top: 35%; left: 40%; width: 35%; animation-delay: 5s; opacity: 0.04; }
.vapor-line:nth-child(8) { top: 65%; left: -5%; width: 48%; animation-delay: 6.5s; opacity: 0.06; }

@keyframes vaporDrift {
  0% { transform: translateX(-15%) scaleX(0.8); opacity: 0; }
  25% { opacity: 0.06; }
  75% { opacity: 0.03; }
  100% { transform: translateX(25%) scaleX(1.3); opacity: 0; }
}

/* ── Speed lines (right-anchored) ── */
.speed-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.speed-line {
  position: absolute;
  right: 0;
  height: 1px;
  background: linear-gradient(270deg, var(--accent) 0%, transparent 100%);
}

.speed-line:nth-child(1) { top: 18%; width: 25%; opacity: 0.04; }
.speed-line:nth-child(2) { top: 38%; width: 35%; opacity: 0.03; }
.speed-line:nth-child(3) { top: 55%; width: 20%; opacity: 0.05; }
.speed-line:nth-child(4) { top: 75%; width: 30%; opacity: 0.03; }
.speed-line:nth-child(5) { top: 90%; width: 40%; opacity: 0.025; }

/* ── Main content ── */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 24px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.logo svg { width: 56px; height: auto; }

.logo-wordmark {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--white);
  text-transform: lowercase;
}

/* ── Tagline with scroll wheel ── */
.tagline {
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.tagline-line {
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.tagline-static {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

.scroll-wheel {
  display: inline-flex;
  height: 1.15em;
  overflow: hidden;
  position: relative;
  vertical-align: bottom;
}

.scroll-wheel::before,
.scroll-wheel::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 0.25em;
  z-index: 2;
  pointer-events: none;
}

.scroll-wheel::before {
  top: 0;
  background: linear-gradient(180deg, var(--navy), transparent);
}

.scroll-wheel::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--navy), transparent);
}

.scroll-track {
  display: flex;
  flex-direction: column;
  animation: scrollWords 8s ease-in-out infinite;
}

.scroll-word {
  height: 1.15em;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--steel);
  transition: color 0.3s;
}

.scroll-word.final {
  color: var(--white);
  font-weight: 400;
}

@keyframes scrollWords {
  0%, 8% { transform: translateY(0); }
  14%, 22% { transform: translateY(-1.15em); }
  28%, 36% { transform: translateY(-2.3em); }
  42%, 50% { transform: translateY(-3.45em); }
  56%, 64% { transform: translateY(-4.6em); }
  72%, 100% { transform: translateY(-5.75em); }
}

/* ── Subtitle ── */
.subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ice);
  font-weight: 300;
  max-width: 460px;
  margin: 0 auto 56px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.8s forwards;
}

/* ── Email form ── */
.email-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1s forwards;
}

.email-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(42, 58, 92, 0.3);
  border: 1px solid var(--slate);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: all 0.3s;
}

.email-input::placeholder {
  color: var(--steel);
  font-weight: 300;
}

.email-input:focus {
  border-color: var(--accent);
  background: rgba(42, 58, 92, 0.5);
}

.email-submit {
  padding: 16px 28px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.email-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.email-submit:hover::after { left: 100%; }
.email-submit:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

/* ── Success state ── */
.email-success {
  display: none;
  max-width: 440px;
  margin: 0 auto 32px;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  background: rgba(91, 142, 201, 0.08);
  font-size: 14px;
  color: var(--accent-bright);
  letter-spacing: 0.3px;
}

.email-success.show {
  display: block;
  animation: fadeUp 0.4s ease-out forwards;
}

/* ── Fine print ── */
.fine-print {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1.2s forwards;
}

/* ── Slipstream divider above footer ── */
.slipstream {
  position: fixed;
  bottom: 60px;
  left: 0; right: 0;
  height: 40px;
  pointer-events: none;
  z-index: 1;
}

.slipstream .trail {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent), transparent);
}

.slipstream .trail:nth-child(1) { top: 8px; left: 10%; width: 80%; opacity: 0.06; }
.slipstream .trail:nth-child(2) { top: 20px; left: 20%; width: 60%; opacity: 0.03; }
.slipstream .trail:nth-child(3) { top: 32px; left: 30%; width: 40%; opacity: 0.05; }

/* ── Footer ── */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 18px 48px;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--slate);
  letter-spacing: 1px;
  opacity: 0.6;
  text-transform: lowercase;
}

/* ── Animations ── */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .tagline-line { font-size: 32px; flex-wrap: wrap; }
  .email-form { flex-direction: column; }
  .email-input { border-right: 1px solid var(--slate); border-bottom: none; }
  .email-input:focus { border-right-color: var(--accent); }
  .logo { margin-bottom: 48px; }
  footer { padding: 14px 24px; }
}
