/* ============================================================
   BLEARION — Coming Soon Page
   Cabinet Grotesk (display) + Satoshi (body)
   Design: Deep black #03040c, Electric blue #4a9eff, Purple #a78bfa
   ============================================================ */

/* ─── Design Tokens ───────────────────────────────────────── */
:root {
  /* Brand colors */
  --bg:           #03040c;
  --accent-blue:  #4a9eff;
  --accent-purple:#a78bfa;
  --accent-gold:  #f59e0b;   /* Vonvaro amber */
  --accent-gold-bright: #fbbf24;
  --text-primary: #f4f4f5;
  --text-muted:   #71717a;
  --text-faint:   #3f3f46;
  --border:       rgba(255,255,255,0.07);
  --border-input: rgba(255,255,255,0.12);

  /* Typography */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(3.5rem,   1rem    + 7.5vw,  9rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Easing */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  text-size-adjust: none;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
input { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; }

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Intro Overlay ───────────────────────────────────────── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.b-mark-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  opacity: 0;
  will-change: transform, opacity;
}

#b-mark-svg {
  width: clamp(120px, 25vw, 220px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(74, 158, 255, 0.5))
          drop-shadow(0 0 80px rgba(167, 139, 250, 0.3));
}

/* Intro animation states */
.intro-slam {
  animation: bSlam 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bSlam {
  0%   { transform: scale(3) rotate(-8deg); opacity: 0; }
  60%  { transform: scale(0.92) rotate(1deg); opacity: 1; }
  80%  { transform: scale(1.04) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.intro-exit {
  animation: bExit 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes bExit {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.08) translate(-42vw, -44vh); opacity: 0.6; }
}

.overlay-fade-out {
  animation: overlayFade 0.4s ease-in forwards;
}

@keyframes overlayFade {
  to { opacity: 0; pointer-events: none; }
}

/* ─── Site Wrapper (hidden until intro done) ──────────────── */
#site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  opacity: 1;
  transition: opacity 0.5s var(--ease-out);
}

#site-wrapper.site-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-8);
}

.nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3,4,12,0.95) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.nav-logo.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-b-mark {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.9;
}

/* Audio button */
.audio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  transition:
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    background var(--transition-interactive);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.audio-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.audio-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) var(--space-8) var(--space-8);
  min-height: 100dvh;
  overflow: hidden;
}

/* Atmospheric grid lines */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-line {
  position: absolute;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(74, 158, 255, 0.04) 40%,
    rgba(74, 158, 255, 0.04) 60%,
    transparent 100%
  );
  width: 1px;
  top: 0;
  bottom: 0;
}

.gl-1 { left: 25%; }
.gl-2 { left: 50%; background: linear-gradient(to bottom, transparent 0%, rgba(167,139,250,0.05) 50%, transparent 100%); }
.gl-3 { left: 75%; }

/* Ambient glow blobs */
.ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.glow.visible {
  opacity: 1;
}

.glow-blue {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(74, 158, 255, 0.12) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.glow-purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
  bottom: 5%;
  left: -10%;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 960px;
  width: 100%;
  padding-left: var(--space-4);
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Hero headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: 0.04em;
}

.hero-headline .line {
  display: block;
}

.hero-headline .line-4.accent-rebuilt {
  background: linear-gradient(110deg, #e8e8ff 0%, #c4b5fd 30%, #a78bfa 55%, #4a9eff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* Hero sub */
.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 46ch;
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 480px;
  margin-bottom: var(--space-12);
}

.input-group {
  display: flex;
  gap: var(--space-2);
  width: 100%;
}

.input-group input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 var(--space-5);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  transition:
    border-color var(--transition-interactive),
    background var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.input-group input[type="email"]::placeholder {
  color: var(--text-faint);
}

.input-group input[type="email"]:focus {
  border-color: rgba(74, 158, 255, 0.5);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-6);
  background: var(--accent-blue);
  color: #03040c;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.submit-btn:hover {
  background: #6db3ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(74, 158, 255, 0.35);
}

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

.submit-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-arrow {
  transition: transform var(--transition-interactive);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Form status */
.form-status {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  min-height: 1.2em;
  color: var(--text-muted);
  transition: color var(--transition-interactive);
}

.form-status.success {
  color: #6daa45;
}

.form-status.error {
  color: #d163a7;
}

/* Hero rule */
.hero-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--accent-blue), transparent);
  opacity: 0.4;
}

/* Scan lines texture */
.scan-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.footer-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

/* ─── Fade-up entrance animation ─────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    padding: var(--space-4) var(--space-5);
  }

  .hero {
    padding: var(--space-20) var(--space-5) var(--space-12);
    align-items: flex-start;
  }

  .hero-content {
    align-items: flex-start;
  }

  .hero-headline {
    font-size: clamp(2.8rem, 12vw, 5.5rem);
  }

  .input-group {
    flex-direction: column;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
    height: 52px;
  }

  .footer {
    padding: var(--space-5) var(--space-5);
  }

  .br-desktop {
    display: none;
  }

  .glow-blue { width: 300px; height: 200px; }
  .glow-purple { width: 250px; height: 250px; }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(2.2rem, 13vw, 4rem);
    letter-spacing: -0.02em;
  }

  .nav-wordmark {
    display: none;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* ── VONVARO TEASER (legacy — kept for backward compat) ──── */
.vonvaro-teaser {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 100px;
  background: rgba(74, 158, 255, 0.06);
  backdrop-filter: blur(8px);
}

.vonvaro-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #4a9eff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vonvaro-status {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   VONVARO HERO SYSTEM
   Gold/amber palette — distinct from Blearion blue/purple
   ═══════════════════════════════════════════════════════════ */

/* Amber glow blob for Vonvaro atmosphere */
.glow-vonvaro {
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.09) 0%, rgba(251, 191, 36, 0.04) 50%, transparent 70%);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
}

/* Umbrella label — "A Blearion™ Company" */
.umbrella-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.umbrella-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  flex-shrink: 0;
  opacity: 0.7;
}

/* Vonvaro hero block */
.vonvaro-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* The big VONVARO™ name */
.vonvaro-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.92;
  /* Gold/amber gradient text */
  background: linear-gradient(110deg,
    #fde68a 0%,
    #fbbf24 30%,
    #f59e0b 60%,
    #d97706 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Subtle glow behind text */
  filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.25));
}

/* Tagline under VONVARO */
.vonvaro-descriptor {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(253, 230, 138, 0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
  max-width: 44ch;
}

/* Blearion sub-copy */
.blearion-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 54ch;
  opacity: 0.75;
}

/* Status row */
.status-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 158, 11, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.06);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* Override .status-dot inside .status-pill to be amber */
.status-pill .status-dot {
  background: var(--accent-gold);
  animation: pulse-dot-gold 2.4s ease-in-out infinite;
}

@keyframes pulse-dot-gold {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px rgba(245,158,11,0.6); }
  50%       { opacity: 0.45; transform: scale(0.7); box-shadow: none; }
}

.status-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.status-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* Responsive tweaks for new classes */
@media (max-width: 768px) {
  .vonvaro-name {
    font-size: clamp(3rem, 14vw, 6rem);
    letter-spacing: -0.015em;
  }

  .vonvaro-descriptor {
    font-size: var(--text-base);
  }

  .status-row {
    gap: var(--space-3);
  }

  .status-divider {
    display: none;
  }

  .status-text {
    display: block;
    width: 100%;
    margin-top: var(--space-1);
  }

  .glow-vonvaro {
    width: 350px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .vonvaro-name {
    font-size: clamp(2.6rem, 15vw, 4rem);
    letter-spacing: -0.01em;
  }

  .blearion-sub br.br-desktop {
    display: none;
  }
}
