/* ===== GLOBAL VARIABLES (dark/light) ===== */
:root {
  --bg: #020617;
  --bg-2: #0a0f1e;
  --bg-card: rgba(10, 15, 30, 0.55);
  --bg-card-solid: #0d1424;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #cbd5e1;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(59, 130, 246, 0.4);
  --nav-bg: rgba(2, 6, 23, 0.75);
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --accent: #3b82f6;
  --accent-2: #00d2ff;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --gradient-text: linear-gradient(135deg, #60a5fa 0%, #00d2ff 100%);
  --input-bg: rgba(255, 255, 255, 0.05);
  --transition: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
  --bg: #f0f4ff;
  --bg-2: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-solid: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #475569;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(59, 130, 246, 0.5);
  --nav-bg: rgba(240, 244, 255, 0.85);
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --gradient-text: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --input-bg: rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: 'Inter', 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 30px;
  margin-bottom: 16px;
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 60%, #00d2ff 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.btn-nav-secondary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: color 0.2s;
}

.btn-nav-secondary:hover {
  color: var(--text);
}

.btn-nav-primary {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  padding: 8px 18px;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  color: #fff;
}

.nav-hamburger {
  display: none;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 8px;
  backdrop-filter: blur(20px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-mobile a:hover {
  color: var(--text);
  background: var(--input-bg);
}

/* ===== HERO (PPC) ===== */
.ppc-hero {
  padding: 140px 24px 60px;
  position: relative;
  overflow: hidden;
}

.ppc-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.ppc-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ppc-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.ppc-hero .sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.ppc-hero .hero-img {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 12px;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

.ppc-hero .hero-img img {
  border-radius: 12px;
  width: 100%;
}

/* ===== FEATURE CARDS (3 steps) ===== */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: left;
  backdrop-filter: blur(16px);
  transition: all var(--transition);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  row-gap: 12px;
  align-content: start;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.step-card .step-num {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 14px;
  border-radius: 30px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 0;
  grid-column: 1 / 3;
  grid-row: 1;
  justify-self: start;
}

.step-card .icon-box {
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 16px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.15);
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

.step-card h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  grid-column: 1 / 3;
  grid-row: 3;
}

/* ===== TESTIMONIAL CAROUSEL (simplified) ===== */
.testimonial-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  position: relative;
}

.testimonial-block .quote {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 24px;
  text-align: center;
}

.testimonial-block .author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-block .author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.testimonial-block .author .name {
  font-weight: 700;
}

.testimonial-block .author .title {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== SECTIONS ===== */
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse>* {
  direction: ltr;
}

.content-grid .text-content h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.content-grid .text-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.content-grid .img-wrap {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 8px;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

.content-grid .img-wrap img {
  border-radius: 12px;
  width: 100%;
}

/* ===== FINAL CTA ===== */
.final-cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: var(--card-shadow);
}

.final-cta-card .cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-card h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.final-cta-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 16px auto 36px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .ppc-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-grid.reverse {
    direction: ltr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .btn-nav-secondary {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ppc-hero {
    padding: 120px 20px 40px;
  }

  .testimonial-block {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   LIGHT MODE — ADDITIONAL FIXES (ppc-sales.css)
   ========================================================================== */

[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme="light"] .btn-secondary:hover {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.4);
}

[data-theme="light"] .wavy-bg-canvas {
  opacity: 0.06 !important;
}

/* PPC feature cards */
[data-theme="light"] .feature-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .testimonial-block {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-card h3 {
  color: #0f172a;
}

[data-theme="light"] .feature-card p,
[data-theme="light"] .stat-card p,
[data-theme="light"] .testimonial-block p {
  color: #475569;
}

[data-theme="light"] .stat-card .num {
  color: #0f172a;
}