/* =====================================================
   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); }

/* Trust line */
.trust-line {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink-muted);
  font-size: 13.5px; line-height: 1.65;
  max-width: 560px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-md);
}
.mini-check {
  display: inline-flex; width: 20px; height: 20px;
  flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent);
  color: #000; font-size: 11px; font-weight: 900; margin-top: 1px;
}

/* 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); }
}

/* ─── TRUST BAND (alt: surface) ─── */
.trust-band {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.trust-panel {
  display: flex; align-items: center;
  gap: var(--grid-gap-sm) 28px; flex-wrap: wrap; justify-content: center;
}
.section-kicker {
  font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-faint); white-space: nowrap;
}
.trust-divider { width: 1px; height: 20px; background: var(--line-strong); flex-shrink: 0; }
.trust-metrics { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.trust-metrics span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-muted); font-size: 13px; font-weight: 700;
  transition: background 160ms, border-color 160ms, color 160ms;
}
.trust-metrics span:hover {
  background: var(--primary-light);
  border-color: rgba(91,71,224,0.2); color: var(--primary);
}
.trust-metrics span::before {
  content: ''; width: 7px; height: 7px; border-radius: 999px;
  background: var(--primary); flex-shrink: 0;
}

/* ─── WHY SECTION image ─── */
.strategy-image {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  min-height: 440px; position: relative;
  background: var(--surface-2);
  transition: box-shadow 400ms var(--ease);
}
.strategy-image:hover { box-shadow: 0 32px 80px rgba(0,0,0,0.16); }
.strategy-image img { transition: transform 600ms var(--ease); }
.strategy-image:hover img { transform: scale(1.03); }
.strategy-image img {
  width: 100%; height: 100%;
  object-fit: cover; position: absolute; inset: 0;
}

/* ─── FRAMEWORK ─── */
.framework-layout {
  display: grid; gap: var(--grid-gap-lg); align-items: start;
}
@media (min-width: 1024px) { .framework-layout { grid-template-columns: 1fr 1fr; } }
.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 96px;
  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 0;
  text-align:center;
  z-index:2;
}

/* decorative floating icon cards */
.rbh-decor{
  position:absolute;
  background:#fff;
  border-radius:20px;
  width:90px; height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 20px 40px rgba(91,71,224,0.18);
  z-index:1;
}
.rbh-decor img{ width:46%; height:46%; object-fit:contain; }

.rbh-decor-1{ top:28px;  left:158px;  transform:rotate(-14deg); }
.rbh-decor-2{ top:238px; left:128px;  transform:rotate(10deg); }
.rbh-decor-3{ top:428px; left:198px;  transform:rotate(-8deg); }
.rbh-decor-4{ top:108px; right:144px; transform:rotate(12deg); }
.rbh-decor-5{ top:338px; right:124px; transform:rotate(-10deg); }
.rbh-decor-6{ top:518px; right:204px; transform:rotate(9deg); }

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

.rbh-dash{ position:absolute; width:32px; height:32px; z-index:1; }
.rbh-dash-1{ top:70px; left:258px; }
.rbh-dash-2{ top:255px; right:196px; }

/* badge */
.rbh-badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:#fff;
  padding:11px 22px;
  border-radius:30px;
  font-size:13.5px;
  font-weight:600;
  color:var(--ink);
  box-shadow:0 8px 20px rgba(10,10,15,0.06);
  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);
}

/* headline */
.rbh-headline{
  font-size:clamp(34px, 5.4vw, 76px);
  font-weight:800;
  line-height:1.05;
  color:var(--ink);
  letter-spacing:-0.02em;
  max-width:900px;
  margin:0 auto;
}
.rbh-headline .rbh-we{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(90deg, var(--primary) 0%, #8B7CF6 100%);
  color:#fff;
  padding:2px 30px 10px;
  border-radius:18px;
  margin:0 6px;
  transform:translateY(6px);
  box-shadow:0 14px 30px rgba(91,71,224,0.35);
}

.rbh-subcopy{
  max-width:560px;
  margin:34px auto 0;
  font-size:16px;
  line-height:1.65;
  color:var(--ink-muted);
}
.rbh-subcopy b{ color:var(--primary); font-weight:700; }

.rbh-cta{
  margin-top:34px;
  display:inline-block;
  background:linear-gradient(90deg, var(--primary) 0%, #8B7CF6 100%);
  color:#fff;
  border:none;
  padding:17px 34px;
  border-radius:32px;
  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:120px;
  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:64px auto 0;
  z-index:3;
}

.rbh-avatar{
  position:relative;
  width:180px;
  margin:0 auto -50px;
  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:.06em;
  color:var(--primary);
  margin-bottom:14px;
}
.rbh-card-tag svg{ width:16px; height:16px; }

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

.rbh-input{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--surface-3);
  border-radius:16px;
  padding:16px 18px;
  margin-bottom:16px;
}
.rbh-input span{
  display:flex; align-items:center; gap:10px;
  color:#8A87A0; font-size:14.5px;
}
.rbh-send{
  width:34px;height:34px;
  border-radius:50%;
  background:linear-gradient(90deg, var(--primary) 0%, #8B7CF6 100%);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}

.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;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  text-decoration:none;
}

/* responsive */
@media (max-width: 900px){
  .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; }
}
@media (max-width: 480px){
  .rbh-card{ padding:34px 22px 26px; }
  .rbh-badge{ font-size:12px; padding:9px 16px; }
}
