/* ════════════════════════════════════════════════════════════════
   SPARKNAUTIC — LANDING PAGE
   Premium dark-mode conversion-optimized design
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Core palette — deep space with electric accents */
  --void: #04060c;
  --surface: #0a0e1a;
  --card: #0f1424;
  --card-hover: #141a30;
  --border: rgba(148, 163, 234, 0.08);
  --border-hover: rgba(148, 163, 234, 0.18);

  /* Accent spectrum */
  --primary: #818cf8;      /* soft indigo — high contrast on dark */
  --primary-bright: #a5b4fc;
  --primary-deep: #6366f1;
  --secondary: #22d3ee;    /* vivid cyan */
  --secondary-soft: #67e8f9;
  --accent: #fbbf24;       /* warm amber */
  --green: #34d399;        /* emerald */
  --green-soft: #6ee7b7;
  --rose: #fb7185;

  /* Text hierarchy */
  --text-hero: #f1f5f9;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Body + background ──────────────────────────────────── */
body.landing-body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.landing-body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ─────────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 60px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(4, 6, 12, 0.8);
  backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.landing-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-bright), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.landing-nav-links { display: flex; gap: 32px; align-items: center; }
.landing-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.landing-nav-links a:hover { color: var(--text); }

.btn-nav {
  background: linear-gradient(135deg, var(--primary-deep), #4f46e5);
  color: white !important;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: all 0.25s !important;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}
.btn-nav:hover {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────────────── */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 60px 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(34, 211, 238, 0.04) 40%, transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero-glow-secondary {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 60%);
  bottom: 10%; right: 10%;
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 860px; margin: 0 auto;
  text-align: center;
}

/* Badge */
.landing-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-bright);
  margin-bottom: 36px;
  animation: fade-in 0.5s ease both;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

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

/* Hero heading */
.landing-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  animation: fade-up 0.7s ease 0.1s both;
  color: var(--text-hero);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-bright) 0%, var(--secondary) 60%, var(--green-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 44px;
  font-weight: 400;
  line-height: 1.7;
  animation: fade-up 0.7s ease 0.2s both;
}

.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fade-up 0.7s ease 0.3s both;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  animation: fade-up 0.7s ease 0.35s both;
}
.hero-note strong { color: var(--green); font-weight: 600; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-deep), #4f46e5);
  color: white;
  padding: 17px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 17px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 234, 0.15);
  transition: all 0.25s;
}
.btn-secondary:hover {
  border-color: rgba(148, 163, 234, 0.3);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-1px);
}

/* Marketplace pills */
.marketplace-pills {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-top: 48px;
  animation: fade-up 0.7s ease 0.4s both;
}

.pill {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.02em;
}

.pill-ebay    { border-color: rgba(34, 211, 238, 0.25); color: var(--secondary-soft); background: rgba(34, 211, 238, 0.06); }
.pill-etsy    { border-color: rgba(251, 191, 36, 0.25);  color: var(--accent);         background: rgba(251, 191, 36, 0.06); }
.pill-amazon  { border-color: rgba(52, 211, 153, 0.25);  color: var(--green-soft);     background: rgba(52, 211, 153, 0.06); }

/* ── Stats bar ────────────────────────────────────────── */
.stats-bar {
  display: flex; justify-content: center; gap: 0;
  padding: 0 60px;
  position: relative; z-index: 1;
}

.stat {
  text-align: center;
  flex: 1;
  padding: 44px 24px;
  border-right: 1px solid var(--border);
  max-width: 280px;
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-bright), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Sections ─────────────────────────────────────────── */
.landing-section { padding: 120px 60px; position: relative; z-index: 1; }

.section-center { text-align: center; max-width: 680px; margin: 0 auto 64px; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--primary);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-hero);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 20px;
  line-height: 1.7;
}

/* ── Features grid ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  padding: 44px 36px;
  transition: background 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { background: var(--card-hover); }

.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.12);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-hero);
  letter-spacing: -0.01em;
}
.feature-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── How it works (steps) ─────────────────────────────── */
.how-it-works-bg {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 50px; right: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--green) 75%, var(--accent) 100%);
  opacity: 0.3;
  z-index: 0;
}

.step { text-align: center; position: relative; z-index: 1; }

.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 24px;
  background: var(--card);
  color: var(--primary-bright);
  border: 2px solid rgba(129, 140, 248, 0.3);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
  transition: all 0.3s;
}

.step:nth-child(2) .step-num { border-color: rgba(34, 211, 238, 0.3); color: var(--secondary); box-shadow: 0 0 20px rgba(34, 211, 238, 0.1); }
.step:nth-child(3) .step-num { border-color: rgba(52, 211, 153, 0.3); color: var(--green); box-shadow: 0 0 20px rgba(52, 211, 153, 0.1); }
.step:nth-child(4) .step-num { border-color: rgba(251, 191, 36, 0.3); color: var(--accent); box-shadow: 0 0 20px rgba(251, 191, 36, 0.1); }

.step-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-hero);
}
.step-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Pricing ──────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: start;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }

.plan-card.popular {
  border-color: rgba(129, 140, 248, 0.4);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, var(--card) 40%);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.12);
  transform: scale(1.02);
}
.plan-card.popular:hover { transform: scale(1.02) translateY(-4px); }

.popular-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-deep), #4f46e5);
  color: white; font-size: 0.68rem; font-weight: 700;
  padding: 5px 18px; border-radius: 0 0 10px 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  margin-bottom: 12px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.1em;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 3.2rem; font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
  color: var(--text-hero);
  line-height: 1;
}
.plan-price span { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }
.plan-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.5; }

.plan-features { list-style: none; margin-bottom: 32px; }
.plan-features li {
  padding: 10px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 0.9rem; }

.btn-plan {
  display: block; width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700; font-size: 0.9rem;
  text-align: center; text-decoration: none;
  cursor: pointer; border: none;
  transition: all 0.25s;
  letter-spacing: 0.01em;
}

.btn-plan-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-plan-outline:hover {
  border-color: rgba(129, 140, 248, 0.4);
  color: var(--primary-bright);
  background: rgba(99, 102, 241, 0.06);
}

.btn-plan-filled {
  background: linear-gradient(135deg, var(--primary-deep), #4f46e5);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-plan-filled:hover {
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

/* ── Testimonials ─────────────────────────────────────── */
.testimonials-bg {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: border-color 0.3s;
}
.testimonial:hover { border-color: var(--border-hover); }

.testimonial::before {
  content: '"';
  position: absolute; top: 20px; right: 28px;
  font-family: var(--font-display);
  font-size: 5rem; font-weight: 800;
  color: rgba(129, 140, 248, 0.08);
  line-height: 1;
}

.stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.95rem; line-height: 1.75; margin-bottom: 24px; color: var(--text); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: white;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--text-hero); }
.author-handle { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── Trust bar ────────────────────────────────────────── */
.trust-bar {
  display: flex; justify-content: center; gap: 48px; align-items: center;
  padding: 48px 60px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-icon { font-size: 1.2rem; }

/* ── CTA ──────────────────────────────────────────────── */
.cta-section {
  padding: 140px 60px;
  text-align: center;
  position: relative; overflow: hidden;
}

.cta-glow {
  position: absolute; width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, rgba(34, 211, 238, 0.04) 40%, transparent 70%);
  bottom: -100px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  position: relative; z-index: 1;
  color: var(--text-hero);
  line-height: 1.1;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  position: relative; z-index: 1;
  line-height: 1.7;
}

.cta-urgency {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 40px;
  position: relative; z-index: 1;
}

/* ── Footer ───────────────────────────────────────────── */
.landing-footer {
  padding: 48px 60px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-studio-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-studio-link:hover { color: var(--secondary); }
.footer-usa { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.5px; }

/* ── Animations ───────────────────────────────────────── */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .landing-nav { padding: 0 24px; height: 64px; }
  .landing-nav-links { display: none; }
  .landing-hero { padding: 120px 24px 80px; }
  .landing-section, .cta-section { padding-left: 24px; padding-right: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .plan-card.popular { transform: none; }
  .plan-card.popular:hover { transform: translateY(-4px); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; padding: 0 24px; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; flex: 1 1 45%; }
  .stat:last-child { border-bottom: none; }
  .landing-footer { flex-direction: column; text-align: center; padding: 32px 24px; }
  .trust-bar { gap: 20px; padding: 32px 24px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 340px; text-align: center; }
}
