/* ── BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #09090b; color: #fafafa; font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* ── TYPOGRAPHY ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45);
}
.btn-primary:active { transform: translateY(0); }

/* ── GLASS ─────────────────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

/* ── BLOBS ─────────────────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
  50% { box-shadow: 0 0 45px rgba(124,58,237,0.65); }
}
@keyframes badge-ping {
  0% { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(1.8); opacity: 0; }
}
.animate-float  { animation: float  4s   ease-in-out          infinite; }
.animate-float2 { animation: float2 5.5s ease-in-out 1s       infinite; }
.animate-float3 { animation: float2 4.8s ease-in-out 2s       infinite; }
.animate-glow   { animation: glow-pulse 3s ease-in-out        infinite; }
.ping           { animation: badge-ping 2s cubic-bezier(0,0,0.2,1) infinite; }

/* ── SCROLL REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PHONE MOCKUP ──────────────────────────────────────── */
.phone {
  width: 268px;
  height: 548px;
  background: #18181b;
  border-radius: 42px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 40px 100px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.phone-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 6px;
  background: #09090b;
  border-radius: 3px;
  z-index: 10;
}

/* ── FEATURE CARDS ─────────────────────────────────────── */
.feat-card { transition: transform 0.3s ease, background 0.3s ease; }
.feat-card:hover {
  transform: translateY(-5px);
  background: rgba(124, 58, 237, 0.07) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
}

/* ── FLOATING CHIPS ────────────────────────────────────── */
.chip {
  background: rgba(24,24,27,0.92);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 10px 14px;
  position: absolute;
  white-space: nowrap;
}

/* ── EMAIL INPUT ───────────────────────────────────────── */
.email-inp {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.email-inp:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}
.email-inp::placeholder { color: #52525b; }

/* ── PRICING ───────────────────────────────────────────── */
.pricing-pro {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(59,130,246,0.12));
  border: 1px solid rgba(124,58,237,0.4);
}

/* ── NAV ───────────────────────────────────────────────── */
.nav-blur {
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── DIVIDER ───────────────────────────────────────────── */
.grad-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4), rgba(59,130,246,0.4), transparent);
}

/* ── STEP NUMBERS ──────────────────────────────────────── */
.step-num {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  /* Ensure the number is visible — gradient-text cannot render inside flex center without this */
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-num span {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

/* ── PROOF ITEMS ───────────────────────────────────────── */
.proof-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── LOGO (theme-aware) ────────────────────────────────── */
.logo-dark  { display: block; }
.logo-light { display: none; }

/* ── LIGHT MODE ────────────────────────────────────────── */
html[data-theme="light"] body {
  background: #f1f0f6;
  color: #18181b;
}
html[data-theme="light"] .blob { opacity: 0.06 !important; }
html[data-theme="light"] .nav-blur {
  background: rgba(241,240,246,0.92);
  border-color: rgba(0,0,0,0.07);
}
html[data-theme="light"] .glass {
  background: rgba(255,255,255,0.78);
  border-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .chip {
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.09);
}
html[data-theme="light"] .email-inp {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.14);
  color: #18181b;
}
html[data-theme="light"] .email-inp::placeholder { color: #a1a1aa; }
html[data-theme="light"] .proof-item {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.07);
}
html[data-theme="light"] .pricing-pro {
  background: linear-gradient(135deg,rgba(124,58,237,0.07),rgba(59,130,246,0.07));
}
html[data-theme="light"] .grad-divider {
  background: linear-gradient(90deg,transparent,rgba(124,58,237,0.25),rgba(59,130,246,0.25),transparent);
}
html[data-theme="light"] footer { border-color: rgba(0,0,0,0.08) !important; }

/* Tailwind text overrides */
html[data-theme="light"] .text-zinc-400 { color: #4b5563 !important; }
html[data-theme="light"] .text-zinc-500 { color: #6b7280 !important; }
html[data-theme="light"] .text-zinc-600 { color: #4b5563 !important; }
html[data-theme="light"] .text-zinc-300 { color: #1f2937 !important; }
html[data-theme="light"] .text-zinc-200 { color: #111827 !important; }

/* Border overrides */
html[data-theme="light"] .border-zinc-700 { border-color: rgba(0,0,0,0.14) !important; }

/* Logo swap */
html[data-theme="light"] .logo-dark  { display: none; }
html[data-theme="light"] .logo-light { display: block; }

/* Theme toggle icon visibility */
html[data-theme="dark"]  #icon-moon { display: none; }
html[data-theme="dark"]  #icon-sun  { display: block; }
html[data-theme="light"] #icon-sun  { display: none; }
html[data-theme="light"] #icon-moon { display: block; }
