:root {
  --bg: #060912;
  --bg-raised: #0B1120;
  --bg-card: #0E1629;
  --fg: #F0F4FF;
  --fg-muted: #8892A4;
  --accent: #00D4FF;
  --accent-dim: rgba(0, 212, 255, 0.08);
  --accent-border: rgba(0, 212, 255, 0.25);
  --serp-video-bg: #1A2438;
  --serp-tracked: #00D4FF;
  --serp-organic: #0B1120;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Grid background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Nav ── */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  background: var(--accent-dim);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 580px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-search-demo {
  display: inline-block;
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-raised);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.search-icon { color: var(--fg-muted); font-size: 1rem; }
.search-query { color: var(--fg); font-weight: 500; }
.search-engine {
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ── Stats ── */
.stats {
  position: relative;
  z-index: 1;
  padding: 0 3rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.stat-item {
  background: var(--bg-raised);
  padding: 2rem 1.75rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ── Features ── */
.features {
  position: relative;
  z-index: 1;
  padding: 5rem 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 100%);
}

.features-header {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.features-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.features-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.features-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── SERP Preview ── */
.serp-preview {
  position: relative;
  z-index: 1;
  padding: 5rem 3rem;
  background: var(--bg-raised);
}

.serp-preview-inner {
  max-width: 860px;
  margin: 0 auto;
}

.serp-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.serp-window {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.serp-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.serp-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.serp-url {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

.serp-results {
  padding: 1.5rem;
}

.serp-results-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.serp-organic { margin-bottom: 0.75rem; }

.serp-result {
  padding: 0.75rem 1rem;
  border-left: 2px solid rgba(0, 212, 255, 0.15);
  margin-bottom: 0.5rem;
}

.serp-result-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8AB4F8;
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.serp-result-url {
  font-size: 0.7rem;
  color: #81C995;
  margin-bottom: 0.2rem;
}

.serp-result-desc {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.serp-video-carousel {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1rem 1rem 0.75rem;
  margin-bottom: 0.75rem;
}

.serp-video-carousel-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.serp-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.serp-video-card {
  background: var(--serp-video-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.serp-video-card-tracked {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2);
}

.serp-video-thumb {
  height: 80px;
  background: linear-gradient(135deg, #1A2A3A 0%, #0D1829 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.serp-video-play {
  color: rgba(255,255,255,0.4);
  font-size: 1.25rem;
}

.serp-video-card-tracked .serp-video-thumb {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.serp-video-card-tracked .serp-video-play {
  color: var(--accent);
}

.serp-video-info { padding: 0.6rem 0.75rem; }

.serp-video-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.serp-video-channel {
  font-size: 0.65rem;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}

.serp-video-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.serp-rank-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.serp-platform {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.serp-platform.yt {
  color: #FF0000;
  background: rgba(255, 0, 0, 0.08);
}

.serp-caption {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-align: center;
  font-style: italic;
}

/* ── Testimonials / Built For ── */
.testimonials {
  position: relative;
  z-index: 1;
  padding: 5rem 3rem;
  background: var(--bg);
}

.testimonials-label {
  max-width: 900px;
  margin: 0 auto 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

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

.testimonial-card {
  padding: 1.75rem;
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 12px;
  background: var(--bg-raised);
}

.testimonial-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-role {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.testimonial-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Closing ── */
.closing {
  position: relative;
  z-index: 1;
  padding: 5rem 3rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 3rem;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--fg);
}

.footer-tag {
  font-size: 0.75rem;
  color: var(--fg-muted);
  flex: 1;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(136, 146, 164, 0.5);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero-headline { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .stats { padding: 0 1.5rem 4rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .features { padding: 4rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .serp-preview { padding: 4rem 1.5rem; }
  .serp-video-grid { grid-template-columns: 1fr; }
  .testimonials { padding: 4rem 1.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .closing { padding: 4rem 1.5rem 5rem; }
  .footer {
    padding: 2rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .footer-tag { flex: none; width: 100%; font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.8rem; }
  .stat-value { font-size: 2rem; }
}