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

:root {
  --bg:      #09090f;
  --bg2:     #0d0d1a;
  --card:    #111120;
  --card2:   #16162a;
  --bdr:     rgba(108,63,199,0.18);
  --bdr2:    rgba(255,255,255,0.06);
  --purple:  #6C3FC7;
  --pink:    #C04FCC;
  --gold:    #F5A623;
  --white:   #ffffff;
  --grey:    #8888aa;
  --light:   #E8E0FF;
  --green:   #27AE60;
  --red:     #E74C3C;
  --orange:  #F39C12;
  --blue:    #3498DB;
  --r:       14px;
  --rs:      8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar ──────────────────────────────────────────────────── */
.topbar {
  background: rgba(108,63,199,0.1);
  border-bottom: 1px solid rgba(108,63,199,0.2);
  text-align: center;
  padding: 9px 20px;
  font-size: 12px;
  color: var(--light);
}
.topbar a { color: var(--gold); font-weight: 600; }

/* ── Navbar ───────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,15,0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bdr2);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.logo-icon.sm { width: 28px; height: 28px; border-radius: 7px; }
.logo-icon svg { width: 20px; height: 20px; }
.logo-icon.sm svg { width: 15px; height: 15px; }
.logo-dot {
  position: absolute;
  bottom: 3px; right: 3px;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  border: 1.5px solid var(--bg);
}
.logo-icon.sm .logo-dot { width: 5px; height: 5px; bottom: 2px; right: 2px; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.logo-text span { color: var(--purple); }

/* Nav links */
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--grey);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--rs);
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--light); }

/* Nav CTA */
.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--rs);
  white-space: nowrap;
  transition: opacity .2s;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.85; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--grey);
  border-radius: 2px;
  transition: all .25s;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 90px 24px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,63,199,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,63,199,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.glow-1 {
  width: 600px; height: 400px;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(108,63,199,0.2), transparent 70%);
}
.glow-2 {
  width: 350px; height: 350px;
  bottom: -100px; right: -80px;
  background: radial-gradient(ellipse, rgba(192,79,204,0.12), transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  width: 100%;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,63,199,0.12);
  border: 1px solid rgba(108,63,199,0.3);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.5); }
}

/* Headline */
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.grad {
  background: linear-gradient(135deg, #a97fff 0%, var(--pink) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: var(--grey);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── Analyzer Card ────────────────────────────────────────────── */
.analyzer-card {
  background: rgba(17,17,32,0.92);
  border: 1px solid rgba(108,63,199,0.28);
  border-radius: 20px;
  padding: 28px 32px 24px;
  max-width: 680px;
  margin: 0 auto 22px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(108,63,199,0.08),
    0 32px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.analyzer-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
  border-radius: 1px;
}

/* Input label */
.input-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
  text-align: left;
}

/* Input row */
.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.input-wrap { position: relative; flex: 1; }
.input-prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--grey);
  pointer-events: none;
  font-weight: 500;
  user-select: none;
}
.url-input {
  width: 100%;
  height: 52px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(108,63,199,0.22);
  border-radius: var(--rs);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 0 14px 0 72px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.url-input::placeholder { color: rgba(136,136,170,0.45); }
.url-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108,63,199,0.14);
}
.url-input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(231,76,60,0.12); }

/* Analyze button */
.btn-analyze {
  height: 52px;
  padding: 0 26px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  border-radius: var(--rs);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}
.btn-analyze svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-analyze:hover { opacity: .88; }
.btn-analyze:active { transform: scale(.97); }
.btn-analyze:disabled { opacity: .5; cursor: not-allowed; }

/* Input note */
.input-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 11px;
  color: rgba(136,136,170,0.65);
}

/* ── Progress state ───────────────────────────────────────────── */
.prog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.prog-site {
  font-size: 13px;
  font-weight: 600;
  color: var(--light);
}
.prog-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--purple);
}
.prog-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 14px;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 100px;
  width: 0;
  transition: width .4s ease;
}
.prog-steps { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.prog-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--grey);
  padding: 6px 10px;
  border-radius: var(--rs);
  background: rgba(255,255,255,0.02);
  transition: all .25s;
}
.prog-step.active {
  color: var(--white);
  background: rgba(108,63,199,0.1);
}
.prog-step.done {
  color: var(--green);
  background: rgba(39,174,96,0.06);
}
.ps-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  transition: all .25s;
}
.prog-step.active .ps-icon {
  background: rgba(108,63,199,0.25);
  animation: spin .8s linear infinite;
}
.prog-step.done .ps-icon { background: rgba(39,174,96,0.2); }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-cancel {
  background: none;
  border: 1px solid var(--bdr2);
  border-radius: var(--rs);
  color: var(--grey);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
  transition: all .2s;
  display: block;
  margin: 0 auto;
}
.btn-cancel:hover { border-color: var(--red); color: var(--red); }

/* ── Error state ──────────────────────────────────────────────── */
.err-icon { font-size: 32px; margin-bottom: 10px; }
.err-msg { font-size: 14px; color: var(--red); margin-bottom: 14px; }
.btn-retry {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  border-radius: var(--rs);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-retry:hover { opacity: .85; }

/* ── Stats strip ─────────────────────────────────────────────── */
.stats-strip {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--bdr2);
  border-radius: var(--rs);
  overflow: hidden;
}
.stat {
  flex: 1;
  padding: 13px 12px;
  text-align: center;
  border-right: 1px solid var(--bdr2);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-l {
  font-size: 9px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  margin-top: 2px;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-dark { background: var(--bg2); }
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.section-head p {
  font-size: 15px;
  color: var(--grey);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Features Grid ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--bdr2);
  border-radius: var(--r);
  padding: 26px;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,63,199,0.04), transparent);
  pointer-events: none;
}
.feature-card:hover {
  border-color: rgba(108,63,199,0.35);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.fi-purple { background: rgba(108,63,199,0.14); }
.fi-pink   { background: rgba(192,79,204,0.14); }
.fi-gold   { background: rgba(245,166,35,0.14); }
.fi-green  { background: rgba(39,174,96,0.14);  }
.fi-blue   { background: rgba(52,152,219,0.14); }
.fi-red    { background: rgba(231,76,60,0.14);  }
.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 7px;
}
.feature-desc { font-size: 13px; color: var(--grey); line-height: 1.65; }
.feature-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.ftag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--grey);
}

/* ── Steps ────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.6% + 36px);
  right: calc(16.6% + 36px);
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  opacity: .25;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--bdr2);
  border-radius: var(--r);
  padding: 28px 22px;
  text-align: center;
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}
.step-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p { font-size: 13px; color: var(--grey); line-height: 1.65; }

/* ── CTA Box ──────────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, rgba(108,63,199,0.1), rgba(192,79,204,0.06));
  border: 1px solid rgba(108,63,199,0.22);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(108,63,199,0.18), transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}
.cta-box p {
  font-size: 15px;
  color: var(--grey);
  margin-bottom: 28px;
  position: relative;
}
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--rs);
  transition: opacity .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--light);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--rs);
  border: 1px solid rgba(108,63,199,0.35);
  transition: background .2s;
  cursor: pointer;
}
.btn-outline:hover { background: rgba(108,63,199,0.1); }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--bdr2);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.footer-links { font-size: 12px; color: var(--grey); }
.footer-links a { color: var(--purple); }
.footer-links a:hover { color: var(--pink); }
.footer-copy { font-size: 11px; color: rgba(136,136,170,.5); }

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--card);
  border: 1px solid rgba(39,174,96,0.35);
  border-radius: var(--rs);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  z-index: 200;
  max-width: 320px;
  word-break: break-all;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.err { border-color: rgba(231,76,60,.35); color: var(--red); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(9,9,15,.98); border-bottom: 1px solid var(--bdr2); padding: 12px 0; flex-direction: column; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 24px; border-radius: 0; }
  .nav-burger { display: flex; }

  .hero { padding: 70px 20px 50px; }
  .hero h1 { letter-spacing: -1px; }

  .analyzer-card { padding: 22px 18px 18px; }
  .input-row { flex-direction: column; }
  .btn-analyze { width: 100%; justify-content: center; }
  .input-note { gap: 10px; flex-wrap: wrap; }

  .stats-strip .stat-n { font-size: 17px; }

  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }

  .cta-box { padding: 40px 22px; }

  .section { padding: 60px 0; }

  .toast { bottom: 16px; right: 16px; left: 16px; max-width: none; }
}
@media (max-width: 480px) {
  .stats-strip { flex-wrap: wrap; }
  .stat { min-width: 50%; border-bottom: 1px solid var(--bdr2); }
}
