/* ═══════════════════════════════════════════════
   SELLERVINE — home.css  (homepage only)
   Mobile-first, 3D scroll, premium design
   ═══════════════════════════════════════════════ */

/* ── HERO LAYOUT ── */
.hero {
  position: relative;
  min-height: 100svh;          /* use svh to avoid mobile bar issues */
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37,99,235,0.12), transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(255,92,26,0.10), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 25%, transparent 80%);
}

/* Orbs */
.orb { position:absolute; border-radius:50%; filter:blur(90px); pointer-events:none }
.orb-1 { width:600px;height:600px; background:radial-gradient(circle,rgba(255,92,26,0.18),transparent 65%); top:-180px;left:-180px; animation:orbDrift 18s ease-in-out infinite }
.orb-2 { width:700px;height:700px; background:radial-gradient(circle,rgba(37,99,235,0.15),transparent 65%); bottom:-180px;right:-180px; animation:orbDrift 22s ease-in-out infinite reverse }
.orb-3 { width:400px;height:400px; background:radial-gradient(circle,rgba(15,217,124,0.08),transparent 70%); top:45%;left:45%; animation:orbDrift 14s ease-in-out infinite 4s }
@keyframes orbDrift { 0%,100%{transform:translate(0,0)} 33%{transform:translate(40px,-40px)} 66%{transform:translate(-30px,30px)} }

/* Hero container — desktop: 2-col, mobile: 1-col */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ── HERO TEXT ── */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-pill-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: tagPulse 2s ease-in-out infinite;
}
.hero-pill-badge {
  background: rgba(255,203,71,0.15);
  color: var(--yellow);
  border: 1px solid rgba(255,203,71,0.25);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.7rem;
}

.hero-h1 {
  font-family: var(--head);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero-line { display: block }
.hero-line-grad {
  background: linear-gradient(135deg, #FF7A3D 0%, #FFAA5C 40%, #4B8EFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 4s ease-in-out infinite;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted2);
  line-height: 1.82;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}
.badge-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.trust-avs { display:flex }
.trust-avs span { width:36px;height:36px;border-radius:50%;border:2px solid var(--bg);display:flex;align-items:center;justify-content:center;font-size:0.75rem;font-weight:700;margin-left:-10px;font-family:var(--head) }
.trust-avs span:first-child { margin-left:0 }
.trust-text .stars { color:var(--yellow);font-size:0.8rem;letter-spacing:2px;margin-bottom:4px }
.trust-text strong { font-size:0.86rem;display:block }
.trust-text p { font-size:0.78rem;color:var(--muted) }

/* ── HERO DASHBOARD (right side) ── */
.hero-visual {
  position: relative;
}

.dash-card {
  background: linear-gradient(145deg, #101829, #0B1220);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  animation: floatY 8s ease-in-out infinite;
}
@keyframes floatY { 0%,100%{transform:translateY(0) rotate(-0.3deg)} 50%{transform:translateY(-14px) rotate(0.3deg)} }

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}
.dash-label { font-size: 0.68rem; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px }
.dash-value { font-family: var(--num); font-size: 2.2rem; font-weight: 400; color: white; letter-spacing: 0.02em }
.dash-badge-green { background: rgba(15,217,124,0.15); border: 1px solid rgba(15,217,124,0.3); color: var(--green); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 8px; white-space: nowrap }

.dash-chart-label { font-size: 0.65rem; color: rgba(255,255,255,0.3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px }
.dash-chart { width: 100%; display: block }

.dash-bar { transform-origin: bottom; animation: barGrow 0.9s cubic-bezier(0.4,0,0.2,1) forwards; animation-delay: var(--delay,0s); transform: scaleY(0) }
@keyframes barGrow { to { transform: scaleY(1) } }

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.dash-kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px;
}
.dash-kpi-label { font-size: 0.62rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px }
.dash-kpi-val { font-family: var(--num); font-size: 1.5rem; color: white; letter-spacing: 0.02em }
.dash-kpi-delta { font-size: 0.72rem; margin-top: 2px }
.pos-delta { color: var(--green) }
.neg-delta { color: var(--amber-l) }

.dash-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(15,217,124,0.4)} 50%{opacity:0.5;box-shadow:0 0 0 5px rgba(15,217,124,0)} }

/* Floating pills */
.float-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  z-index: 3;
}
.fp-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0 }
.float-pill strong { font-family: var(--num); font-size: 0.95rem; color: white }
.float-pill span { color: var(--muted2) }
.float-pill-1 { bottom: -16px; left: -24px; animation: badgeFloat 5s ease-in-out infinite }
.float-pill-2 { top: 24px; right: -20px; animation: badgeFloat 6s ease-in-out infinite 1.5s }
@keyframes badgeFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
.scroll-hint span { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35) }

/* ── METRIC ICON WRAP ── */
.metric-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,92,26,0.1);
  border: 1px solid rgba(255,92,26,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--amber-l);
  --ic: #FF7A3D;
  transition: transform 0.3s;
}
.metric-icon-wrap svg { stroke: var(--ic) }
.metric-card:hover .metric-icon-wrap { transform: scale(1.1) rotate(5deg) }

/* ── SVC ICON WRAP ── */
.svc-icon-wrap {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.3s;
  --c: #2563EB;
}
.svc-icon-wrap svg { stroke: var(--c) }
.svc-card:hover .svc-icon-wrap { transform: scale(1.08) rotate(-4deg) }

/* ── RESULT CARD ── */
.rc-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.rc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  display: block;
}
.result-card:hover .rc-img img { transform: scale(1.06); opacity: 0.8 }
.rc-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--card) 100%);
  pointer-events: none;
}
.rc-cat {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber-l);
  background: rgba(255,92,26,0.15);
  border: 1px solid rgba(255,92,26,0.25);
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--body);
}
.rc-body { padding: 20px 24px 24px }
.rc-body h3 { font-family: var(--head); font-size: 1.06rem; margin-bottom: 8px; line-height: 1.35 }
.rc-body p  { font-size: 0.86rem; color: var(--muted2); line-height: 1.68; margin-bottom: 18px }

/* ── WHY IC ── */
.why-ic {
  width: 50px; height: 50px; min-width: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ── SECTION DARK ── */
.section-dark { background: var(--bg2) }

/* ══════════════════════════════════════
   3D SCROLL ANIMATION CLASSES
   Applied by home-animations.js via GSAP
══════════════════════════════════════ */
.gsap-from-bottom { opacity: 0; transform: translateY(60px) }
.gsap-from-left   { opacity: 0; transform: translateX(-60px) }
.gsap-from-right  { opacity: 0; transform: translateX(60px) }
.gsap-scale-in    { opacity: 0; transform: scale(0.88) }
.gsap-blur-in     { opacity: 0; filter: blur(12px); transform: translateY(40px) }

/* Parallax containers */


/* Card 3D tilt on desktop */
@media (hover: hover) {
  .svc-card, .metric-card, .result-card, .testi-card {
      will-change: transform;
  }
}

/* ══════════════════════════════════════
   MOBILE FIXES — the main issue
══════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;           /* show dashboard above text on tablet */
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .float-pill-1 { bottom: -10px; left: 0 }
  .float-pill-2 { top: 10px; right: 0 }
  .hero-h1 { font-size: clamp(2.4rem, 6vw, 3.6rem) }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 88px 0 48px;
    min-height: 100svh;
    align-items: flex-start;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: flex-start;
  }
  .hero-visual {
    order: -1;
    width: 100%;
  }
  /* Compact dashboard on mobile */
  .dash-card {
    padding: 16px;
  }
  .dash-header { padding: 12px }
  .dash-value  { font-size: 1.6rem }
  .dash-kpis   { gap: 8px }
  .dash-kpi    { padding: 10px }
  .dash-kpi-val { font-size: 1.2rem }
  .float-pill  { display: none }   /* hide pills on small screens */

  .hero-h1 { font-size: 2.2rem }
  .hero-sub { font-size: 0.96rem; margin-bottom: 24px }
  .hero-ctas { flex-direction: column; align-items: stretch }
  .hero-ctas .btn { justify-content: center; text-align: center }
  .hero-badges { gap: 8px }
  .hero-badges .badge-card:nth-child(2) { display: none } /* hide SP badge on mobile */
  .hero-pill { font-size: 0.7rem; padding: 5px 12px }
  .hero-trust { gap: 12px }

  .scroll-hint { display: none }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero { padding: 80px 0 40px }
  .hero-h1 { font-size: 1.95rem; letter-spacing: -0.03em }
  .hero-sub { font-size: 0.92rem }
  .dash-kpis { grid-template-columns: repeat(3, 1fr) }
}

/* Very small */
@media (max-width: 380px) {
  .hero-h1 { font-size: 1.75rem }
  .dash-chart { display: none }
  .dash-header { padding: 10px }
}

/* ══════════════════════════════════════
   THREE.JS CANVAS + DEPTH LAYERING
══════════════════════════════════════ */

/* Canvas sits behind everything */
#hero-canvas {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  width: 100% !important;
  height: 100% !important;
}

/* Ensure hero content is above canvas */
.hero-container {
  position: relative;
  z-index: 5;
}
.scroll-hint {
  position: relative;
  z-index: 5;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ══════════════════════════════════════
   CINEMATIC SECTION ENTRANCE PREP
   GSAP sets opacity/transform — we just
   ensure transform-style is preserved
══════════════════════════════════════ */
.metric-card,
.svc-card,
.result-card,
.testi-card,
.dash-card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Section depth layers */
.section,
.section-alt,
.section-dark {

}

/* ══════════════════════════════════════
   PINNED SCROLL — full page depth feel
══════════════════════════════════════ */

/* Sticky context for hero scroll effect */
.hero { isolation: isolate; }

/* Hero visual should respond to 3D transforms */
.hero-visual {
}

/* Dashboard floating glow */
.dash-card {
  position: relative;
}


/* Service card depth shimmer on hover */
.svc-card {
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%);
  transform: skewX(-15deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.svc-card:hover::after {
  left: 120%;
}

/* Result card shimmer */
.result-card {
  position: relative;
  overflow: hidden;
}
.result-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255,255,255,0.03) 50%,
    transparent 100%);
  transform: skewX(-10deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.result-card:hover::after { left: 130%; }

/* Metric card glow on hover */
.metric-card {
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.metric-card:hover {
  box-shadow: 0 0 0 1px rgba(255,92,26,0.3),
              0 24px 60px rgba(0,0,0,0.45),
              0 0 40px rgba(255,92,26,0.08);
}



/* ══════════════════════════════════════
   MOBILE — disable heavy effects
══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Disable 3D tilt on mobile (GSAP won't apply it, but just in case) */
  .metric-card,
  .svc-card,
  .result-card,
  .testi-card {
    transform-style: flat;
  }
  /* Reduce section diagonal cuts on mobile */
  
}

@media (max-width: 480px) {
  
}

/* ═══ CHROME SCROLL PERFORMANCE ═══ */
/* content-visibility lets Chrome skip rendering offscreen sections */
#services, #results, #testimonials, #faq {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}
/* Prevent layout thrash on image sections */
#img-break-1, #whatwedo, #amazon-only-section {
  contain: layout style;
}
