/* abc.in — homepage-specific styles */

/* ---------- hero ---------- */
.hero {
  padding-top: 40px; padding-bottom: 0;
  position: relative;
  overflow: hidden;
}
/* Prevent tight line-height from clipping ascenders/descenders in hero headings */
.hero-grid :is(h1,h2,h3,h4,h5,h6) {
  overflow: visible;
  padding-bottom: 0.08em;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0 100px;
}
.hero .eyebrow { background: #fff; }
.hero h1 strong { font-weight: 500; }
.hero h1 .serif { color: var(--ink); }
.hero .lead { margin-top: 24px; }
.hero-ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 44px;
  display: flex; align-items: center; gap: 20px;
  color: var(--ink-2); font-size: 13.5px;
}
.avatars { display: flex; }
.avatars span {
  width: 32px; height: 32px; border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #CBD5E1, #94A3B8);
  margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #FDBA74, #FB923C); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #A5B4FC, #6366F1); }
.avatars span:nth-child(4) { background: linear-gradient(135deg, #86EFAC, #22C55E); }
.stars { color: var(--accent); letter-spacing: 2px; }

/* Hero bg decorative */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 85% 20%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(700px 400px at 10% 90%, var(--lilac) 0%, transparent 60%),
    radial-gradient(600px 300px at 50% 50%, var(--sky) 0%, transparent 70%);
  opacity: .9;
  pointer-events: none;
  z-index: -1;
}

/* ---------- interactive dashboard viz ---------- */
/* === HEROVIZ — websites + AI integration === */
.heroviz {
  position: relative;
  border-radius: 24px;
  padding: 0;
  background: transparent;
}
.hv-browser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(15,23,42,.35);
  position: relative;
  z-index: 1;
}
.hv-browser-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: #FAFAFB;
  border-bottom: 1px solid var(--border);
}
.hv-browser-bar .dots { display: flex; gap: 6px; }
.hv-browser-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.hv-browser-bar .dots span:nth-child(1) { background: #FF7F50; }
.hv-browser-bar .dots span:nth-child(2) { background: #FBBF24; }
.hv-browser-bar .dots span:nth-child(3) { background: #4ade80; }
.hv-url {
  flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px; font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.hv-url .lock { font-size: 9px; opacity: .55; }
.hv-tools { display: flex; gap: 6px; }
.hv-tools span { width: 14px; height: 14px; border-radius: 4px; background: #E2E8F0; }
.hv-site { padding: 22px 24px 26px; min-height: 360px; background: linear-gradient(180deg, #fff, #fafafb); }
.hv-site-nav {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px solid #f0eee9;
}
.hv-logo { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--ink); }
.hv-logo span { color: var(--accent); }
.hv-navlinks { display: flex; gap: 12px; flex: 1; margin-left: 8px; }
.hv-navlinks span { width: 36px; height: 6px; border-radius: 3px; background: #e2e3e7; }
.hv-cta-mini {
  background: var(--ink); color: #fff;
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 500;
}
.hv-site-hero { padding: 22px 0 18px; text-align: center; }
.hv-tag {
  display: inline-block;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.hv-h1 {
  font-family: var(--font-display); font-size: 32px; line-height: 1.05;
  color: var(--ink); margin-bottom: 14px;
}
.hv-h1 em { color: var(--accent); font-style: italic; }
.hv-p {
  width: 70%; height: 6px; border-radius: 3px; background: #ebe9e3;
  margin: 5px auto;
}
.hv-p.short { width: 48%; }
.hv-buttons { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.hv-btn {
  padding: 7px 14px; border-radius: 999px; font-size: 11px; font-weight: 500;
}
.hv-btn.primary { background: var(--accent); color: #fff; }
.hv-btn.ghost { background: #fff; border: 1px solid var(--border); color: var(--ink); }
.hv-site-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 12px;
}
.hv-card {
  border-radius: 10px; padding: 12px;
  background: var(--accent-soft);
}
.hv-card.lilac { background: var(--lilac); }
.hv-card.mint { background: var(--mint); }
.hv-card-ico {
  width: 22px; height: 22px; border-radius: 6px; background: #fff;
  display: grid; place-items: center; font-size: 11px; margin-bottom: 8px;
}
.hv-card-line { height: 5px; border-radius: 3px; background: rgba(15,23,42,.12); margin-bottom: 4px; }
.hv-card-line.short { width: 60%; }

/* Floating cards */
.hv-float {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 16px 40px -20px rgba(15,23,42,.35);
  font-size: 12px; min-width: 180px;
  animation: hvFloat 5s ease-in-out infinite;
}
.hv-float-1 { top: 22%; left: -7%; animation-delay: 0s; }
.hv-float-2 { bottom: 16%; right: -8%; animation-delay: -2s; }
.hv-float-3 { top: 6%; right: -6%; animation-delay: -3.5s; }
.hv-float-ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-ink);
}
.hv-float-ico.mint { background: var(--mint); color: var(--mint-ink); }
.hv-float-ico.lilac { background: var(--lilac); color: var(--lilac-ink); }
.hv-float-t { font-weight: 600; color: var(--ink); font-size: 12px; }
.hv-float-s { font-size: 10px; color: var(--muted); margin-top: 1px; }
.hv-pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  margin-left: auto; box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: hvPulse 2s ease-in-out infinite;
}
@keyframes hvFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes hvPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  50% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}

/* AI prompt bubble */
.hv-prompt {
  position: absolute;
  bottom: -34px; left: 12%;
  background: var(--ink); color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  width: 280px;
  box-shadow: 0 24px 60px -28px rgba(15,23,42,.45);
  z-index: 4;
  animation: hvFloat 6s ease-in-out infinite;
  animation-delay: -1.2s;
}
.hv-prompt-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.hv-prompt-ico { color: var(--accent); font-size: 14px; }
.hv-prompt-text { color: rgba(255,255,255,.9); }
.hv-cursor { color: var(--accent); animation: hvBlink 1s infinite; }
@keyframes hvBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.hv-prompt-reply { padding-top: 10px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.hv-reply-line { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin-bottom: 4px; }
.hv-reply-line.short { width: 55%; }

@media (max-width: 1024px) {
  .heroviz { max-width: 560px; margin: 0 auto; }
  .hv-float-1 { left: 0; }
  .hv-float-2 { right: 0; }
  .hv-float-3 { right: 0; }
  .hv-prompt { left: 0; }
}

.dashviz {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: 0 40px 80px -40px rgba(15,23,42,.28), 0 2px 6px rgba(15,23,42,.04);
  position: relative;
}
.dv-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.dv-head .left { display: flex; align-items: center; gap: 10px; }
.dv-head .dots { display: flex; gap: 5px; }
.dv-head .dots span { width: 10px; height: 10px; border-radius: 999px; background: #E5E7EB; }
.dv-head .dots span:nth-child(1) { background: #FF7F50; }
.dv-head .dots span:nth-child(2) { background: #FFC85A; }
.dv-head .dots span:nth-child(3) { background: #22C55E; }
.dv-title { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dv-title strong { color: var(--ink); }
.dv-tabs { display: inline-flex; background: var(--bg-section); border-radius: 999px; padding: 3px; }
.dv-tabs button {
  font-size: 12px; color: var(--ink-2); padding: 6px 12px; border-radius: 999px;
  transition: all .2s var(--ease);
}
.dv-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(15,23,42,.08); }

/* Top stats row */
.dv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dv-stat {
  padding: 14px; border-radius: 14px;
  background: var(--bg-section);
  border: 1px solid var(--border);
}
.dv-stat.peach { background: var(--accent-soft); border-color: transparent; }
.dv-stat.lilac { background: var(--lilac); border-color: transparent; }
.dv-stat.mint  { background: var(--mint);  border-color: transparent; }
.dv-stat .k { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.dv-stat.peach .k { color: var(--accent-ink); }
.dv-stat.lilac .k { color: var(--lilac-ink); }
.dv-stat.mint  .k { color: var(--mint-ink); }
.dv-stat .v {
  font-family: var(--font-display); font-style: italic;
  font-size: 28px; color: var(--ink); line-height: 1.1;
  margin-top: 2px;
  display: flex; align-items: baseline; gap: 4px;
}
.dv-stat .v small { font-family: var(--font-sans); font-style: normal; font-size: 13px; font-weight: 500; color: var(--mint-ink); }
.dv-stat .trend { margin-top: 4px; font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }

/* Main chart */
.dv-chart {
  position: relative;
  background: linear-gradient(180deg, rgba(255,127,80,.04), transparent 70%);
  border-radius: 14px;
  padding: 14px 8px 8px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.dv-chart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 10px;
}
.dv-chart-head .t { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.dv-legend { display: flex; gap: 14px; font-size: 11px; color: var(--ink-2); }
.dv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dv-legend .sw { width: 8px; height: 8px; border-radius: 2px; }
.dv-svg { width: 100%; height: 160px; display: block; }

/* Bottom row: activity feed */
.dv-feed { display: grid; gap: 8px; }
.dv-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-section);
  border-radius: 10px;
  font-size: 12.5px;
  animation: dvSlideIn .5s var(--ease) backwards;
}
.dv-row:nth-child(1) { animation-delay: .2s; }
.dv-row:nth-child(2) { animation-delay: .6s; }
.dv-row:nth-child(3) { animation-delay: 1s; }
@keyframes dvSlideIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.dv-row .bullet {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.dv-row .bullet.peach { background: var(--accent-soft); color: var(--accent-ink); }
.dv-row .bullet.mint  { background: var(--mint);  color: var(--mint-ink); }
.dv-row .bullet.sky   { background: var(--sky);   color: var(--sky-ink); }
.dv-row .bullet.lilac { background: var(--lilac); color: var(--lilac-ink); }
.dv-row .text { flex: 1; color: var(--ink); }
.dv-row .text b { font-weight: 600; }
.dv-row .time { font-size: 11px; color: var(--ink-3); }
.dv-row .badge {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--mint); color: var(--mint-ink);
  font-weight: 500;
}

/* Pulsing data point on chart */
.dv-pulse {
  position: absolute;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255,127,80,.6);
  animation: dvPulse 1.8s infinite;
}
@keyframes dvPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,127,80,.5); }
  80%,100% { box-shadow: 0 0 0 16px rgba(255,127,80,0); }
}

/* Floating chips */
.hv-chip-a {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 18px 40px -22px rgba(15,23,42,.25);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}
.hv-chip-a.c1 { top: -20px; left: -36px; animation-delay: 0s; }
.hv-chip-a.c2 { bottom: 64px; right: -44px; animation-delay: 2s; }
.hv-chip-a .bullet {
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.hv-chip-a .bullet.mint { background: var(--mint); color: var(--mint-ink); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- logo strip ---------- */
.logo-band {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  padding: 28px 0;
  position: relative;
}
.logo-band::before, .logo-band::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.logo-band::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.logo-band::after  { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.logo-marquee { width: 100%; overflow: hidden; }
.logo-track {
  display: inline-flex; align-items: center; gap: 48px;
  white-space: nowrap;
  animation: logo-scroll 50s linear infinite;
  will-change: transform;
}
.logo-band:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-band .logos-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 14px; border-radius: 999px;
  flex-shrink: 0;
}
.logo-band .brand {
  font-family: var(--font-display); font-style: italic;
  font-size: 28px; letter-spacing: -0.01em;
  color: rgba(255,255,255,.85);
  flex-shrink: 0;
  transition: color .2s var(--ease);
}
.logo-band .brand.sans {
  font-family: var(--font-sans); font-style: normal;
  font-weight: 600; letter-spacing: -0.025em;
}
.logo-band .brand:hover { color: #fff; }
.logo-band .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* legacy .logos (kept for any other pages still using it) */
.logos {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: auto repeat(5, 1fr);
  align-items: center; gap: 28px;
  background: #fff;
}
.logos-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.logos .brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: #9AA0A8;
  text-align: center;
  transition: color .2s var(--ease);
}
.logos .brand.sans { font-family: var(--font-sans); font-style: normal; font-weight: 600; letter-spacing: -0.02em; }
.logos .brand:hover { color: var(--ink); }

/* ---------- problem → solution ---------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ps-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.ps-col.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.ps-col.dark p, .ps-col.dark .ps-item p { color: #9CA3AF; }
.ps-col.dark h3 { color: #fff; }
.ps-col h3 { margin-bottom: 8px; }
.ps-col > p { margin-bottom: 24px; }
.ps-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.ps-col.dark .ps-item { border-color: rgba(255,255,255,.08); }
.ps-item:first-of-type { border-top: 0; padding-top: 8px; }
.ps-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.ps-col.dark .ps-icon { background: rgba(255,127,80,.15); color: var(--accent); }
.ps-icon svg { width: 18px; height: 18px; }
.ps-item h4 { margin-bottom: 4px; }
.ps-item p { font-size: 14.5px; line-height: 1.5; }

/* ---------- solution stack ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.stack-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: #fff;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 240px;
  overflow: hidden;
}
.stack-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--tint, transparent) 0%, transparent 55%);
  opacity: .5;
  pointer-events: none;
}
.stack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(15,23,42,.28);
}
.stack-card > * { position: relative; z-index: 1; }
.stack-card .cat {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.stack-card .cat .mico {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.stack-card.build   { --tint: var(--accent-soft); }
.stack-card.build .cat .mico   { background: var(--accent-soft); color: var(--accent-ink); }
.stack-card.auto    { --tint: #2a3348; }
.stack-card.auto .cat .mico    { background: rgba(255,127,80,.2); color: var(--accent); }
.stack-card.design  { --tint: var(--lilac); }
.stack-card.design .cat .mico  { background: var(--lilac); color: var(--lilac-ink); }
.stack-card.grow    { --tint: var(--mint); }
.stack-card.grow .cat .mico    { background: var(--mint); color: var(--mint-ink); }
.stack-card.support { --tint: var(--sky); }
.stack-card.support .cat .mico { background: var(--sky); color: var(--sky-ink); }

.stack-card h4 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 10px; }
.stack-card p  { font-size: 14.5px; line-height: 1.55; flex: 1; }
.stack-card .chevron {
  margin-top: 20px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
}
.stack-card:hover .chevron { color: var(--accent-ink); }
.stack-card:hover .chevron svg { transform: translateX(4px); }
.stack-card .chevron svg { transition: transform .25s var(--ease); }

/* grid spans */
.stack .sc-build-1  { grid-column: span 2; }
.stack .sc-build-2  { grid-column: span 2; }
.stack .sc-build-3  { grid-column: span 2; }
.stack .sc-auto-1   {
  grid-column: span 3; background: var(--ink); color: #fff; border-color: var(--ink);
}
.stack .sc-auto-1 p, .stack .sc-auto-1 .cat { color: #9CA3AF; }
.stack .sc-auto-1 h4 { color: #fff; }
.stack .sc-auto-1 .chevron { color: var(--accent); }
.stack .sc-auto-2   { grid-column: span 3; }
.stack .sc-design   { grid-column: span 2; }
.stack .sc-grow     { grid-column: span 2; }
.stack .sc-support  { grid-column: span 2; }

/* inline viz for automate card */
.auto-viz {
  margin-top: 16px;
  display: flex; align-items: center; gap: 6px;
  padding: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-size: 12px;
  flex-wrap: wrap;
}
.auto-node {
  padding: 6px 10px; border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
  white-space: nowrap;
}
.auto-node.accent { background: var(--accent); color: #fff; }
.auto-arrow { color: rgba(255,255,255,.4); }

/* ---------- case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #fff;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(15,23,42,.22); }
.case .tag {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 20px;
}
.case-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--ink-2); font-family: var(--font-mono); font-size: 11px;
  position: relative; overflow: hidden;
}
.case-thumb.t1 { background:
  linear-gradient(135deg, var(--accent-soft), #fff),
  repeating-linear-gradient(45deg, rgba(255,127,80,.12) 0 2px, transparent 2px 10px);
}
.case-thumb.t2 { background:
  linear-gradient(135deg, var(--lilac), #fff);
}
.case-thumb.t3 { background:
  linear-gradient(135deg, var(--mint), #fff);
}
.case-thumb .fake-chart {
  position: absolute; inset: auto 10% 10% 10%;
  height: 55%;
  display: flex; align-items: flex-end; gap: 6px;
}
.case-thumb .fake-chart span {
  flex: 1; background: var(--ink); border-radius: 3px 3px 0 0;
  opacity: .85;
}
.case-thumb.t2 .fake-chart span { background: var(--lilac-ink); }
.case-thumb.t3 .fake-chart span { background: var(--mint-ink); }
.case h3 { margin-bottom: 8px; font-size: 20px; }
.case .excerpt { font-size: 14px; line-height: 1.55; margin-bottom: 24px; }
.case .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); }
.case .metric {
  padding: 16px 0;
  border-right: 1px solid var(--border);
}
.case .metric:last-child { border-right: 0; padding-left: 16px; }
.case .metric:first-child { padding-right: 16px; }
.case .metric .v {
  font-family: var(--font-display); font-style: italic; font-size: 32px; color: var(--ink); line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.case .metric .v small { font-size: 16px; font-family: var(--font-sans); font-style: normal; color: var(--accent); font-weight: 500; }
.case .metric .k { font-size: 12px; color: var(--ink-2); margin-top: 6px; }

.case.wide {
  grid-column: span 3;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: 40px;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.case.wide .tag { color: var(--accent); }
.case.wide h3 { color: #fff; }
.case.wide .excerpt { color: #9CA3AF; }
.case.wide .metrics { border-color: rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(3, 1fr); }
.case.wide .metric { border-color: rgba(255,255,255,.12); }
.case.wide .metric .v { color: #fff; }
.case.wide .metric .v small { color: var(--accent); }
.case.wide .metric .k { color: #9CA3AF; }
.case.wide .case-thumb { aspect-ratio: 4/3; margin: 0; background: linear-gradient(135deg, #1f2a44, #0F172A); border-color: rgba(255,255,255,.1); color: #9CA3AF; }

/* ---------- process (dark) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.step {
  padding: 40px 28px;
  border-right: 1px solid rgba(255,255,255,.12);
  position: relative;
  transition: background .25s var(--ease);
}
.step:last-child { border-right: 0; }
.step:hover { background: rgba(255,255,255,.03); }
.step .num {
  font-family: var(--font-display); font-style: italic;
  font-size: 42px; color: var(--accent);
  line-height: 1;
}
.step h4 { margin: 20px 0 8px; color: #fff; font-size: 18px; }
.step p { color: #9CA3AF; font-size: 14px; line-height: 1.55; }
.step .dur {
  margin-top: 20px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ---------- white label — INTERACTIVE stack ---------- */
.wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.wl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  margin-bottom: 20px;
}
.wl-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.wl-bens { margin-top: 32px; display: grid; gap: 14px; }
.wl-ben {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.wl-ben:first-child { border-top: 0; padding-top: 4px; }
.wl-ben .check {
  flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 999px; background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
}
.wl-ben h4 { font-size: 15px; margin-bottom: 2px; }
.wl-ben p  { font-size: 14px; }

/* INTERACTIVE handshake viz — left side */
.handshake {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 30%, var(--accent-soft) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, var(--sky) 0%, transparent 50%),
    #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(15,23,42,.18);
}
.hs-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, #000 60%, transparent 92%);
}
.hs-node {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 18px 40px -22px rgba(15,23,42,.25);
  font-size: 13px; font-weight: 500;
  transition: transform .5s var(--ease);
}
.hs-node .av {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.hs-node.agency { top: 14%; left: 10%; }
.hs-node.agency .av { background: var(--accent); color: #fff; }
.hs-node.abc    { bottom: 14%; right: 10%; }
.hs-node.abc    .av { background: var(--ink); color: #fff; }
.hs-node .sub { font-size: 11px; color: var(--ink-2); font-weight: 400; }

.handshake:hover .hs-node.agency { transform: translate(-4px, -4px); }
.handshake:hover .hs-node.abc    { transform: translate(4px, 4px); }

/* Center NDA pill */
.hs-nda {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 20px 40px -20px rgba(15,23,42,.22);
  z-index: 2;
  display: grid; gap: 4px;
}
.hs-nda .ico {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; margin: 0 auto 4px;
}
.hs-nda strong { font-size: 14px; }
.hs-nda span { font-size: 11px; color: var(--ink-2); }

/* Dashed connecting line */
.hs-line {
  position: absolute; top: 50%; left: 50%;
  width: 70%; height: 2px;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  opacity: .6;
}

/* Flowing packets */
.hs-packet {
  position: absolute; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  offset-path: path('M 60 60 L 440 440');
  animation: hsFlow 3.5s linear infinite;
}
.hs-packet.p2 { background: var(--lilac-ink); box-shadow: 0 0 0 3px var(--lilac); animation-delay: 1.2s; }
.hs-packet.p3 { background: var(--mint-ink); box-shadow: 0 0 0 3px var(--mint); animation-delay: 2.4s; }
@keyframes hsFlow {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* small floating chips on handshake */
.hs-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px; font-weight: 500;
  box-shadow: 0 10px 24px -14px rgba(15,23,42,.2);
  display: inline-flex; align-items: center; gap: 6px;
}
.hs-chip .dot2 { width: 6px; height: 6px; border-radius: 999px; background: var(--mint-ink); }
.hs-chip.c1 { top: 4%; right: 12%; }
.hs-chip.c2 { bottom: 6%; left: 14%; }

/* ---------- testimonials ---------- */
.tests {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 var(--pad-x);
}
.tests + .sec-head, section > .final-wrap > .sec-head { margin-left: var(--pad-x); margin-right: var(--pad-x); }
/* When testimonials use .final-wrap to match CTA width, ensure mobile side padding */
@media (max-width: 720px) {
  section > .final-wrap > .tests,
  section > .final-wrap > .sec-head {
    padding-left: 20px; padding-right: 20px;
  }
}
.test {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: #fff;
  display: flex; flex-direction: column; gap: 24px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.test:hover { transform: translateY(-3px); border-color: var(--ink); }
.test.peach { background: var(--accent-soft); border-color: transparent; }
.test.mint  { background: var(--mint);  border-color: transparent; }
.test.lilac { background: var(--lilac); border-color: transparent; }
.test .stars { color: var(--accent); font-size: 14px; letter-spacing: 3px; }
.test .quote { font-size: 17px; line-height: 1.55; color: var(--ink); letter-spacing: -.005em; flex: 1; }
.test .quote .serif { font-size: 20px; }
.test-author { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(15,23,42,.08); }
.test-author .av {
  width: 42px; height: 42px; border-radius: 999px;
  background: linear-gradient(135deg, #CBD5E1, #94A3B8);
}
.test-author .name { font-size: 14px; font-weight: 600; }
.test-author .role { font-size: 13px; color: var(--ink-2); }

/* ---------- final CTA ---------- */
.final {
  background: var(--ink);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  position: relative;
  overflow: hidden;
  margin: 0 var(--pad-x);
}
.final::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,127,80,.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(124,58,237,.12), transparent 40%);
  pointer-events: none;
}
.final h2 { color: #fff; position: relative; }
.final .lead { color: #9CA3AF; margin: 20px auto 36px; position: relative; }
.final-ctas { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Any ghost button inside the dark final CTA gets white text — protects against btn-ghost (light) being used in a dark context */
.final .btn-ghost,
.final a.btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: transparent;
}
.final .btn-ghost:hover,
.final a.btn-ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,.06);
}
.final .meta {
  margin-top: 36px; position: relative;
  color: rgba(255,255,255,.5); font-size: 13px;
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
}
.final .meta span { display: inline-flex; align-items: center; gap: 8px; }
.final .meta .tick { color: var(--accent); }
.final-wrap { padding: 16px 0 24px; max-width: var(--max); margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .dashviz { max-width: 560px; margin: 0 auto; }
  .ps-grid { grid-template-columns: 1fr; }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .stack .sc-build-1, .stack .sc-build-2, .stack .sc-build-3,
  .stack .sc-auto-1, .stack .sc-auto-2, .stack .sc-design,
  .stack .sc-grow, .stack .sc-support { grid-column: span 1; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case.wide { grid-column: span 2; grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .wl-grid { grid-template-columns: 1fr; }
  .tests { grid-template-columns: 1fr; }
  .logos { grid-template-columns: 1fr 1fr 1fr; row-gap: 18px; }
  .logos-label { grid-column: span 3; text-align: center; }
}
@media (max-width: 640px) {
  .stack { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .case.wide { grid-column: span 1; padding: 28px; }
  .steps { grid-template-columns: 1fr; }
  .final { padding: 72px 24px; margin: 0 20px; }
  .hv-chip-a.c1 { left: -8px; top: -12px; }
  .hv-chip-a.c2 { right: -8px; bottom: 40px; }
  .dv-stats { grid-template-columns: 1fr 1fr; }
  .dv-stats .dv-stat:nth-child(3) { grid-column: span 2; }
}
