/* =====================================================
   HOME.CSS — RankBoost Agency (Redesign 2026)
   ===================================================== */

/* ─── HERO ─── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--section-py-lg) 0 var(--section-py);
  background: linear-gradient(165deg, #fafafd 0%, #f2f2fa 45%, #ffffff 100%);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 55% 60% at 8% 18%,
      rgba(91, 71, 224, 0.09) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 45% 45% at 88% 22%,
      rgba(200, 255, 0, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 30% 30% at 50% 90%,
      rgba(91, 71, 224, 0.04) 0%,
      transparent 60%
    );
  pointer-events: none;
}
/* Subtle grid overlay */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(91, 71, 224, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(91, 71, 224, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 50% 0%,
    black,
    transparent
  );
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
}
.hero-orb-purple {
  width: 220px;
  height: 220px;
  left: 6%;
  top: 26%;
  background: rgba(91, 71, 224, 0.22);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-orb-lime {
  width: 170px;
  height: 170px;
  right: 10%;
  top: 18%;
  background: rgba(200, 255, 0, 0.42);
  animation: heroFloat 7.5s ease-in-out infinite reverse;
}
@keyframes heroFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  40% {
    transform: translate(18px, -28px);
  }
  70% {
    transform: translate(-12px, 16px);
  }
}

/* Hero two-col */
.hero-inner {
  display: grid;
  gap: var(--grid-gap-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hero copy */
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.034em;
  color: var(--ink);
  max-width: 700px;
  margin-top: var(--space-xs);
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--primary);
}

/* ============================================================
   AI THAT ACTUALLY WORKS — intro + live stats
   ============================================================ */
.works-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .works-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ai-illustration { max-width: 420px; margin: 0 auto; }
}
.workspace-frame {
  background: linear-gradient(160deg, var(--primary-light) 0%, #eaf7dc 100%);
  border-radius: var(--r-2xl);
  padding: 44px;
  perspective: 1200px;
}
.workspace-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out);
  transform-style: preserve-3d;
}
.workspace-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.workspace-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.workspace-head span {
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
}
.workspace-chart {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 16px 18px 10px;
  margin-bottom: 16px;
}
.workspace-chart svg {
  width: 100%;
  height: 110px;
  display: block;
}
.workspace-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.wstat {
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: 16px 14px;
  text-align: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.wstat:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}
.wstat strong {
  display: block;
  font-size: 23px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}
.wstat span {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.ai-illustration {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-2xl);
  background: linear-gradient(160deg, var(--primary-light) 0%, #eaf7dc 100%);
  overflow: hidden;
}
.ai-illo-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 10, 15, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 15, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 90%);
}
.illo-orb {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  margin: -85px 0 0 -85px;
  background: conic-gradient(
    from 180deg,
    var(--primary),
    var(--accent),
    var(--primary)
  );
  filter: blur(0.5px);
  box-shadow: 0 30px 60px rgba(91, 71, 224, 0.35);
}
.illo-orb::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}
.illo-orb-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.illo-card {
  position: absolute;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.illo-card svg {
  flex: none;
  color: var(--primary);
}
.illo-card span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.illo-card--seo {
  top: 9%;
  left: 6%;
}
.illo-card--chart {
  bottom: 12%;
  right: 6%;
}
.illo-card--gear {
  top: 14%;
  right: 10%;
}
.illo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(91, 71, 224, 0.25);
}
.illo-ring--1 {
  width: 280px;
  height: 280px;
  left: 50%;
  top: 50%;
  margin: -140px 0 0 -140px;
}
.illo-ring--2 {
  width: 230px;
  height: 230px;
  left: 50%;
  top: 50%;
  margin: -115px 0 0 -115px;
}

/* Small phones: the illustration container itself shrinks below
   ~340px, but the floating cards/rings above were fixed-pixel —
   scale them down here so nothing overlaps or bleeds past the
   rounded container edge. */
@media (max-width: 480px) {
  .illo-card {
    padding: 9px 11px;
    gap: 6px;
    border-radius: var(--r-md);
  }
  .illo-card svg {
    width: 13px;
    height: 13px;
  }
  .illo-card span {
    font-size: 10px;
  }
  .illo-orb {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
  }
  .illo-ring--1 {
    width: 210px;
    height: 210px;
    margin: -105px 0 0 -105px;
  }
  .illo-ring--2 {
    width: 170px;
    height: 170px;
    margin: -85px 0 0 -85px;
  }
}
.illo-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Dashboard visual */
.dashboard-visual {
  position: relative;
  z-index: 1;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(91, 71, 224, 0.04);
  background: var(--surface);
  min-height: 440px;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
  overflow: hidden;
}
.dashboard-visual:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 48px 110px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(91, 71, 224, 0.08);
}
.dashboard-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: inherit;
}

/* Floating stat chips */
.hero-stat-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: chipFloat 4s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.chip-a {
  bottom: 22%;
  left: -9%;
  animation-delay: 0s;
}
.chip-b {
  top: 16%;
  right: -9%;
  animation-delay: 1.5s;
}
.chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.chip-green .chip-icon {
  background: rgba(0, 200, 100, 0.12);
}
.chip-purple .chip-icon {
  background: var(--primary-light);
}
.hero-stat-chip strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.hero-stat-chip span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
}
@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ============================================================
   TECHNOLOGY — dual-direction marquee (premium dark section)
   ============================================================ */
#stack.tech-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0A0A0F 0%, #131126 55%, #0A0A0F 100%) !important;
}
.tech-section::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 50% 55% at 18% 15%, rgba(91,71,224,0.30) 0%, transparent 62%),
    radial-gradient(ellipse 42% 48% at 85% 85%, rgba(200,255,0,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.tech-section::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, black, transparent);
          mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, black, transparent);
  pointer-events: none;
}

.tech-intro { position: relative; z-index: 2; max-width: 620px; text-align: center; margin: 0 auto 56px; }
.tech-section .eyebrow { justify-content: center; color: var(--accent); }
.tech-section .eyebrow::before { background: var(--accent); }
.tech-section .section-title { color: #fff; }
.tech-section .section-title-sub { color: rgba(255,255,255,0.62); margin-bottom: 0; }

/* ── marquee rows ── */
.tech-marquee-wrap {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.tech-row {
  /* Split-axis overflow instead of a single overflow:hidden + padding
     buffer — the buffer approach was fragile (had to calculate the
     exact hover-lift amount) and still clipped in practice. This is
     more robust: horizontal clipping is all that's actually needed to
     keep the infinite-scroll illusion working; vertical overflow can
     just be allowed outright, so ANY hover lift or highlighted-chip
     border shows in full regardless of size. */
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}
.tech-track {
  display: flex; align-items: center; gap: 14px;
  width: max-content;
  animation: tech-scroll-left 42s linear infinite;
}
.tech-row--b .tech-track { animation-name: tech-scroll-right; animation-duration: 52s; }
.tech-row:hover .tech-track { animation-play-state: paused; }

@keyframes tech-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes tech-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tech-track { animation: none; }
}

.tech-chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  background: #17162B; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px; padding: 12px 20px 12px 12px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.tech-chip:hover {
  transform: translateY(-3px);
}
.tech-chip-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
}
.tech-chip-icon svg { width: 16px; height: 16px; fill: none; }
.tech-chip-name { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }

/* per-tool accent color — colored at rest, not just on hover, so the row
   reads as a lively multi-brand wall rather than a flat monotone list */
.tech-chip[data-icon="openai"]      { background: rgba(116,170,156,0.14); border-color: rgba(116,170,156,0.22); }
.tech-chip[data-icon="openai"] .tech-chip-icon      { background: rgba(116,170,156,0.22); }
.tech-chip[data-icon="openai"] .tech-chip-icon svg  { stroke:#74AA9C; color:#74AA9C; }
.tech-chip[data-icon="openai"]:hover                { border-color:#74AA9C; background: rgba(116,170,156,0.22); }

.tech-chip[data-icon="claude"]      { background: rgba(217,119,87,0.14); border-color: rgba(217,119,87,0.22); }
.tech-chip[data-icon="claude"] .tech-chip-icon      { background: rgba(217,119,87,0.22); }
.tech-chip[data-icon="claude"] .tech-chip-icon svg  { stroke:#D97757; color:#D97757; }
.tech-chip[data-icon="claude"]:hover                { border-color:#D97757; background: rgba(217,119,87,0.22); }

.tech-chip[data-icon="gemini"]      { background: rgba(138,180,248,0.14); border-color: rgba(138,180,248,0.22); }
.tech-chip[data-icon="gemini"] .tech-chip-icon      { background: rgba(138,180,248,0.22); }
.tech-chip[data-icon="gemini"] .tech-chip-icon svg  { stroke:#8AB4F8; color:#8AB4F8; }
.tech-chip[data-icon="gemini"]:hover                { border-color:#8AB4F8; background: rgba(138,180,248,0.22); }

.tech-chip[data-icon="wordpress"]      { background: rgba(92,169,214,0.14); border-color: rgba(92,169,214,0.22); }
.tech-chip[data-icon="wordpress"] .tech-chip-icon      { background: rgba(92,169,214,0.22); }
.tech-chip[data-icon="wordpress"] .tech-chip-icon svg  { stroke:#5CA9D6; color:#5CA9D6; }
.tech-chip[data-icon="wordpress"]:hover                { border-color:#5CA9D6; background: rgba(92,169,214,0.22); }

.tech-chip[data-icon="shopify"]      { background: rgba(149,212,106,0.14); border-color: rgba(149,212,106,0.22); }
.tech-chip[data-icon="shopify"] .tech-chip-icon      { background: rgba(149,212,106,0.22); }
.tech-chip[data-icon="shopify"] .tech-chip-icon svg  { stroke:#95D46A; color:#95D46A; }
.tech-chip[data-icon="shopify"]:hover                { border-color:#95D46A; background: rgba(149,212,106,0.22); }

.tech-chip[data-icon="webflow"]      { background: rgba(108,108,229,0.14); border-color: rgba(108,108,229,0.22); }
.tech-chip[data-icon="webflow"] .tech-chip-icon      { background: rgba(108,108,229,0.22); }
.tech-chip[data-icon="webflow"] .tech-chip-icon svg  { stroke:#6C6CE5; color:#6C6CE5; }
.tech-chip[data-icon="webflow"]:hover                { border-color:#6C6CE5; background: rgba(108,108,229,0.22); }

.tech-chip[data-icon="hubspot"]      { background: rgba(255,156,107,0.14); border-color: rgba(255,156,107,0.22); }
.tech-chip[data-icon="hubspot"] .tech-chip-icon      { background: rgba(255,156,107,0.22); }
.tech-chip[data-icon="hubspot"] .tech-chip-icon svg  { stroke:#FF9C6B; color:#FF9C6B; }
.tech-chip[data-icon="hubspot"]:hover                { border-color:#FF9C6B; background: rgba(255,156,107,0.22); }

.tech-chip[data-icon="salesforce"]      { background: rgba(111,179,242,0.14); border-color: rgba(111,179,242,0.22); }
.tech-chip[data-icon="salesforce"] .tech-chip-icon      { background: rgba(111,179,242,0.22); }
.tech-chip[data-icon="salesforce"] .tech-chip-icon svg  { stroke:#6FB3F2; color:#6FB3F2; }
.tech-chip[data-icon="salesforce"]:hover                { border-color:#6FB3F2; background: rgba(111,179,242,0.22); }

.tech-chip[data-icon="n8n"]      { background: rgba(255,122,158,0.14); border-color: rgba(255,122,158,0.22); }
.tech-chip[data-icon="n8n"] .tech-chip-icon      { background: rgba(255,122,158,0.22); }
.tech-chip[data-icon="n8n"] .tech-chip-icon svg  { stroke:#FF7A9E; color:#FF7A9E; }
.tech-chip[data-icon="n8n"]:hover                { border-color:#FF7A9E; background: rgba(255,122,158,0.22); }

.tech-chip[data-icon="make"]      { background: rgba(179,156,255,0.14); border-color: rgba(179,156,255,0.22); }
.tech-chip[data-icon="make"] .tech-chip-icon      { background: rgba(179,156,255,0.22); }
.tech-chip[data-icon="make"] .tech-chip-icon svg  { stroke:#B39CFF; color:#B39CFF; }
.tech-chip[data-icon="make"]:hover                { border-color:#B39CFF; background: rgba(179,156,255,0.22); }

.tech-chip[data-icon="zapier"]      { background: rgba(255,159,67,0.14); border-color: rgba(255,159,67,0.22); }
.tech-chip[data-icon="zapier"] .tech-chip-icon      { background: rgba(255,159,67,0.22); }
.tech-chip[data-icon="zapier"] .tech-chip-icon svg  { stroke:#FF9F43; color:#FF9F43; }
.tech-chip[data-icon="zapier"]:hover                { border-color:#FF9F43; background: rgba(255,159,67,0.22); }

.tech-chip[data-icon="gohighlevel"]      { background: rgba(107,184,255,0.14); border-color: rgba(107,184,255,0.22); }
.tech-chip[data-icon="gohighlevel"] .tech-chip-icon      { background: rgba(107,184,255,0.22); }
.tech-chip[data-icon="gohighlevel"] .tech-chip-icon svg  { stroke:#6BB8FF; color:#6BB8FF; }
.tech-chip[data-icon="gohighlevel"]:hover                { border-color:#6BB8FF; background: rgba(107,184,255,0.22); }

.tech-chip[data-icon="slack"]      { background: rgba(200,121,232,0.14); border-color: rgba(200,121,232,0.22); }
.tech-chip[data-icon="slack"] .tech-chip-icon      { background: rgba(200,121,232,0.22); }
.tech-chip[data-icon="slack"] .tech-chip-icon svg  { stroke:#C879E8; color:#C879E8; }
.tech-chip[data-icon="slack"]:hover                { border-color:#C879E8; background: rgba(200,121,232,0.22); }

.tech-chip[data-icon="twilio"]      { background: rgba(255,107,107,0.14); border-color: rgba(255,107,107,0.22); }
.tech-chip[data-icon="twilio"] .tech-chip-icon      { background: rgba(255,107,107,0.22); }
.tech-chip[data-icon="twilio"] .tech-chip-icon svg  { stroke:#FF6B6B; color:#FF6B6B; }
.tech-chip[data-icon="twilio"]:hover                { border-color:#FF6B6B; background: rgba(255,107,107,0.22); }

@media (max-width: 640px) {
  .tech-chip { padding: 10px 16px 10px 10px; gap: 8px; }
  .tech-chip-icon { width: 26px; height: 26px; }
  .tech-chip-icon svg { width: 14px; height: 14px; }
  .tech-chip-name { font-size: 13px; }
  .tech-marquee-wrap { gap: 14px; }
}

/* ── highlight strip ── */
.tech-highlight {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 18px;
  max-width: 620px; margin: 44px auto 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: 22px 28px;
}
.tech-highlight-icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,255,0,0.12);
  color: var(--accent);
}
.tech-highlight-icon svg { width: 20px; height: 20px; }
.tech-highlight p { font-size: 14.5px; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0; }
.tech-highlight p strong { color: #fff; }
@media (max-width: 560px) {
  .tech-highlight { flex-direction: column; text-align: center; gap: 12px; padding: 24px 22px; }
}


/* ============================================================
   PROOF / TRUST STATS
   ============================================================ */
.proof-stats{ background:var(--surface); }
.proof-lead{ text-align:center; font-size:15px; font-weight:600; color:var(--ink-muted); margin-bottom:40px; }
.proof-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:900px){ .proof-grid{ grid-template-columns:repeat(2,1fr); gap:12px; } }
@media (max-width:480px){ .proof-grid{ grid-template-columns:1fr; } }
.proof-stat{
  text-align:center; padding:22px 16px; border-radius:var(--r-lg);
  background:var(--surface-2); border:1px solid var(--line);
  transition:transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.proof-stat:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.proof-stat-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  background:var(--primary-light); color:var(--primary);
  margin-bottom:10px;
}
.proof-stat strong{ display:block; font-size:clamp(24px,2.6vw,30px); font-weight:900; color:var(--primary); margin-bottom:4px; }
.proof-stat span{ font-size:12.5px; color:var(--ink-muted); font-weight:600; line-height:1.4; }

/* Staggered "counting through" entrance — each stat pops in slightly
   after the previous one, with a small scale-up alongside the fade,
   so the row reads like it's counting through rather than just
   fading in all at once. */
.proof-stat.reveal { transform: translateY(20px) scale(0.9); }
.proof-stat.reveal.in-view { transform: none; }
.proof-grid .proof-stat:nth-child(1) { transition-delay: 0ms; }
.proof-grid .proof-stat:nth-child(2) { transition-delay: 100ms; }
.proof-grid .proof-stat:nth-child(3) { transition-delay: 200ms; }
.proof-grid .proof-stat:nth-child(4) { transition-delay: 300ms; }


/* ============================================================
   THE PROBLEM — bento icon-card grid (recreated)
   "Your business is moving fast. Your workflows aren't."
   ============================================================ */
.problem{ background:var(--surface-2) !important; }
.problem-intro{ max-width:680px; margin:0 auto 48px; text-align:center; }
.problem-intro .section-title{ margin-bottom:0; }
.problem-intro .section-sub{ max-width:600px; margin:0 auto; }
/* Matches the site's default heading-highlight pattern exactly (same
   purple text used for "AI" etc. elsewhere) rather than a separate
   marker/underline treatment — the global .section-title em rule in
   master.css already handles this, so no override is needed here. */

.problem-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.problem-card{
  position: relative;
  padding: 32px 30px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms;
}
.problem-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(20,16,45,0.08);
  border-color: rgba(91,71,224,0.16);
}
.problem-card-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 20px;
  transition: background 280ms, color 280ms, transform 280ms var(--ease);
}
.problem-card:hover .problem-card-icon{
  transform: scale(1.08) rotate(-4deg);
}
.problem-card h3{ font-size:18.5px; margin-bottom:8px; letter-spacing:-0.01em; }
.problem-card p{ font-size:14px; color:var(--ink-muted); line-height:1.65; }

/* Signature accent card — dark, breaks the grid rhythm bento-style */
.problem-card--accent{
  background: linear-gradient(150deg, var(--ink) 0%, #1a1830 100%);
  border-color: transparent;
}
.problem-card--accent h3{ color:#fff; }
.problem-card--accent p{ color: rgba(255,255,255,0.6); }
.problem-card--accent .problem-card-icon{
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

@media (max-width: 720px){
  .problem-grid{ grid-template-columns: 1fr; }
}

.problem-close{
  margin-top:44px; text-align:center; max-width:640px; margin-left:auto; margin-right:auto;
  padding: 30px 32px;
  border-radius: var(--r-xl);
  background: var(--primary-light);
  border: 1px solid rgba(91,71,224,0.14);
}
.problem-close h4{ font-size:20px; margin-bottom:10px; color: var(--ink); }
.problem-close p{ font-size:15px; color:var(--ink-muted); line-height:1.7; }

.framework-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
  min-height: 380px;
  position: relative;
}
.framework-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.process-board {
  display: grid;
  gap: var(--space-xs);
}

/* ─── RESULTS / BLACK BAND ─── */
.black-band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}
.black-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 50% 60% at 90% 90%,
      rgba(200, 255, 0, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 50% at 10% 10%,
      rgba(91, 71, 224, 0.1) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.black-band h2 {
  color: #fff;
}
.black-band .eyebrow {
  color: var(--accent);
}
.black-band .eyebrow::before {
  background: var(--accent);
}

.result-visual {
  position: relative;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--card-pad);
  overflow: hidden;
}
.result-visual img {
  width: 100%;
  border-radius: var(--r-md);
  opacity: 0.85;
}
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap-sm);
  margin-top: var(--space-md);
}
.before-after > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  transition: background 200ms;
}
.before-after > div:hover {
  background: rgba(255, 255, 255, 0.1);
}
.before-after small {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-xs);
}
.before-after b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.035em;
}
.growth-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-xs);
  height: 84px;
  margin-top: var(--space-md);
}
.growth-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(200, 255, 0, 0.7);
  transform-origin: bottom center;
  transition: opacity 200ms;
}
.growth-bars i:nth-child(even) {
  background: rgba(91, 71, 224, 0.65);
}
.growth-bars i:nth-child(1) {
  height: 34%;
}
.growth-bars i:nth-child(2) {
  height: 52%;
}
.growth-bars i:nth-child(3) {
  height: 70%;
}
.growth-bars i:nth-child(4) {
  height: 48%;
}
.growth-bars i:nth-child(5) {
  height: 82%;
}
.growth-bars i:nth-child(6) {
  height: 65%;
}
.growth-bars i:nth-child(7) {
  height: 92%;
}

.proof-row {
  display: grid;
  gap: var(--grid-gap-sm);
}
@media (min-width: 768px) {
  .proof-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.proof-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.04);
  padding: var(--card-pad) 28px;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
  transition-delay: var(--d, 0ms);
  position: relative;
  overflow: hidden;
}
.proof-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.proof-card:hover::before {
  transform: scaleX(1);
}
.proof-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}
.proof-card strong {
  display: block;
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: var(--space-sm);
}
.proof-card span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* ─── FOUNDER SECTION ─── */
.founder-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  min-height: 440px;
  background: var(--surface-2);
}
.founder-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.growth-note {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.growth-note::before {
  content: "↗";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}
.text-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.text-grid p {
  padding: 18px 20px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.72;
  transition: border-left-color 200ms, background 200ms;
}
.text-grid p:hover {
  background: var(--primary-light);
  border-left-color: var(--primary-dark);
}
.text-grid p strong {
  color: var(--ink);
  font-weight: 800;
}
@media (min-width: 768px) {
  .text-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── HOME FAQ GRID ─── */
.home-faq-grid {
  display: grid;
  gap: var(--grid-gap-lg);
  align-items: start;
}
@media (min-width: 1024px) {
  .home-faq-grid {
    grid-template-columns: 0.7fr 1.3fr;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1023px) {
  .chip-a,
  .chip-b {
    display: none;
  }
}
@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding: 118px 0 64px;
  }
  .hero-copy h1 {
    font-size: 33px;
    letter-spacing: -0.025em;
  }
  .dashboard-visual {
    min-height: 320px;
  }
  .before-after {
    grid-template-columns: 1fr;
  }
  .proof-card strong {
    font-size: 38px;
  }
}

/* =====================================================
   RBH — HOME HERO BANNER (AI searches. We introduce you.)
   Namespaced with rbh- to avoid clashing with the legacy
   .hero-* rules above (kept in place, no longer rendered
   on index.php but still safe to leave for reference).
   ===================================================== */

.rbh-hero {
  position: relative;
  overflow: hidden;
  padding: var(--section-py-lg) 0 20px;
  background: linear-gradient(
    120deg,
    #e3ddfb 0%,
    #ece9fc 35%,
    #e3f4f1 75%,
    #dff3ef 100%
  );
}

.rbh-frame {
  position: relative;
  max-width: 1132px;
  margin: 0 auto;
  padding: 28px 40px 50px;
  text-align: center;
  z-index: 2;
}

/* decorative floating icon cards */
.rbh-decor {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  width: 81px;
  height: 81px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(91, 71, 224, 0.18);
  z-index: 1;
  animation: rbh-float 5s ease-in-out infinite;
}
.rbh-decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}
.rbh-decor-1 {
  animation-delay: 0s;
}
.rbh-decor-2 {
  animation-delay: 0.6s;
}
.rbh-decor-3 {
  animation-delay: 1.2s;
}
.rbh-decor-4 {
  animation-delay: 1.8s;
}
.rbh-decor-5 {
  animation-delay: 2.4s;
}
.rbh-decor-6 {
  animation-delay: 3s;
}
@keyframes rbh-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--rot, 0deg));
  }
}

.rbh-decor-1 {
  top: -15px;
  left: 100px;
  --rot: -14deg;
}
.rbh-decor-2 {
  top: 250px;
  left: 0px;
  --rot: 10deg;
}
.rbh-decor-3 {
  top: 465px;
  left: 140px;
  --rot: -8deg;
}
.rbh-decor-4 {
  top: 135px;
  right: 30px;
  --rot: 12deg;
}
.rbh-decor-5 {
  top: 400px;
  right: 10px;
  --rot: -10deg;
}
.rbh-decor-6 {
  top: 600px;
  right: 150px;
  --rot: 9deg;
}

.rbh-arrow {
  position: absolute;
  left: 165px;
  top: 620px;
  width: 100px;
  z-index: 1;
}

.rbh-dash {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 1;
}
.rbh-dash-1 {
  top: 100px;
  left: 110px;
}
.rbh-dash-2 {
  top: 285px;
  right: 145px;
}

/* badge */
.rbh-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(10, 10, 15, 0.06);
  margin-top: 32px;
  margin-bottom: 34px;
}
.rbh-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3fd68f;
  box-shadow: 0 0 0 4px rgba(63, 214, 143, 0.2);
  animation: rbh-pulse 2s ease-in-out infinite;
}
@keyframes rbh-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(63, 214, 143, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(63, 214, 143, 0.08);
  }
}

/* headline */
.rbh-headline {
  font-size: 78px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: normal;
  max-width: 100%;
  margin: 0 auto;
  font-family: "DM Sans", sans-serif;
}
.rbh-headline .rbh-we {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90.92deg, #134eec 0.05%, #7c5ff9 100.03%);
  color: #fff;
  padding: 12px 24px 12px;
  border-radius: 18px;
  margin: 0 6px;
  transform: rotate(-2deg);
  box-shadow: 0 14px 30px rgba(91, 71, 224, 0.35);
}

.rbh-subcopy {
  max-width: 560px;
  margin: 34px auto 0;
  font-size: 18px;
  line-height: normal;
  color: var(--ink-muted);
  font-family: "DM Sans", sans-serif;
}
.rbh-subcopy b {
  color: var(--primary);
  font-weight: 700;
}

.rbh-cta {
  margin-top: 34px;
  display: inline-block;
  background: linear-gradient(90.92deg, #134eec 0.05%, #7c5ff9 100.03%);
  color: #fff;
  border: none;
  padding: 17px 34px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(91, 71, 224, 0.35);
}

.rbh-eyebrow {
  position: absolute;
  left: 100px;
  bottom: 110px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  text-align: center;
  z-index: 2;
}
.rbh-eyebrow b {
  color: var(--primary);
}

/* chat widget */
.rbh-widget {
  position: relative;
  max-width: 560px;
  margin: 120px auto 0;
  z-index: 3;
}

.rbh-avatar {
  position: relative;
  width: 180px;
  margin: 0 auto -12px;
  z-index: 4;
}
.rbh-avatar img {
  width: 100%;
  display: block;
}

.rbh-card {
  background: #fff;
  border-radius: 28px;
  padding: 44px 34px 34px;
  box-shadow: 0 30px 60px rgba(10, 10, 15, 0.12);
  position: relative;
  z-index: 2;
}

.rbh-card-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 14px;
}
.rbh-card-tag svg {
  width: 16px;
  height: 16px;
}

.rbh-card-title {
  text-align: left;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
}

.rbh-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-3);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border: 1.5px solid transparent;
  transition: border-color 160ms;
}
.rbh-input:focus-within {
  border-color: var(--primary);
  background: #fff;
}
.rbh-input svg {
  flex-shrink: 0;
}
.rbh-input-field {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.rbh-input-field::placeholder {
  color: #8a87a0;
}

.rbh-card-cta {
  width: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #8b7cf6 100%);
  color: #fff;
  border: none;
  padding: 17px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 160ms, transform 120ms;
}
.rbh-card-cta:not(:disabled):hover {
  transform: translateY(-1px);
}
.rbh-card-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ═══════ 3-Step Audit Explainer ═══════ */
.rbh-steps {
  max-width: 900px;
  margin: 56px auto 0;
  text-align: center;
  position: relative;
  z-index: 2;
}
.rbh-steps-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.rbh-steps-subcopy {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}
.rbh-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.rbh-step {
  background: #fff;
  border: 1px solid rgba(20, 16, 40, 0.08);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.rbh-step-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rbh-step-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.rbh-step-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* responsive */
@media (max-width: 1100px) {
  /* Widened from 900px — the previous breakpoint left a real gap
     zone (roughly 901–1100px, tablet/small-laptop widths) where the
     full desktop-density hero layout was still active but the
     viewport wasn't wide enough to host it without the floating
     decor cards and widget card overlapping the headline/subcopy
     text — confirmed by a reported screenshot at exactly 1024px
     wide showing this overlap. */
  .rbh-eyebrow {
    display: none;
  }
  .rbh-decor,
  .rbh-dash {
    display: none;
  }
  .rbh-arrow {
    display: none;
  }
  .rbh-frame {
    padding: 20px 20px 0;
  }
  .rbh-hero {
    padding: 130px 0 64px;
  }
  .rbh-headline {
    font-size: 65px;
  }
  .rbh-steps-grid {
    grid-template-columns: 1fr;
  }
  .rbh-widget {
    margin-top: 48px;
  }
}
@media (max-width: 480px) {
  .rbh-card {
    padding: 34px 22px 26px;
  }
  .rbh-badge {
    font-size: 12px;
    padding: 9px 16px;
  }
  .rbh-headline {
    font-size: 38px;
  }
  .rbh-steps {
    margin-top: 40px;
  }
  .rbh-steps-title {
    font-size: 22px;
  }
}

/* ============================================================
   HOMEPAGE BUTTON CONSISTENCY
   Every primary button below the hero now matches the hero's own
   "Generate Free AI Visibility Report" button (.rbh-card-cta):
   gradient fill, 16px rounded-rect corners — instead of the
   flat-fill, 8px-radius default that .primary-cta uses site-wide.
   (Font-family is DM Sans everywhere now — that part of this
   override used to be needed when the global button still said
   Poppins; fixed at the source in master.css, so it's not repeated
   here anymore.) Scoped to home.css only (loaded exclusively on
   the homepage), so no other page is affected.
   ============================================================ */
main .primary-cta {
  background: linear-gradient(90deg, var(--primary) 0%, #8b7cf6 100%);
  border-radius: 16px;
  font-weight: 700;
}
main .primary-cta:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
}
main .primary-cta.light {
  background: var(--accent);
}
main .primary-cta.light:hover {
  background: var(--accent-hover);
}
main .secondary-cta {
  border-radius: 16px;
  font-weight: 700;
}
