/* ============================================================
   CRASH COURSE SEO — Centered, Fixed, Production Stylesheet
   Astra Compatible · Full Homepage Alignment Fix
============================================================ */

/* ---------- GLOBAL THEME VARIABLES ---------- */
:root {
  --bg-dark:#0b0f19;
  --bg-darker:#05070d;
  --card-dark:#0f172a;
  --glass:rgba(255,255,255,0.05);
  --glass-border:rgba(255,255,255,0.12);
  --txt-light:#e2e8f0;
  --txt-mid:#94a3b8;
  --primary:#e00000;
  --neon-purple:#b832f6;
  --neon-blue:#4cc9f0;
  --radius:16px;
  --transition:.25s ease;
}

/* ---------- GLOBAL BACKGROUND FIX ---------- */
body,
html,
.site,
#page,
.ast-page-builder-template,
.site-content {
  background: var(--bg-dark) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  color: var(--txt-light);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- FULL WIDTH HOMEPAGE FIX ---------- */
body.home .site,
body.home #page,
body.home .site-content,
body.home .entry-content,
body.home .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Custom homepage wrapper */
.cc-home {
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: block;
}
.cc-home * {
  box-sizing: border-box;
}

/* ---------- CUSTOM NAV ---------- */
.cc-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,.65);
  border-bottom: 1px solid var(--glass-border);
}

.cc-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.cc-nav-links a {
  margin-left: 24px;
  color: var(--txt-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.cc-nav-links a:hover {
  color: var(--neon-blue);
}

.cc-nav-btn {
  padding: 8px 18px;
  background: var(--primary);
  border-radius: var(--radius);
  color: #fff !important;
  font-weight: 600;
  margin-left: 24px;
}

.cc-nav-divider {
  opacity: 0.4;
  margin: 0 10px;
}

/* ---------- HERO SECTION ---------- */
.mf-hero {
  position: relative;
  height: 88vh;
  min-height: 580px;
  width: 100vw !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.cc-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55) saturate(1.4);
}

.cc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.95));
}

.cc-hero-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  padding: 20px;
  margin: 0 auto;
}

/* ---------- ORIGINAL HERO TEXT ---------- */
.mf-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}
.mf-gradient {
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mf-subtitle {
  font-size: 1.2rem;
  color: var(--txt-mid);
  margin-bottom: 32px;
}

/* ---------- HERO BUTTONS ---------- */
.mf-buttons {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.mf-btn-primary,
.mf-btn-ghost {
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.mf-btn-primary {
  background: var(--primary);
  color: #fff;
}
.mf-btn-primary:hover {
  background: #ff3232;
}
.mf-btn-ghost {
  border: 1px solid var(--glass-border);
  color: var(--txt-light);
}
.mf-btn-ghost:hover {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
}

/* ---------- SOCIAL PROOF ---------- */
.mf-social-proof {
  color: var(--txt-mid);
  font-size: .9rem;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- DEMO SECTION ---------- */
.mf-demo-section {
  padding: 100px 20px;
  text-align: center;
  width: 100vw;
  margin: 0 auto;
}
.mf-demo-box {
  max-width: 700px;
  margin: auto;
  background: var(--glass);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.mf-demo-input {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  align-items: center;
}
.mf-demo-input label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-mid);
}
.mf-demo-input input {
  flex: 1;
  background: #020617;
  border: 1px solid var(--glass-border);
  padding: 12px;
  border-radius: var(--radius);
  color: var(--txt-light);
}
.mf-demo-input button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- TAGS ---------- */
.tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.tag.ok   { background:#16a34a33;color:#22c55e; }
.tag.tip  { background:#1d4ed833;color:#60a5fa; }
.tag.warn { background:#b91c1c33;color:#f87171; }

/* ---------- FEATURES GRID ---------- */
.mf-features {
  padding: 100px 20px;
  text-align: center;
  max-width: 1300px;
  margin: auto;
}
.mf-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.mf-card {
  background: var(--card-dark);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.mf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(184,50,246,.35);
  border-color: var(--neon-purple);
}

/* ---------- PRICING ---------- */
.mf-pricing {
  padding: 100px 20px;
  text-align: center;
}
.mf-pricing-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.mf-price-card {
  background: var(--card-dark);
  padding: 34px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.mf-price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 22px rgba(76,201,240,.35);
  border-color: var(--neon-blue);
}
.pill {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

/* ---------- FINAL CTA ---------- */
.mf-final {
  padding: 120px 20px;
  text-align: center;
}

/* ---------- COMPARE STRIP ---------- */
.mf-compare-modern {
  padding: 80px 20px;
  background: transparent;
  color: #d1d5db;
}
.mf-compare-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.mf-compare-left h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #fff;
}
.mf-checklist {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}
.mf-checklist li {
  margin-bottom: 10px;
  font-size: 17px;
  opacity: .9;
}
.mf-compare-card-modern {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.mf-compare-card-modern h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 24px;
}
.mf-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mf-compare-list li {
  margin-bottom: 14px;
  line-height: 1.5;
  font-size: 16px;
}
.mf-compare-list span {
  font-weight: 600;
  color: #ffffff;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:768px){
  .mf-title{font-size:2.3rem;}
  .cc-nav-inner{padding:12px;}
  .cc-nav-links a{margin-left:12px;font-size:.9rem;}
  .mf-compare-inner{
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   UPGRADED HERO (glass card + sparkles)
============================================================ */
.upgraded-hero {
  position: relative;
  padding: 200px 20px 160px;
  text-align: center;
  overflow: hidden;
}

/* Moving gradient glow behind text */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(90,70,255,0.35), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(255,0,90,0.28), transparent 70%);
  animation: bgPulse 9s ease-in-out infinite alternate;
  filter: blur(60px);
}
@keyframes bgPulse {
  0%   { opacity: .5; transform: scale(1); }
  100% { opacity: .9; transform: scale(1.15); }
}

/* Floating glass card */
.hero-glass-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: fadeUp .9s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* HERO TITLE */
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-gradient {
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(107, 70, 255, .35));
  display: inline-block;
}
.hero-subheadline {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 32px;
  margin-top: 6px;
}

/* HERO DESCRIPTION */
.hero-description {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 28px;
}

/* HERO BUTTONS (big) */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 25px;
}
.hero-btn-big {
  font-size: 18px !important;
  padding: 15px 32px !important;
  box-shadow: 0 6px 16px rgba(255,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-btn-big:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,0,0,.5);
}
.hero-btn-outline {
  font-size: 18px !important;
  padding: 15px 28px !important;
}

/* HERO SOCIAL PROOF */
.hero-social-proof span {
  margin: 0 8px;
  opacity: .9;
  font-size: 15px;
}

/* HERO SPARKLE PARTICLES */
.hero-sparkles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-sparkles::before,
.hero-sparkles::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  box-shadow:
    0 0 10px rgba(255,255,255,0.9),
    0 0 20px rgba(255,255,255,0.7),
    0 0 30px rgba(255,255,255,0.4);
  animation: sparkleFloat 9s ease-in-out infinite;
}
.hero-sparkles::before {
  top: 22%;
  left: 18%;
  animation-delay: 0s;
}
.hero-sparkles::after {
  top: 68%;
  left: 72%;
  animation-delay: 3s;
}
.hero-sparkles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  box-shadow:
    0 0 8px rgba(255,255,255,0.8),
    0 0 18px rgba(255,255,255,0.5);
  animation: sparkleFloat 8s ease-in-out infinite;
}
/* 12 drifting sparkles */
.hero-sparkles span:nth-child(1)  { top: 10%; left: 40%; animation-delay: 0.2s; }
.hero-sparkles span:nth-child(2)  { top: 30%; left: 75%; animation-delay: 1.1s; }
.hero-sparkles span:nth-child(3)  { top: 60%; left: 20%; animation-delay: 2.8s; }
.hero-sparkles span:nth-child(4)  { top: 80%; left: 50%; animation-delay: 4.0s; }
.hero-sparkles span:nth-child(5)  { top: 45%; left: 10%; animation-delay: 5.2s; }
.hero-sparkles span:nth-child(6)  { top: 15%; left: 85%; animation-delay: 6.7s; }
.hero-sparkles span:nth-child(7)  { top: 55%; left: 60%; animation-delay: 7.4s; }
.hero-sparkles span:nth-child(8)  { top: 72%; left: 30%; animation-delay: 8.1s; }
.hero-sparkles span:nth-child(9)  { top: 25%; left: 55%; animation-delay: 3.7s; }
.hero-sparkles span:nth-child(10) { top: 5%;  left: 70%; animation-delay: 1.9s; }
.hero-sparkles span:nth-child(11) { top: 90%; left: 15%; animation-delay: 6.0s; }
.hero-sparkles span:nth-child(12) { top: 40%; left: 95%; animation-delay: 2.3s; }

@keyframes sparkleFloat {
  0%   { transform: translateY(0) scale(1);   opacity: .8; }
  50%  { transform: translateY(-35px) scale(1.4); opacity: .4; }
  100% { transform: translateY(0) scale(1);  opacity: .8; }
}

/* ============================================================
   OPTIMIZER DETAILS (1–6 CARDS + BOTTOM STRIP)
============================================================ */
.mf-optimizer-details {
  padding: 80px 20px 40px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: left;
}
.mf-optimizer-details .mf-section-title,
.mf-optimizer-details .mf-section-sub {
  text-align: center;
}

.mf-optimizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

/* 1–6 cards */
.mf-opt-card {
  background: #020617;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 18px 18px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}
.mf-opt-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #e5e7eb;
}
.mf-opt-card p {
  margin: 0 0 10px;
  color: #cbd5e1;
  line-height: 1.6;
}
.mf-opt-card ul {
  margin: 0;
  padding-left: 18px;
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Glow + lift on hover (same family as .mf-card) */
.mf-opt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 26px rgba(184, 50, 246, 0.45);
  border-color: var(--neon-purple);
  background: radial-gradient(circle at top left,
              rgba(129, 140, 248, 0.18),
              rgba(15, 23, 42, 0.98));
}
.mf-opt-card:hover h3,
.mf-opt-card:hover p,
.mf-opt-card:hover li {
  color: #e5e7ff;
}

/* Bottom line strip */
.mf-optimizer-footer {
  margin-top: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.mf-optimizer-footer p {
  color: #e5e7eb;
  font-size: 0.98rem;
  line-height: 1.7;
}

.mf-optimizer-summary {
  margin-top: 32px;
}

.mf-optimizer-summary-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
}

/* pill label + text */
.mf-pill-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  white-space: nowrap;
}

.mf-optimizer-summary-text p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #e5e7eb;
}
.mf-optimizer-summary-text ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.mf-optimizer-summary-text li + li {
  margin-top: 2px;
}

/* same glow style as other cards */
.mf-optimizer-highlight {
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: radial-gradient(circle at top left, rgba(129,140,248,0.16), transparent 55%),
              radial-gradient(circle at bottom right, rgba(236,72,153,0.16), transparent 55%),
              rgba(15,23,42,0.95);
  box-shadow: 0 18px 45px rgba(15,23,42,0.75);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}
.mf-optimizer-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15,23,42,0.95);
  border-color: rgba(196,181,253,0.9);
  background: radial-gradient(circle at top left, rgba(129,140,248,0.25), transparent 55%),
              radial-gradient(circle at bottom right, rgba(236,72,153,0.25), transparent 55%),
              rgba(15,23,42,0.98);
}

/* talking bullets on hover */
.mf-talk-lines li {
  position: relative;
  margin-bottom: 3px;
  opacity: 0.9;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.mf-optimizer-highlight:hover .mf-talk-lines li {
  opacity: 0.3;
}
.mf-optimizer-highlight:hover .mf-talk-lines li:nth-child(1),
.mf-optimizer-highlight:hover .mf-talk-lines li:nth-child(2),
.mf-optimizer-highlight:hover .mf-talk-lines li:nth-child(3) {
  animation: mfTalkLine 2.8s linear infinite;
}
.mf-optimizer-highlight:hover .mf-talk-lines li:nth-child(2) {
  animation-delay: 0.5s;
}
.mf-optimizer-highlight:hover .mf-talk-lines li:nth-child(3) {
  animation-delay: 1.0s;
}

@keyframes mfTalkLine {
  0%,100% {
    opacity: 0.3;
    transform: translateX(0);
  }
  20%,40% {
    opacity: 1;
    transform: translateX(4px);
  }
}

/* mobile stack for bottom strip */
@media (max-width: 640px) {
  .mf-optimizer-summary-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Make Optimizer 1–6 cards obviously tappable */
.mf-opt-card {
  cursor: pointer;
}

/* Extra glow when the card is speaking */
.mf-opt-card.is-speaking {
  border-color: var(--neon-blue);
  box-shadow: 0 0 30px rgba(76, 201, 240, 0.6);
  transform: translateY(-4px);
}
