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

html {
  scroll-behavior: smooth;
}

:root {
  --bg-deep: #050510;
  --bg-primary: #0a0a1a;
  --bg-card: rgba(15, 15, 45, 0.6);
  --bg-card-hover: rgba(20, 20, 55, 0.8);
  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --text-primary: #f0f0f5;
  --text-secondary: #7a7a9e;
  --text-muted: #4a4a6a;
  --border-subtle: rgba(124, 58, 237, 0.15);
  --glow-purple: 0 0 40px rgba(124, 58, 237, 0.2);
  --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.2);
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Subtle grid pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(124, 58, 237, 0.015) 0px,
      rgba(124, 58, 237, 0.015) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(124, 58, 237, 0.015) 0px,
      rgba(124, 58, 237, 0.015) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   Particle Canvas
   =========================== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 36px;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .nav-social {
    display: none;
  }
}

.early-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-purple), #9333ea);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  animation: badgePulse 2s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.early-access-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-purple);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.glitch {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(124, 58, 237, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitch 3s infinite;
}

.glitch::before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  top: 0;
  color: var(--accent-cyan);
  -webkit-text-fill-color: var(--accent-cyan);
  clip-path: inset(0 0 65% 0);
  animation: glitchBefore 3s infinite;
}

.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--accent-purple);
  -webkit-text-fill-color: var(--accent-purple);
  clip-path: inset(65% 0 0 0);
  animation: glitchAfter 3s infinite;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.tagline-container {
  min-height: 3rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  display: inline;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--accent-purple);
  font-weight: 300;
  margin-left: 2px;
}

/* ===========================
   Countdown
   =========================== */
.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  min-width: 100px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
}

.countdown-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  display: block;
}

/* ===========================
   System Status
   =========================== */
.system-status {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.system-status h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 600;
}

.status-live {
  font-size: 0.85rem;
  color: var(--accent-emerald);
  margin-left: 1rem;
  font-weight: 500;
}

.live-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulseDot 1.5s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

.progress-item {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.progress-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-scan {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: scanLine 2.5s infinite;
}

/* ===========================
   Stats Dashboard
   =========================== */
.stats-dashboard {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stats-dashboard h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-purple);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card:nth-child(1)::before {
  background: var(--accent-purple);
}

.stat-card:nth-child(2)::before {
  background: var(--accent-cyan);
}

.stat-card:nth-child(3)::before {
  background: var(--accent-amber);
}

.stat-card:nth-child(4)::before {
  background: var(--accent-emerald);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon-purple {
  background: rgba(124, 58, 237, 0.1);
}
.stat-icon-purple svg {
  stroke: var(--accent-purple);
}

.stat-icon-cyan {
  background: rgba(6, 182, 212, 0.1);
}
.stat-icon-cyan svg {
  stroke: var(--accent-cyan);
}

.stat-icon-amber {
  background: rgba(245, 158, 11, 0.1);
}
.stat-icon-amber svg {
  stroke: var(--accent-amber);
}

.stat-icon-emerald {
  background: rgba(16, 185, 129, 0.1);
}
.stat-icon-emerald svg {
  stroke: var(--accent-emerald);
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.stat-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

/* ===========================
   Features
   =========================== */
.features {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.features h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================
   Newsletter
   =========================== */
.newsletter {
  padding: 6rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.newsletter-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.signup-form {
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

#email-input, #name-input, #phone-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  width: 100%;
}

#email-input::placeholder, #name-input::placeholder, #phone-input::placeholder {
  color: var(--text-muted);
}

#submit-btn {
  background: linear-gradient(135deg, var(--accent-purple), #9333ea);
  border: none;
  padding: 1rem 2rem;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

#submit-btn:hover {
  background: linear-gradient(135deg, #9333ea, var(--accent-purple));
  transform: scale(1.02);
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.form-message.success {
  color: var(--accent-emerald);
}

.form-message.error {
  color: #ef4444;
}

.trust-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.trust-icon {
  font-size: 0.85rem;
}

.coupon-note {
  font-size: 0.85rem;
  color: var(--accent-amber);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--accent-purple);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* ===========================
   Toast
   =========================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  animation: toastIn 0.5s ease;
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}

.toast.fade-out {
  animation: toastOut 0.5s ease forwards;
}

/* ===========================
   Scroll Reveal
   =========================== */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Keyframe Animations
   =========================== */
@keyframes glitch {
  0%, 92%, 100% { opacity: 1; transform: none; }
  93% { transform: translate(-2px, 1px) skew(0.5deg); }
  94% { transform: translate(2px, -1px) skew(-0.5deg); }
  95% { transform: translate(-1px, 2px); }
  96% { transform: translate(1px, -2px) skew(0.5deg); }
  97% { opacity: 1; transform: none; }
}

@keyframes glitchBefore {
  0%, 92%, 100% { clip-path: inset(0 0 65% 0); transform: none; }
  93% { clip-path: inset(20% 0 40% 0); transform: translate(-3px); }
  95% { clip-path: inset(50% 0 10% 0); transform: translate(3px); }
  97% { clip-path: inset(0 0 65% 0); transform: none; }
}

@keyframes glitchAfter {
  0%, 92%, 100% { clip-path: inset(65% 0 0 0); transform: none; }
  93% { clip-path: inset(40% 0 20% 0); transform: translate(3px); }
  95% { clip-path: inset(10% 0 50% 0); transform: translate(-3px); }
  97% { clip-path: inset(65% 0 0 0); transform: none; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}

@keyframes toastIn {
  from { transform: translateX(-120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-120%); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===========================
   Responsive — Tablet
   =========================== */
@media (max-width: 768px) {
  .nav {
    padding: 0.8rem 1rem;
  }

  .nav-logo {
    height: 28px;
  }

  .countdown {
    gap: 0.8rem;
  }

  .countdown-item {
    padding: 1rem;
    min-width: 70px;
  }

  .countdown-value {
    font-size: 1.8rem;
  }

  .stats-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .input-group {
    flex-direction: column;
    border-radius: 14px;
  }

  #email-input {
    border-radius: 14px 14px 0 0;
  }

  #submit-btn {
    border-radius: 0 0 14px 14px;
    padding: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media (max-width: 480px) {
  .stats-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-item {
    padding: 0.8rem 0.6rem;
    min-width: 60px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-subtitle {
    letter-spacing: 2px;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    max-width: 100%;
  }
}
