/* ============================================================
   HOME V2 — premium minimal redesign, index.html ONLY.
   Loaded after home-dark.css so it can override/extend the
   existing dark-theme tokens without touching shared component
   files other pages depend on (.feat, .faq-item, .proc-list...).
   ============================================================ */

/* tone down the ambient page glow — reference wants restraint, not bloom */
body.home-dark::before { opacity: 0.55; }

/* ---------- hero: centered, badge + big two-line heading + divided stats ---------- */
.hero-panel {
  position: relative; background: var(--page-bg);
  text-align: center; overflow: hidden;
  padding: clamp(132px, 14vw, 176px) 24px 0;
  min-height: auto;
}
.hero-panel::before {
  display: block; content: ''; position: absolute; z-index: 0;
  top: 5%; left: 50%; transform: translateX(-50%);
  width: 640px; height: 640px; max-width: 140vw;
  background: radial-gradient(circle, rgba(30,99,255,.24), rgba(103,1,254,.10) 45%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-panel::after { display: none; }

.hero-grid { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-grid .badge-pill.on-blue {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(30, 99, 255, 0.14); color: #8FB4FF;
  border: 1px solid rgba(30, 99, 255, 0.3);
}
.hero-grid h1 {
  text-align: center; margin: 22px 0 24px; max-width: none;
  font-size: clamp(42px, 7.2vw, 80px); font-weight: 800;
  line-height: 1.02; letter-spacing: -0.02em;
}
.hero-grid h1 .line2 { display: block; }
.hero-grid p.lede {
  text-align: center; margin: 0 auto 32px; max-width: 52ch;
  font-size: 18px; color: var(--text-secondary);
}
.hero-grid .hero-actions { justify-content: center; margin-bottom: 52px; }

.hero-stats { display: flex; justify-content: center; }
.hero-stat { padding: 0 28px; }
.hero-stat + .hero-stat { border-left: 1px solid var(--line); }
.hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 32px; font-weight: 800; color: var(--text);
}
.hero-stat span { font-size: 13px; color: var(--text-muted); }

@media (max-width: 560px) {
  .hero-stat { padding: 0 16px; }
  .hero-stat strong { font-size: 24px; }
}

/* ---------- horizontal process timeline ---------- */
.proc-timeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4);
  position: relative; counter-reset: none;
}
.proc-timeline::before {
  content: ''; position: absolute; top: 19px; left: 10%; right: 10%; height: 1px;
  background: var(--line);
}
.proc-step { position: relative; text-align: center; }
.proc-dot {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto var(--s-4);
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--brand-light);
  position: relative; z-index: 1;
}
.proc-step h3 { font-size: 15px; margin-bottom: 4px; }
.proc-step p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 880px) {
  .proc-timeline { grid-template-columns: 1fr; gap: var(--s-6); }
  .proc-timeline::before { display: none; }
}

/* ---------- services: distinct accent colour per icon, not all one blue chip ---------- */
.svc-icons .feat:nth-child(1) .feat-icon { background: rgba(0,184,148,0.15); color: #00B894; }
.svc-icons .feat:nth-child(3) .feat-icon { background: rgba(139,92,246,0.15); color: #8B5CF6; }
.svc-icons .feat:nth-child(4) .feat-icon { background: rgba(6,182,212,0.15); color: #06B6D4; }
.svc-icons .feat:nth-child(5) .feat-icon { background: rgba(255,107,107,0.15); color: #FF6B6B; }
.svc-icons .feat:nth-child(6) .feat-icon { background: rgba(245,166,35,0.15); color: #F5A623; }

/* icon lift + matching glow per card on hover, arrow nudges */
.svc-icons .feat { transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.svc-icons .feat-icon { transition: transform var(--t-fast) var(--ease); }
.svc-icons .feat:hover { transform: translateY(-4px); }
.svc-icons .feat:hover .feat-icon { transform: scale(1.08) rotate(-4deg); }
.svc-icons .feat:nth-child(1):hover { box-shadow: 0 16px 36px rgba(0,184,148,0.16); }
.svc-icons .feat:nth-child(3):hover { box-shadow: 0 16px 36px rgba(139,92,246,0.18); }
.svc-icons .feat:nth-child(4):hover { box-shadow: 0 16px 36px rgba(6,182,212,0.16); }
.svc-icons .feat:nth-child(5):hover { box-shadow: 0 16px 36px rgba(255,107,107,0.16); }
.svc-icons .feat:nth-child(6):hover { box-shadow: 0 16px 36px rgba(245,166,35,0.16); }
.svc-icons .feat-link { display: inline-flex; align-items: center; gap: 4px; }
.svc-icons .feat-link .arrow { transition: transform var(--t-fast) var(--ease); }
.svc-icons .feat-link:hover .arrow { transform: translate(3px, -3px); }

/* work cards: image zoom on hover, framed */
.work-card .feat-media { overflow: hidden; }
.work-card .feat-media img { transition: transform 0.5s var(--ease); }
.work-card:hover .feat-media img { transform: scale(1.06); }

/* ---------- gentle scroll-reveal, off by default for reduced motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- small interactive polish: buttons + carousel arrows ---------- */
.hero-actions .btn, .home-cta-card .btn {
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.hero-actions .btn:hover, .home-cta-card .btn:hover { transform: translateY(-2px); }
.carousel-arrow:active:not(:disabled) { transform: scale(0.92); }
.hero-card { transition: transform var(--t-base) var(--ease); }
.hero-visual:hover .hero-card { transform: translateY(-4px); }

/* ---------- carousels: recent work + testimonials ---------- */
.carousel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6);
}
.carousel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.carousel-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.carousel-arrow:hover { border-color: rgba(30,99,255,0.5); background: var(--brand-tint); }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.carousel-track {
  display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex-shrink: 0; }

.rev-card { width: min(340px, 82vw); }
.rev-card .testi-quote { min-height: 84px; }

/* ---------- closing CTA card, footer-adjacent ---------- */
.home-cta-card {
  margin: 0 var(--s-4) var(--s-6);
  background: linear-gradient(135deg, rgba(30,99,255,0.16), rgba(103,1,254,0.12));
  border: 1px solid rgba(30,99,255,0.3); border-radius: var(--card-radius);
  padding: var(--s-6) var(--s-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  flex-wrap: wrap;
}
.home-cta-card h3 { font-size: 22px; margin: 4px 0 0; }
.home-cta-card .eyebrow { font-size: 12px; color: var(--brand-light); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
