/* =========================================================
   DSP ONBOARDING — STYLES
   Design language: deep black canvas, drifting gradient mesh,
   horizon glow, dust-mote particles, fine film grain, glass
   form card. Mobile-first. Modern, prestige, luxury.
========================================================== */

:root {
  --bg:           #0a0a0c;
  --bg-deep:      #050507;
  --ink:          #f5f5f7;
  --ink-soft:     #a8a8b0;
  --ink-faint:    #6b6b75;
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.18);
  --field-bg:     rgba(255, 255, 255, 0.025);
  --field-bg-hi:  rgba(255, 255, 255, 0.05);
  --card-bg:      rgba(255, 255, 255, 0.025);
  --shadow-soft:  0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --radius:       16px;
  --radius-sm:    12px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: #000000;
}

html, body {
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100%;
}

body {
  background: transparent;
}

body {
  min-height: 100dvh;
  position: relative;
}

/* =========================================================
   BACKGROUND LAYERS
========================================================== */

.bg-base,
.bg-mesh,
.bg-particles,
.bg-horizon,
.bg-grain,
.bg-video {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Deep space — pure black with hint of warmth toward the horizon */
.bg-base {
  background: #000000;
  z-index: -5;
}

/* Atmospheric glow rising from the horizon — Earth-from-orbit feel */
.bg-mesh { z-index: -4; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

/* Atmosphere bloom — bright cyan/blue glow rising from the horizon center */
.orb-1 {
  width: 140vw; height: 90vh;
  bottom: -45vh; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(120, 180, 255, 0.55) 0%,
    rgba(80, 130, 220, 0.35) 18%,
    rgba(60, 90, 180, 0.18) 35%,
    transparent 60%);
  opacity: 1;
  animation: pulse-atmosphere 12s var(--ease) infinite alternate;
}

/* Side aurora — purple wash rising left */
.orb-2 {
  width: 80vw; height: 70vh;
  bottom: -25vh; left: -25vw;
  background: radial-gradient(ellipse at center,
    rgba(140, 90, 220, 0.45) 0%,
    rgba(90, 50, 170, 0.22) 30%,
    transparent 65%);
  opacity: 0.9;
  animation: drift-2 30s var(--ease) infinite alternate;
}

/* Side aurora — magenta/red wash rising right */
.orb-3 {
  width: 75vw; height: 65vh;
  bottom: -25vh; right: -25vw;
  background: radial-gradient(ellipse at center,
    rgba(220, 100, 140, 0.4) 0%,
    rgba(170, 60, 100, 0.2) 30%,
    transparent 65%);
  opacity: 0.85;
  animation: drift-3 38s var(--ease) infinite alternate;
}

/* Top deep-space haze — keeps the upper void from feeling too empty */
.orb-4 {
  width: 100vw; height: 60vh;
  top: -20vh; left: 0;
  background: radial-gradient(ellipse at 50% 70%,
    rgba(50, 50, 110, 0.35) 0%,
    transparent 60%);
  opacity: 0.8;
  animation: drift-4 50s var(--ease) infinite alternate;
}

@keyframes pulse-atmosphere {
  from { opacity: 0.85; transform: translateX(-50%) scale(1); }
  to   { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

@keyframes drift-1 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(8vmax,6vmax,0) scale(1.08); }
}
@keyframes drift-2 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-7vmax,-5vmax,0) scale(1.1); }
}
@keyframes drift-3 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-5vmax,8vmax,0) scale(1.06); }
}
@keyframes drift-4 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6vmax,-4vmax,0) scale(1.12); }
}

/* Particle canvas — sparse luxury dust motes */
.bg-particles { z-index: -3; }

/* Horizon — Earth-from-orbit bright curved arc with atmosphere bloom */
.bg-horizon {
  z-index: -2;
  overflow: hidden;
}

/* The "planet" — huge black circle. Its top edge IS the horizon line.
   Box-shadow (non-inset) paints OUTWARD from the top of the circle,
   creating the bright limb + atmospheric glow rising into space. */
.bg-horizon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 75%;
  width: 260vw;
  height: 260vw;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #000000;
  box-shadow:
    0 -2px 0 #ffffff,
    0 -4px 12px #ffffff,
    0 -14px 40px rgba(220, 235, 255, 0.95),
    0 -40px 100px rgba(160, 200, 255, 0.75),
    0 -90px 200px rgba(110, 160, 240, 0.55),
    0 -160px 320px rgba(70, 120, 220, 0.4),
    0 -260px 480px rgba(50, 90, 200, 0.25);
  pointer-events: none;
}

/* Cinema grain overlay */
.bg-grain {
  z-index: -1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* Video swap (kept ready for later) */
.bg-video {
  z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* =========================================================
   STAGE / LAYOUT
========================================================== */

.stage {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 56px) 22px clamp(40px, 8vw, 80px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 44px);
}

/* =========================================================
   BRAND LOCKUP (burst + DIRECT wordmark)
========================================================== */

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  animation: rise 900ms var(--ease) 100ms forwards;
}

.brand-burst {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
}

.brand-wordmark {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: 'cv11';
  text-transform: none;
}

/* =========================================================
   HERO
========================================================== */

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: clamp(20px, 6vw, 48px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: rise 900ms var(--ease) 220ms forwards;
}

.pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.8);
}

.headline {
  font-size: clamp(40px, 9vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 12ch;
  opacity: 0;
  animation: rise 1000ms var(--ease) 340ms forwards;
}

.headline-accent {
  background: linear-gradient(180deg, #ffffff 0%, #c8c8d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
  opacity: 0;
  animation: rise 900ms var(--ease) 480ms forwards;
}

/* =========================================================
   PROOF ROW — culture videos under the subhead
========================================================== */

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: -4px;
  opacity: 0;
  animation: rise 1000ms var(--ease) 600ms forwards;
}

.proof-tile {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  display: block;
  pointer-events: none;
  transition: transform 400ms var(--ease), border-color 300ms var(--ease);
}

.proof-row:hover .proof-tile {
  border-color: rgba(255, 255, 255, 0.14);
}

/* =========================================================
   FORM CARD
========================================================== */

.card {
  background: rgba(8, 10, 18, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 28px);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  animation: rise 1100ms var(--ease) 620ms forwards;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder {
  color: rgba(168, 168, 176, 0.55);
}

.field input:hover,
.field select:hover {
  background: var(--field-bg-hi);
  border-color: rgba(255, 255, 255, 0.14);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--line-strong);
  background: var(--field-bg-hi);
}

.field input.invalid {
  border-color: rgba(248, 113, 113, 0.5);
}

/* Custom select chevron */
.select-wrap {
  position: relative;
}
.select-wrap select {
  padding-right: 36px;
  cursor: pointer;
}
.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.field select option {
  background: #15151a;
  color: var(--ink);
}

/* =========================================================
   SUBMIT BUTTON
========================================================== */

.submit-btn {
  margin-top: 4px;
  height: 52px;
  background: var(--ink);
  color: #0a0a0c;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 200ms var(--ease), box-shadow 280ms var(--ease), background 200ms var(--ease);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -6px rgba(255, 255, 255, 0.25);
}

.submit-btn:active { transform: translateY(0); }

.submit-btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.submit-arrow {
  transition: transform 240ms var(--ease);
}
.submit-btn:hover .submit-arrow {
  transform: translateX(3px);
}

.submit-btn.loading .submit-label::after {
  content: '...';
}

/* =========================================================
   FINEPRINT + FOOTER
========================================================== */

.fineprint {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

.footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 800ms var(--ease) 900ms forwards;
}

.footer .dot { opacity: 0.4; }
.footer .hashtag { color: var(--ink-soft); font-weight: 500; }

/* =========================================================
   ENTRANCE ANIMATION
========================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand, .pill, .headline, .subhead, .card, .footer {
    opacity: 1;
    animation: none;
  }
  .orb { animation: none; }
}

/* =========================================================
   RESPONSIVE TUNING
========================================================== */

@media (max-width: 380px) {
  .stage { padding: 24px 18px 40px; }
  .headline { font-size: 38px; }
}

@media (min-width: 768px) {
  .stage { max-width: 480px; padding-top: 72px; padding-bottom: 80px; }
}
