/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg:          #080808;
  --bg-2:        #0E0E0E;
  --bg-3:        #161616;
  --bg-4:        #1D1D1D;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --text:        #F2F2F2;
  --text-2:      #8A8A8A;
  --text-3:      #505050;
  --accent:      #C8FF00;
  --accent-2:    #A8D900;
  --accent-dim:  rgba(200,255,0,0.08);
  --accent-glow: 0 0 40px rgba(200,255,0,0.18);
  --red:         #FF4444;
  --green:       #00E878;
  --r:           8px;
  --r-lg:        16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────────────────── */
.font-display { font-family: 'Syne', sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

/* ─── Noise overlay ──────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── Grid background on hero ────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Gradient blobs ─────────────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,255,0,0.07) 0%, transparent 70%);
  top: -200px; left: -100px;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,232,120,0.05) 0%, transparent 70%);
  top: 100px; right: -150px;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0);     }
}
@keyframes expandBar {
  from { width: 0%; }
  to   { width: var(--w); }
}
@keyframes pulse {
  0%,100% { opacity: 1;   }
  50%      { opacity: 0.4; }
}
@keyframes winnerPop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}
@keyframes scanLine {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100vh); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes borderPulse {
  0%,100% { border-color: rgba(200,255,0,0.2); }
  50%      { border-color: rgba(200,255,0,0.6); box-shadow: var(--accent-glow); }
}

.anim-fade-up       { animation: fadeUp 0.7s ease forwards; }
.anim-fade-in       { animation: fadeIn 0.6s ease forwards; }
.delay-100          { animation-delay: 0.1s; }
.delay-200          { animation-delay: 0.2s; }
.delay-300          { animation-delay: 0.3s; }
.delay-400          { animation-delay: 0.4s; }
.delay-500          { animation-delay: 0.5s; }
.delay-600          { animation-delay: 0.6s; }
.initially-hidden   { opacity: 0; }

.float-anim { animation: float 4s ease-in-out infinite; }

/* ─── Components ─────────────────────────────────────────────── */

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(200,255,0,0.3);
  border-radius: 100px;
  background: rgba(200,255,0,0.05);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-family: 'JetBrains Mono', monospace;
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--accent);
  color: #080808;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #d4ff1a;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(200,255,0,0.3);
}
.btn-primary:active { transform: translateY(0); }

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

/* Card */
.card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(200,255,0,0.2);
  transform: translateY(-2px);
}

/* Section heading */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
}

/* ─── Header ─────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ─── Hero email form ─────────────────────────────────────────── */
.hero-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
}
.hero-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-form input[type="email"]::placeholder { color: var(--text-3); }
.hero-form input[type="email"]:focus {
  border-color: rgba(200,255,0,0.5);
  box-shadow: 0 0 0 3px rgba(200,255,0,0.1);
}
@media (max-width: 520px) {
  .hero-form { flex-direction: column; }
  .hero-form .btn-primary { text-align: center; justify-content: center; }
}

/* ─── Hero dashboard mockup ──────────────────────────────────── */
.dashboard-mockup {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.dashboard-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.titlebar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.titlebar-dot:nth-child(1) { background: #FF5F57; }
.titlebar-dot:nth-child(2) { background: #FEBC2E; }
.titlebar-dot:nth-child(3) { background: #28C840; }

.metric-bar-track {
  background: var(--bg-4);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  border-radius: 4px;
  animation: expandBar 1.4s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 0.8s;
  width: 0%;
}
.metric-bar-fill.variant-a { --w: 32%; background: var(--text-3); }
.metric-bar-fill.variant-b { --w: 54%; background: var(--accent); }

.winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(200,255,0,0.12);
  border: 1px solid rgba(200,255,0,0.3);
  border-radius: 100px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  animation: winnerPop 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 2.2s;
  opacity: 0;
}

.significance-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--green) 100%);
  border-radius: 2px;
  animation: expandBar 2s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 1.2s;
  --w: 99.2%;
  width: 0%;
}

/* ─── Logos bar ──────────────────────────────────────────────── */
.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.logos-track::-webkit-scrollbar { display: none; }

.logo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}
.logo-pill:hover { color: var(--text-2); }
.logo-pill svg { opacity: 0.4; }

/* ─── Stats bar ──────────────────────────────────────────────── */
.stat-item {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ─── Feature grid ───────────────────────────────────────────── */
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(200,255,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── How it works ───────────────────────────────────────────── */
.step-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 72px;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.3s;
}
.step-card:hover .step-number { color: rgba(200,255,0,0.2); }

/* ─── Testimonials ───────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s;
}
.testimonial-card:hover { border-color: rgba(200,255,0,0.2); }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

/* ─── Pricing ────────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.featured {
  border-color: rgba(200,255,0,0.4);
  background: linear-gradient(180deg, rgba(200,255,0,0.04) 0%, transparent 40%), var(--bg-2);
  animation: borderPulse 3s ease-in-out infinite;
}
.pricing-card.featured:hover { border-color: rgba(200,255,0,0.7); }

.price-amount {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.check-item .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(200,255,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-item .check svg { color: var(--accent); }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.3s;
  color: var(--text-2);
}
[x-data] [x-show="open"] ~ div .faq-icon,
.faq-item.open .faq-icon {
  background: var(--accent-dim);
  border-color: rgba(200,255,0,0.3);
  color: var(--accent);
}
.faq-answer {
  font-size: 15px;
  color: var(--text-2);
  padding-bottom: 20px;
  line-height: 1.7;
}

/* ─── Success / error flash ──────────────────────────────────── */
.flash {
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash-success {
  background: rgba(0,232,120,0.1);
  border: 1px solid rgba(0,232,120,0.3);
  color: var(--green);
}
.flash-error {
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.25);
  color: var(--red);
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

/* ─── Responsive helpers ─────────────────────────────────────── */
@media (max-width: 768px) {
  .stat-item { padding: 0 16px; }
  .stat-number { font-size: 26px; }
  .hero-heading { font-size: clamp(36px, 10vw, 72px); }
}
