/* ──────────────────────────────────────────────────────────
   OVERLAY — Landing Page v2
   Cyberpunk glass · Purple-primary · Orbital eye
   Matched to Overlay app visual identity
   ────────────────────────────────────────────────────────── */

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

:root {
  /* Backgrounds */
  --void:     #050510;
  --base:     #0A0A1A;
  --surface:  #0F0F28;
  --elevated: #151535;

  /* Accents */
  --purple:   #8B5CF6;
  --glow:     #6366F1;
  --cyan:     #00F0FF;
  --magenta:  #FF00FF;

  /* Text */
  --text-primary:   rgba(255, 255, 255, 0.93);
  --text-secondary:  rgba(255, 255, 255, 0.62);
  --text-muted:      rgba(255, 255, 255, 0.38);

  /* Glass */
  --glass-border:    rgba(255, 255, 255, 0.06);
  --glass-border-2:  rgba(255, 255, 255, 0.1);
  --glass-border-3:  rgba(255, 255, 255, 0.14);

  /* Fluid typography */
  --fs-display: clamp(2.25rem, 1.6rem + 3.2vw, 4.25rem);
  --fs-h2:      clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  --fs-h3:      clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-body:    clamp(0.938rem, 0.9rem + 0.19vw, 1.0625rem);
  --fs-small:   clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --fs-caption: clamp(0.6875rem, 0.67rem + 0.08vw, 0.75rem);

  /* Spacing */
  --section-py: clamp(3.5rem, 3rem + 3vw, 7rem);
  --content-px: clamp(1rem, 0.5rem + 2vw, 3rem);
  --content-max: min(1180px, 100% - 2rem);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--void);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 500;
  font-size: var(--fs-body);
}

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

/* ── Noise Overlay ────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ── Glass System ─────────────────────────────────────────── */
.glass-l1 {
  background: rgba(15, 15, 40, 0.45);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.glass-l2 {
  background: rgba(15, 15, 40, 0.6);
  border: 1px solid var(--glass-border-2);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.glass-l3 {
  background: rgba(15, 15, 40, 0.82);
  border: 1px solid var(--glass-border-3);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* ── Gradient Border ──────────────────────────────────────── */
.gradient-border {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,0.35), rgba(99,102,241,0.2), rgba(0,240,255,0.15));
}

.gradient-border-inner {
  border-radius: 15px;
  background: rgba(15, 15, 40, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  height: 100%;
}

/* ── Section Divider ──────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  max-width: var(--content-max);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.25) 30%, rgba(0,240,255,0.15) 70%, transparent);
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-px);
  background: rgba(5, 5, 16, 0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.4s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 16, 0.95);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.nav-eye-svg {
  width: 38px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.35));
  animation: navEyePulse 4s ease-in-out infinite;
}

@keyframes navEyePulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.35)); }
  50% { filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.55)); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Navbar Social Icon */
.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.nav-social svg {
  width: 18px;
  height: 18px;
}

.nav-social:hover {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  transform: translateY(-1px);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: var(--fs-caption);
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  border: none;
  transition: all 0.25s ease;
  letter-spacing: 0.04em;
}

.lang-btn.active {
  background: rgba(139, 92, 246, 0.2);
  color: #C4B5FD;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--fs-small);
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--glow));
  border: 1px solid rgba(139, 92, 246, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.6);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary-lg {
  padding: 0.9rem 2.5rem;
  font-size: var(--fs-body);
  border-radius: 12px;
  letter-spacing: 0.02em;
}

/* Download button glow pulse */
.btn-download {
  position: relative;
}

.btn-download::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--glow));
  opacity: 0;
  filter: blur(14px);
  animation: downloadGlow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes downloadGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.4; }
}

/* Ghost button (secondary) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem var(--content-px) 3rem;
  overflow: hidden;
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 35%, rgba(139,92,246,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 25% 65%, rgba(99,102,241,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 75% 30%, rgba(0,240,255,0.025) 0%, transparent 55%),
    linear-gradient(180deg, var(--void) 0%, var(--base) 100%);
  z-index: 0;
}

/* Background Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
  top: 5%;
  left: 8%;
  animation: orbDrift1 20s ease-in-out infinite;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 70%);
  top: 25%;
  right: 5%;
  animation: orbDrift2 25s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.07), transparent 70%);
  bottom: 15%;
  left: 25%;
  animation: orbDrift3 30s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  33% { transform: translate(25px, -15px) scale(1.05); opacity: 0.25; }
  66% { transform: translate(-15px, 10px) scale(0.95); opacity: 0.18; }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, 20px) scale(1.04); }
  66% { transform: translate(15px, -10px) scale(0.96); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -8px) scale(1.03); }
}

/* ── Orbital Eye ──────────────────────────────────────────── */
.orbital-eye {
  position: relative;
  width: clamp(200px, 30vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto 2.5rem;
  z-index: 1;
}

/* Glow halo behind eye */
.eye-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65%;
  height: 65%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
  filter: blur(25px);
  animation: eyeBreathe 4s ease-in-out infinite;
}

@keyframes eyeBreathe {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Orbital rings */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-width: 1px;
}

.orbit-ring-1 {
  inset: 0;
  border-color: rgba(139, 92, 246, 0.1);
  animation: orbitSpin 25s linear infinite;
}

.orbit-ring-2 {
  inset: 13%;
  border-color: rgba(139, 92, 246, 0.16);
  animation: orbitSpin 18s linear infinite reverse;
}

.orbit-ring-3 {
  inset: 26%;
  border-color: rgba(139, 92, 246, 0.24);
  animation: orbitSpin 12s linear infinite;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Ring marker dots */
.ring-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-ring-2 .ring-dot {
  background: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
  width: 3px;
  height: 3px;
}

.orbit-ring-3 .ring-dot {
  background: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
  width: 3px;
  height: 3px;
  top: auto;
  bottom: -2px;
}

/* Sonar pulse */
.sonar-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  height: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  animation: sonarPing 3s ease-out infinite;
}

@keyframes sonarPing {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* Eye SVG */
.eye-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
  animation: eyePulse 4s ease-in-out infinite;
}

/* Eye blink transition (overlay-style CSS scaleY) */
.eye-blink-group {
  transition: transform 120ms ease-in-out;
}

@keyframes eyePulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3)); }
  50% { filter: drop-shadow(0 0 35px rgba(139, 92, 246, 0.5)); }
}

/* ── Floating Particles ───────────────────────────────────── */
.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 0px)); opacity: 0; }
}

.particle:nth-child(1)  { width: 3px; height: 3px; background: rgba(139,92,246,0.5); box-shadow: 0 0 6px rgba(139,92,246,0.3); left: 8%;  bottom: -5%; animation-duration: 12s; animation-delay: 0s; --drift: 15px; }
.particle:nth-child(2)  { width: 2px; height: 2px; background: rgba(99,102,241,0.4); box-shadow: 0 0 5px rgba(99,102,241,0.25); left: 15%; bottom: -8%; animation-duration: 15s; animation-delay: -3s; --drift: -10px; }
.particle:nth-child(3)  { width: 3px; height: 3px; background: rgba(139,92,246,0.45); box-shadow: 0 0 6px rgba(139,92,246,0.3); left: 25%; bottom: -3%; animation-duration: 11s; animation-delay: -6s; --drift: 20px; }
.particle:nth-child(4)  { width: 2px; height: 2px; background: rgba(0,240,255,0.3);  box-shadow: 0 0 5px rgba(0,240,255,0.2);  left: 35%; bottom: -10%; animation-duration: 14s; animation-delay: -1s; --drift: -8px; }
.particle:nth-child(5)  { width: 3px; height: 3px; background: rgba(139,92,246,0.5); box-shadow: 0 0 6px rgba(139,92,246,0.3); left: 42%; bottom: -6%; animation-duration: 13s; animation-delay: -8s; --drift: 12px; }
.particle:nth-child(6)  { width: 2px; height: 2px; background: rgba(99,102,241,0.35); box-shadow: 0 0 5px rgba(99,102,241,0.2); left: 55%; bottom: -4%; animation-duration: 16s; animation-delay: -4s; --drift: -18px; }
.particle:nth-child(7)  { width: 3px; height: 3px; background: rgba(139,92,246,0.4); box-shadow: 0 0 6px rgba(139,92,246,0.25); left: 62%; bottom: -9%; animation-duration: 12s; animation-delay: -10s; --drift: 8px; }
.particle:nth-child(8)  { width: 2px; height: 2px; background: rgba(0,240,255,0.25); box-shadow: 0 0 4px rgba(0,240,255,0.15); left: 72%; bottom: -7%; animation-duration: 14s; animation-delay: -2s; --drift: -14px; }
.particle:nth-child(9)  { width: 3px; height: 3px; background: rgba(139,92,246,0.45); box-shadow: 0 0 6px rgba(139,92,246,0.3); left: 80%; bottom: -5%; animation-duration: 11s; animation-delay: -7s; --drift: 10px; }
.particle:nth-child(10) { width: 2px; height: 2px; background: rgba(99,102,241,0.3); box-shadow: 0 0 5px rgba(99,102,241,0.2); left: 88%; bottom: -8%; animation-duration: 15s; animation-delay: -5s; --drift: -6px; }
.particle:nth-child(11) { width: 2px; height: 2px; background: rgba(139,92,246,0.35); box-shadow: 0 0 5px rgba(139,92,246,0.2); left: 20%; bottom: -12%; animation-duration: 13s; animation-delay: -9s; --drift: 16px; }
.particle:nth-child(12) { width: 3px; height: 3px; background: rgba(99,102,241,0.4); box-shadow: 0 0 6px rgba(99,102,241,0.25); left: 48%; bottom: -2%; animation-duration: 10s; animation-delay: -11s; --drift: -12px; }
.particle:nth-child(13) { width: 2px; height: 2px; background: rgba(0,240,255,0.2);  box-shadow: 0 0 4px rgba(0,240,255,0.12); left: 93%; bottom: -6%; animation-duration: 14s; animation-delay: -6s; --drift: 5px; }
.particle:nth-child(14) { width: 2px; height: 2px; background: rgba(139,92,246,0.3); box-shadow: 0 0 5px rgba(139,92,246,0.2); left: 3%;  bottom: -10%; animation-duration: 16s; animation-delay: -12s; --drift: -7px; }

/* ── Hero Content ─────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

/* ── Beta Badge ───────────────────────────────────────────── */
.beta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 1.1rem;
  border-radius: 20px;
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.beta-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.1));
  filter: blur(8px);
  z-index: -1;
  animation: betaGlow 3s ease-in-out infinite;
}

@keyframes betaGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.6; }
}

html.has-animations .beta-badge {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #E0D4FF 10%, #C4B5FD 30%, var(--purple) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.975rem, 0.92rem + 0.28vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}


/* Turnstile */
.turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
  min-height: 65px;
}

/* ── Section Layout ───────────────────────────────────────── */
.section {
  padding: var(--section-py) var(--content-px);
  width: 100%;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3.5rem);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ── Features Grid ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.08);
}

.feature-card-inner {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: #C4B5FD;
  stroke-width: 1.8;
  fill: none;
}

.feature-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.feature-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.feature-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── How It Works ─────────────────────────────────────────── */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

/* Connecting line between steps */
.steps-container::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: linear-gradient(90deg, rgba(139,92,246,0.3), rgba(99,102,241,0.2), rgba(139,92,246,0.3));
}

.step {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--glow));
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.step-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Trust Section ────────────────────────────────────────── */
.trust-card {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.75rem);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow at top */
.trust-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 20%;
  right: 20%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #34D399;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
  margin-bottom: 1.25rem;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
}

.trust-title {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.trust-text {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

.trust-text code {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
  background: rgba(139, 92, 246, 0.1);
  color: #C4B5FD;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

/* ── Download CTA Section ─────────────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.cta-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cta-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.4);
  display: none;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem var(--content-px);
  text-align: center;
  font-size: var(--fs-caption);
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #C4B5FD;
}

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

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-social:hover {
  color: var(--accent-cyan);
}

.footer-social svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-social:hover svg {
  opacity: 1;
}

/* ── Scroll Reveal (progressive enhancement) ─────────────── */
/* Default: content visible (no JS = fully visible page) */
.reveal {
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* JS-enabled: start hidden, reveal on scroll */
html.has-reveal .reveal {
  opacity: 0;
  transform: translateY(32px);
}

html.has-reveal .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
html.has-reveal .reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
html.has-reveal .reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
html.has-reveal .reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }

/* ── Hero Entrance Sequence ──────────────────────────────── */
html.has-animations .orbital-eye {
  animation: eyeEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.has-animations .hero-title {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

html.has-animations .hero-subtitle {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

html.has-animations .hero-actions {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

@keyframes eyeEnter {
  0% { opacity: 0; transform: scale(0.4); filter: blur(20px); }
  60% { opacity: 1; filter: blur(0); }
  80% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(35px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Scroll Progress Bar ─────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  will-change: transform;
}

/* ── Animated Section Dividers ───────────────────────────── */
.section-divider {
  background-size: 200% 100%;
  animation: gradientFlow 4s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

/* ── Card Shimmer Sweep ──────────────────────────────────── */
.gradient-border-inner {
  position: relative;
}

.feature-card .gradient-border-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(139, 92, 246, 0.05) 45%,
    rgba(139, 92, 246, 0.1) 50%,
    rgba(139, 92, 246, 0.05) 55%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.feature-card:hover .gradient-border-inner::after {
  transform: translateX(120%);
}

/* ── Card Cursor Glow ────────────────────────────────────── */
.feature-card .gradient-border-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(139, 92, 246, 0.08),
    transparent 60%
  );
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card:hover .gradient-border-inner::before {
  opacity: 1;
}

/* ── 3D Card Tilt ────────────────────────────────────────── */
.feature-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.feature-card.is-tilting {
  transition: transform 0.1s ease-out, box-shadow 0.4s ease;
}

/* ── Step Number Pulse ───────────────────────────────────── */
.step-number {
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--glow));
  opacity: 0;
  filter: blur(10px);
  z-index: -1;
  animation: stepPulse 3s ease-in-out infinite;
}

.step:nth-child(1) .step-number::after { animation-delay: 0s; }
.step:nth-child(2) .step-number::after { animation-delay: 1s; }
.step:nth-child(3) .step-number::after { animation-delay: 2s; }

@keyframes stepPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.5; }
}

/* ── Button Ripple ───────────────────────────────────────── */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleExpand {
  to { transform: scale(4); opacity: 0; }
}

/* ── Magnetic Button ─────────────────────────────────────── */
.btn-download {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-download.is-magnetic {
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}


/* ── Trust Card Glow ─────────────────────────────────────── */
.trust-card {
  transition: box-shadow 0.5s ease;
}

html.has-reveal .trust-card.visible {
  animation: trustGlowIn 1.5s ease-out 0.3s both;
}

@keyframes trustGlowIn {
  from { box-shadow: 0 0 0 rgba(52, 211, 153, 0); }
  to   { box-shadow: 0 0 60px rgba(52, 211, 153, 0.04), 0 0 20px rgba(52, 211, 153, 0.02); }
}

/* ── Eye Tracking ─────────────────────────────────────────── */
.eye-iris-group,
.eye-highlights,
.eye-pupil-group {
  will-change: transform;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-size: var(--fs-small);
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34D399;
}

.toast-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

/* ── Responsive ───────────────────────────────────────────── */

/* Large desktop (1280+) — default styles */

/* Desktop (1024-1279) */
@media (max-width: 1279px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768-1023) */
@media (max-width: 1023px) {
  .steps-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps-container::before {
    top: 0;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(139,92,246,0.3), rgba(99,102,241,0.1));
  }

  .step {
    text-align: left;
    padding: 1.25rem 1.25rem 1.25rem 4rem;
    position: relative;
  }

  .step-number {
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    border-radius: 12px;
  }
}

/* Large phones / Small tablets (640-767) */
@media (max-width: 767px) {
  .navbar { height: 56px; }

  .hero {
    padding: 4.5rem var(--content-px) 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card-inner {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    min-height: auto;
  }

  .feature-card-inner .feature-icon {
    margin-bottom: 0;
  }

  .cta-meta {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }

  /* Simplify glass on mobile */
  .glass-l1,
  .glass-l2 {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Phones (< 480px) */
@media (max-width: 479px) {
  .nav-logo span { display: none; }

  .btn-primary-lg {
    padding: 0.8rem 2rem;
    width: 100%;
    max-width: 280px;
  }

  .orbital-eye {
    width: 180px;
    margin-bottom: 2rem;
  }

  .orb { display: none; }
  .particles { display: none; }
}

/* Ultrawide (> 2000px) */
@media (min-width: 2000px) {
  :root {
    --content-max: 1320px;
  }
}

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

  html { scroll-behavior: auto; }

  html.has-reveal .reveal {
    opacity: 1;
    transform: none;
  }

  html.has-animations .orbital-eye,
  html.has-animations .hero-title,
  html.has-animations .hero-subtitle,
  html.has-animations .hero-actions {
    animation: none !important;
    opacity: 1 !important;
  }

  .scroll-progress { display: none; }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-2: rgba(255, 255, 255, 0.3);
  }
}
