/* ================================================================
   HOME v4 — homepage design pass (branch: design/homepage-v4)
   Loaded AFTER style.css on index.html only. Every rule is scoped to
   body.home-v4 so the other pages are untouched until a section is approved
   and merged into style.css. Tokens only — no hard-coded brand hexes.
   ================================================================ */

/* ── 1. HEADER — floating pill ───────────────────────────── */
.home-v4 .site-header {
  position: fixed;
  top: .75rem; left: 0; right: 0;
  height: auto;
  background: transparent;
  border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  pointer-events: none;
}
.home-v4 .site-header > .container { height: auto; max-width: min(1120px, calc(100% - 1.5rem)); padding-inline: 0; }
.home-v4 .nav {
  pointer-events: auto;
  height: 3.5rem;
  padding: 0 .6rem 0 1.25rem;
  border-radius: var(--radius-full);
  background: var(--clr-nav-bg);
  border: 1px solid var(--clr-line-dark);
  box-shadow: 0 12px 34px -14px rgba(5, 11, 34, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: height var(--t-base) var(--ease), background var(--t-base), box-shadow var(--t-base), transform var(--t-base) var(--ease);
}
.home-v4 .site-header.scrolled .nav {
  height: 3.1rem;
  box-shadow: 0 16px 40px -16px rgba(5, 11, 34, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.home-v4 .nav__logo--img img { height: 2.25rem; margin-left: -.5rem; }
.home-v4 .nav__links { position: relative; }
.home-v4 .nav__link { position: relative; z-index: 1; border-radius: var(--radius-full); }
.home-v4 .nav__link:hover { background: transparent; }
.home-v4 .nav__pill {
  position: absolute; z-index: 0; top: 0; left: 0;
  height: 100%;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1);
  opacity: 0;
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s;
  pointer-events: none;
}
.home-v4 .nav__cta {
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px -4px rgba(59, 130, 246, .55);
}
.home-v4 .nav__cta:hover { box-shadow: 0 8px 28px -2px rgba(59, 130, 246, .75); }
.home-v4 main { padding-top: 0; }
.home-v4 .hero { padding-top: calc(5.25rem + clamp(1.5rem, 4vw, 3.5rem)); }

/* ── 2. HERO — chips orbiting the stage ──────────────────── */
.home-v4 .hchip {
  position: absolute; z-index: 5;
  padding: .35rem .8rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .04em;
  color: var(--clr-heading);
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate .25s var(--ease);
  animation: hchip-bob 6s ease-in-out infinite;
}
.home-v4 .hchip::before {
  content: ''; display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem;
  border-radius: 50%; background: var(--c, var(--clr-blue));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--clr-blue)) 22%, transparent);
}
.home-v4 .hchip--seo { top: 6%;  left: 4%;  --c: var(--clr-blue);   animation-delay: -1s; }
.home-v4 .hchip--ads { top: 14%; right: 2%; --c: var(--clr-violet); animation-delay: -3s; }
.home-v4 .hchip--pos { bottom: 12%; left: 0; --c: var(--clr-mint);  animation-delay: -2s; }
.home-v4 .hchip--soc { bottom: 4%; right: 8%; --c: var(--clr-cyan); animation-delay: -4s; }
@keyframes hchip-bob { 50% { margin-top: -8px; } }
@media (max-width: 767px) { .home-v4 .hchip { display: none; } }
@media (prefers-reduced-motion: reduce) { .home-v4 .hchip { animation: none; } }

/* ── 2b. HERO — minimal, centred, one product visual (Nov 2026) ──
   Decorative stage/blobs/glyphs stay in the DOM for animations.js but are hidden. */
.home-v4 .hero {
  background:
    radial-gradient(900px 420px at 50% 100%, rgba(59, 130, 246, .10), transparent 70%),
    radial-gradient(900px 380px at 50% -10%, rgba(59, 130, 246, .06), transparent 70%),
    var(--clr-white);
  padding-top: calc(5.25rem + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: 0;
  border-bottom: 1px solid var(--clr-border);
}
.home-v4 .glyph, .home-v4 .blob, .home-v4 .hero__visual { display: none; }
.home-v4 .hero__grid { grid-template-columns: 1fr; justify-items: center; }
.home-v4 .hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* dot grid, strongest in the margins, plus a faint cursor light */
.home-v4 .hero__bg::before {
  background-image: radial-gradient(circle, rgba(11, 18, 32, .14) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 50% 45%, transparent 25%, #000 90%);
          mask-image: radial-gradient(ellipse 65% 70% at 50% 45%, transparent 25%, #000 90%);
}
.home-v4 .hero__bg::after { background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(59, 130, 246, .06), transparent 65%); }

.home-v4 .hero__badge {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  margin-bottom: 1.75rem;
  color: var(--clr-muted); letter-spacing: .1em; text-transform: uppercase;
}

/* headline: one style, balanced wrapping */
.home-v4 .hero__title {
  max-width: none;
  margin-bottom: var(--sp-5);
  font-size: clamp(2.2rem, 3.6vw + .8rem, 3.9rem);
  font-weight: var(--fw-medium);
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--clr-heading);
}
.home-v4 .hero__title .hl { display: block; white-space: normal; text-wrap: balance; }
.home-v4 .hero__l2 { margin-top: 0; font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; line-height: inherit; }
.home-v4 .hero__mark, .home-v4 .hero__title .gradient-text {
  background: none; -webkit-text-fill-color: currentColor; color: var(--clr-blue); white-space: normal;
}
.home-v4 .hero__mark::after { display: none; }
.home-v4 .hero__dash { color: var(--clr-slate-400); }

.home-v4 .hero__subhead { max-width: 52ch; color: var(--clr-muted); margin-bottom: var(--sp-8); }
.home-v4 .hero__ctas { justify-content: center; margin-bottom: var(--sp-8); }
.home-v4 .hero .btn-primary { box-shadow: none; }
.home-v4 .hero .btn-secondary { background: transparent; }

.home-v4 .hero__stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  padding: 0; border: 0; max-width: none;
}
.home-v4 .hero__stat { padding: 0 clamp(1.25rem, 4vw, 3rem); text-align: center; }
.home-v4 .hero__stat + .hero__stat { border-left: 1px solid var(--clr-border); }
.home-v4 .hero__stat-value { font-size: var(--text-2xl); font-weight: var(--fw-medium); margin-bottom: var(--sp-1); }
.home-v4 .hero__stat-label { color: var(--clr-muted); }

/* ── showcase: one minimal product window that bleeds off the bottom ── */
.home-v4 .showcase { max-width: 980px; margin-top: clamp(2rem, 4vw, 2.75rem); }
.home-v4 .sc {
  position: relative;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-bottom: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 30px 80px -30px rgba(11, 18, 32, .22), 0 0 0 8px rgba(255, 255, 255, .5);
  max-height: clamp(15rem, 30vw, 22rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
}
.home-v4 .sc__bar { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--clr-border); }
.home-v4 .sc__bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--clr-border); }
.home-v4 .sc__bar::after { content: ''; width: 2.1rem; }
.home-v4 .sc__tabs { margin-inline: auto; display: inline-flex; gap: .25rem; padding: .2rem; border-radius: var(--radius-full); background: var(--clr-offwhite); }
.home-v4 .sc__tabs b { padding: .25rem .8rem; border-radius: var(--radius-full); font: var(--fw-medium) var(--text-xs)/1.4 var(--font-mono); color: var(--clr-muted); letter-spacing: .03em; }
.home-v4 .sc__tabs b.on { background: var(--clr-white); color: var(--clr-heading); box-shadow: var(--shadow-xs); }
@media (max-width: 559px) { .home-v4 .sc__tabs b:not(.on) { display: none; } }
.home-v4 .sc__body { display: grid; gap: 1rem; padding: 1.25rem; }
@media (min-width: 760px) { .home-v4 .sc__body { grid-template-columns: 1.9fr 1fr; padding: 1.5rem; gap: 1.25rem; } }
.home-v4 .sc__main, .home-v4 .sc__row { border: 1px solid var(--clr-border); border-radius: 1rem; background: var(--clr-white); }
.home-v4 .sc__main { padding: 1.1rem 1.25rem .5rem; }
.home-v4 .sc__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.home-v4 .sc__pill { padding: .15rem .6rem; border-radius: var(--radius-full); background: var(--clr-tint-blue); color: var(--clr-cta-hover); font: var(--fw-medium) var(--text-xs)/1.5 var(--font-mono); }
.home-v4 .sc__sk { display: block; height: .5rem; width: 100%; border-radius: var(--radius-full); background: var(--clr-offwhite); }
.home-v4 .sc__sk--m { width: 7rem; }
.home-v4 .sc__sk--s { width: 55%; }
.home-v4 .sc__chart { display: block; width: 100%; height: auto; overflow: visible; }
.home-v4 .sc__grid path { stroke: var(--clr-border); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.home-v4 .sc__side { display: none; gap: 1rem; align-content: start; }
@media (min-width: 760px) { .home-v4 .sc__side { display: grid; } }
.home-v4 .sc__row { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; }
.home-v4 .sc__lines { flex: 1; display: grid; gap: .45rem; }
.home-v4 .sc__ic { width: 1.9rem; height: 1.9rem; border-radius: .6rem; flex: none; }
.home-v4 .sc__ic--blue { background: var(--clr-tint-blue); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .25); }
.home-v4 .sc__ic--cyan { background: color-mix(in srgb, var(--clr-cyan) 18%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clr-cyan) 40%, transparent); }
.home-v4 .sc__ic--mint { background: color-mix(in srgb, var(--clr-mint) 20%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clr-mint) 45%, transparent); }

.home-v4 .gl__line { stroke: var(--clr-blue); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.home-v4 .gl__dot { fill: var(--clr-white); stroke: var(--clr-blue); stroke-width: 2.5; }
.home-v4 .gl__ping { fill: var(--clr-blue); opacity: .18; transform-box: fill-box; transform-origin: center; }
.home-v4 .gl__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; fill: var(--clr-muted); }
@media (max-width: 559px) { .home-v4 .gl__label { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .home-v4 .gl__ping { animation: gl-ping 2.4s ease-out infinite; }
  @keyframes gl-draw { from { stroke-dashoffset: 1; } }
  @keyframes gl-pop { from { opacity: 0; } }
  @keyframes gl-ping { 0% { transform: scale(1); opacity: .35; } 100% { transform: scale(4.5); opacity: 0; } }
  @supports (animation-timeline: view()) {
    .home-v4 .sc .gl__line { animation: gl-draw linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
    .home-v4 .sc .gl__node { animation: gl-pop linear both; animation-timeline: view(); animation-range: entry calc(30% + var(--n) * 15%) entry calc(60% + var(--n) * 15%); }
  }
  @supports not (animation-timeline: view()) {
    .home-v4 .sc .gl__line { animation: gl-draw 2s var(--ease) .8s backwards; }
  }
}

/* ── 3. LOGO STRIP — two opposing rows ───────────────────── */
.home-v4 .logo-strip { display: grid; gap: var(--sp-5); }
.home-v4 .logo-strip__label { margin-bottom: 0; }
.home-v4 .logo-strip__track--rev { animation-direction: reverse !important; }
.home-v4 .logo-strip__item img { height: 34px; }
.home-v4 .logo-strip__track--rev .logo-strip__item img { height: 28px; opacity: .45; }
.home-v4 .logo-strip__item img:hover { filter: none; opacity: 1; }

/* ── 4. SERVICES — richer bento ──────────────────────────── */
.home-v4 .bento__item { position: relative; overflow: hidden; }
.home-v4 .bento__idx {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--clr-slate-400); letter-spacing: .08em;
  transition: color var(--t-base);
}
.home-v4 .bento__item--feature .bento__idx { color: rgba(255, 255, 255, .35); }
.home-v4 .bento__item:hover .bento__idx { color: var(--clr-blue); }
.home-v4 .bento__item::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--bx, 50%) var(--by, 0%), var(--clr-blue), var(--clr-violet) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t-base); pointer-events: none;
}
.home-v4 .bento__item:hover::before { opacity: 1; }
.home-v4 .bento__item--feature::before { z-index: 2; }
.home-v4 .bento__link { margin-top: auto; }
.home-v4 .bento__link svg {
  width: 1.7rem; height: 1.7rem; padding: .4rem; margin-left: .15rem;
  border-radius: 50%; background: var(--clr-tint-blue); color: var(--clr-blue);
  transition: transform var(--t-base) var(--ease), background var(--t-base), color var(--t-base);
}
.home-v4 .bento__item:hover .bento__link svg { background: var(--clr-blue); color: var(--clr-white); transform: translateX(4px); }
.home-v4 .bento__item--feature .bento__link svg { background: rgba(255, 255, 255, .12); color: var(--clr-white); }
.home-v4 .bento__code { position: relative; }
.home-v4 .bento__code::after {
  content: ''; display: inline-block; width: .5ch; height: 1.05em; margin-left: 2px; vertical-align: text-bottom;
  background: var(--clr-cyan); animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .home-v4 .bento__code::after { animation: none; } }

/* ── 5. PRODUCTS — dark band, device cards ───────────────── */
.home-v4 .section--prod {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--clr-navy); color: var(--clr-on-dark);
}
.home-v4 .section--prod::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(59, 130, 246, .35), transparent 65%),
    radial-gradient(45% 55% at 100% 100%, rgba(96, 165, 250, .25), transparent 65%);
}
.home-v4 .section--prod .section-label { color: var(--clr-blue-300); }
.home-v4 .section--prod .section-heading { color: var(--clr-white); }
.home-v4 .section--prod .section-subhead { color: var(--clr-on-dark); }
.home-v4 .section--prod .btn-secondary { background: rgba(255, 255, 255, .06); color: var(--clr-white); border-color: var(--clr-line-dark); }
.home-v4 .section--prod .btn-secondary:hover { background: rgba(255, 255, 255, .12); }

.home-v4 .prod-grid { gap: var(--sp-6); perspective: 1200px; }
@media (min-width: 900px) { .home-v4 .prod-grid { grid-template-columns: repeat(2, 1fr); } }
.home-v4 .prod {
  position: relative; overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--clr-line-dark);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s var(--ease), border-color var(--t-base), box-shadow var(--t-base);
  transform-style: preserve-3d;
}
.home-v4 .prod::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--clr-blue), transparent 40%, var(--clr-cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55;
}
.home-v4 .prod--school::before { background: linear-gradient(135deg, var(--clr-violet), transparent 40%, var(--clr-mint)); }
.home-v4 .prod:hover { box-shadow: 0 30px 60px -30px rgba(59, 130, 246, .6); }
.home-v4 .prod__shot {
  margin: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--clr-line-dark); border-bottom: 0;
  background: var(--clr-ink-2);
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  box-shadow: 0 -10px 40px -20px rgba(59, 130, 246, .5);
}
.home-v4 .prod__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.home-v4 .prod:hover .prod__shot img { transform: scale(1.04) translateY(-1.5%); }
.home-v4 .prod > :not(.prod__shot) { margin-inline: clamp(1.5rem, 3vw, 2.25rem); }
.home-v4 .prod__head { margin-top: var(--sp-6); }
.home-v4 .prod__actions { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.home-v4 .prod__icon { background: rgba(255, 255, 255, .08); color: var(--clr-white); }
.home-v4 .prod__name { color: var(--clr-white); }
.home-v4 .prod__desc { color: var(--clr-on-dark); }
.home-v4 .prod__feats { color: var(--clr-white); }
.home-v4 .prod__feats svg { color: var(--clr-mint); }
.home-v4 .prod .tag { background: rgba(23, 201, 138, .12); border-color: rgba(23, 201, 138, .35); color: var(--clr-mint); }
.home-v4 .prod__more { color: var(--clr-blue-300); }

/* ── 6. RESULTS — big numbers + sparklines ───────────────── */
.home-v4 .results-grid { background: transparent; border: 0; box-shadow: none; overflow: visible; gap: var(--sp-5); }
.home-v4 .result-card, .home-v4 .result-card + .result-card {
  position: relative; border: 1px solid var(--clr-border); border-radius: var(--radius-2xl);
  background: var(--clr-surface); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.home-v4 .result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.home-v4 .result-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.home-v4 .result-card:hover::before { transform: scaleX(1); }
.home-v4 .result-card__metric { font-family: var(--font-mono); font-weight: var(--fw-medium); letter-spacing: -.06em; }
.home-v4 .result-card__spark { width: 100%; height: 44px; margin: var(--sp-2) 0 var(--sp-3); overflow: visible; }
.home-v4 .result-card__spark path {
  fill: none; stroke: var(--clr-blue); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700;
  animation: spark-draw 1.6s var(--ease) .2s forwards paused;
}
.home-v4 .result-card.is-in .result-card__spark path,
html:not(.js-anim) .home-v4 .result-card__spark path { animation-play-state: running; }
@keyframes spark-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .home-v4 .result-card__spark path { animation: none; stroke-dashoffset: 0; } }

/* ── 7. PROCESS — glowing track + deliverable chips ──────── */
.home-v4 .process-step { overflow: hidden; }
.home-v4 .process-step__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: var(--sp-3); }
.home-v4 .process-step__chips span {
  padding: .2rem .6rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em;
  color: var(--clr-muted); background: var(--clr-bg-alt); border: 1px solid var(--clr-border); border-radius: var(--radius-full);
  transition: color var(--t-base), background var(--t-base), border-color var(--t-base);
}
.home-v4 .process-step.is-active .process-step__chips span { color: var(--clr-blue); background: var(--clr-tint-blue); border-color: rgba(59, 130, 246, .3); }
.home-v4 .process-step__number { font-size: var(--text-sm); }
.home-v4 .process-step.is-active { box-shadow: 0 20px 50px -20px rgba(59, 130, 246, .55), 0 0 0 4px rgba(59, 130, 246, .08); }
.home-v4 .process-step.is-active .process-step__icon-wrap { box-shadow: 0 0 0 6px rgba(59, 130, 246, .15), 0 8px 24px -4px rgba(59, 130, 246, .7); }
.home-v4 .process-progress__bar { box-shadow: 0 0 14px rgba(59, 130, 246, .8); }

/* ── 8. TESTIMONIALS — featured + supporting ─────────────── */
@media (min-width: 900px) { .home-v4 .testimonials-grid { grid-template-columns: 1.45fr 1fr; align-items: stretch; } }
.home-v4 .testimonial-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.home-v4 .testimonial-card--feature {
  background: var(--clr-navy); color: var(--clr-on-dark); border-color: transparent;
  box-shadow: 0 30px 70px -35px rgba(59, 130, 246, .6);
}
.home-v4 .testimonial-card--feature::after {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .45), transparent); pointer-events: none;
}
.home-v4 .testimonial-card--feature .testimonial-card__quote { color: var(--clr-white); font-size: clamp(1.15rem, 1vw + .9rem, 1.5rem); line-height: 1.45; letter-spacing: -.01em; position: relative; z-index: 1; }
.home-v4 .testimonial-card--feature .testimonial-card__author { border-top-color: var(--clr-line-dark); position: relative; z-index: 1; }
.home-v4 .testimonial-card--feature .testimonial-card__name { color: var(--clr-white); }
.home-v4 .testimonial-card--feature .testimonial-card__role { color: var(--clr-on-dark-muted); }
.home-v4 .testimonial-card:not(.testimonial-card--feature) .testimonial-card__quote { font-size: var(--text-base); }

/* ── 9. AUDIT — form + sample report ─────────────────────── */
@media (min-width: 960px) {
  .home-v4 .lead-magnet { grid-template-columns: 1fr 1fr; grid-template-areas: "copy scan" "form scan"; align-items: start; row-gap: var(--sp-6); }
  .home-v4 .lead-magnet__copy { grid-area: copy; }
  .home-v4 .audit-form { grid-area: form; }
  .home-v4 .scan { grid-area: scan; align-self: center; }
}
.home-v4 .scan { margin-top: var(--sp-6); border-radius: var(--radius-xl); background: rgba(255, 255, 255, .05); border: 1px solid var(--clr-line-dark); backdrop-filter: blur(10px); overflow: hidden; }
@media (min-width: 960px) { .home-v4 .scan { margin-top: 0; } }
.home-v4 .scan__bar { display: flex; align-items: center; gap: .35rem; padding: .7rem 1rem; border-bottom: 1px solid var(--clr-line-dark); font-family: var(--font-mono); font-size: 11px; color: var(--clr-on-dark-muted); }
.home-v4 .scan__bar i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.home-v4 .scan__bar span { margin-left: .5rem; }
.home-v4 .scan__bar em { margin-left: auto; font-style: normal; padding: .1rem .5rem; border-radius: var(--radius-full); border: 1px solid var(--clr-line-dark); }
.home-v4 .scan__body { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--sp-5); align-items: center; padding: var(--sp-6); }
@media (max-width: 480px) { .home-v4 .scan__body { grid-template-columns: 1fr; justify-items: center; } .home-v4 .scan__rows { width: 100%; } }
.home-v4 .scan__ring { position: relative; width: 7.5rem; aspect-ratio: 1; display: grid; place-items: center; align-content: center; }
.home-v4 .scan__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.home-v4 .scan__trk { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 8; }
.home-v4 .scan__val { fill: none; stroke: var(--clr-cyan); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset .3s linear; filter: drop-shadow(0 0 6px rgba(96, 165, 250, .7)); }
.home-v4 .scan__num { font-family: var(--font-mono); font-size: 1.9rem; color: var(--clr-white); line-height: 1; font-weight: var(--fw-medium); }
.home-v4 .scan__ring small { font-size: 11px; color: var(--clr-on-dark-muted); text-transform: uppercase; letter-spacing: .08em; }
.home-v4 .scan__rows { display: grid; gap: .8rem; }
.home-v4 .scan__rows li { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; font-size: var(--text-sm); color: var(--clr-white); opacity: .35; transition: opacity .4s; }
.home-v4 .scan__rows li.is-on { opacity: 1; }
.home-v4 .scan__rows i { grid-column: 1 / -1; order: 3; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.home-v4 .scan__rows b { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-bright, var(--grad-brand)); transition: width 1s var(--ease); }
.home-v4 .scan__rows li.is-on b { width: calc(var(--v) * 1%); }
.home-v4 .scan__rows em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--clr-mint); }
.home-v4 .scan__rows li[data-v="64"] em, .home-v4 .scan__rows li[data-v="48"] em { color: var(--clr-cyan); }
html:not(.js-anim) .home-v4 .scan__rows li { opacity: 1; }
html:not(.js-anim) .home-v4 .scan__rows b { width: calc(var(--v) * 1%); }

/* ── 10. BLOG — featured first card ──────────────────────── */
@media (min-width: 1024px) {
  .home-v4 .blog-carousel__track { grid-auto-columns: calc((100% - 2 * var(--sp-5)) / 4); }
  .home-v4 .blog-carousel__track > .blog-card:first-child { grid-column: span 2; }
  .home-v4 .blog-carousel__track > .blog-card:first-child .blog-card__thumb { aspect-ratio: 16 / 8; }
  .home-v4 .blog-carousel__track > .blog-card:first-child .blog-card__title { font-size: var(--text-2xl); letter-spacing: -.02em; }
}
.home-v4 .blog-card { border-radius: var(--radius-2xl); }
.home-v4 .blog-card__tag { align-self: flex-start; padding: .15rem .6rem; border-radius: var(--radius-full); background: var(--clr-tint-blue); }
.home-v4 .blog-card__date::before { content: '· '; }

/* ── 11. FINAL CTA ───────────────────────────────────────── */
.home-v4 .final-cta { padding-block: clamp(4.5rem, 9vw, 7rem) clamp(10rem, 17vw, 14rem); }
.home-v4 .final-cta::after { filter: blur(30px); }
.home-v4 .final-cta__contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-10); padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-line-dark);
  font-family: var(--font-mono); font-size: var(--text-sm);
}
.home-v4 .final-cta__contact a { color: var(--clr-on-dark); border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.home-v4 .final-cta__contact a:hover { color: var(--clr-white); border-color: var(--clr-cyan); }

/* ── 12. FOOTER — oversized wordmark + back to top ───────── */
.home-v4 .site-footer { position: relative; overflow: hidden; }
.home-v4 .site-footer::after {
  content: 'Novaqore';
  display: block; text-align: center; pointer-events: none; user-select: none;
  font-weight: var(--fw-semibold); letter-spacing: -.06em; line-height: 1;
  font-size: clamp(4rem, 17vw, 15rem);
  margin: var(--sp-6) 0 0; padding-bottom: .06em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-v4 .to-top {
  position: absolute; right: max(1rem, calc((100% - var(--max-w)) / 2)); top: 1.25rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--clr-on-dark); background: rgba(255, 255, 255, .06); border: 1px solid var(--clr-line-dark); border-radius: var(--radius-full);
  transition: background var(--t-fast), color var(--t-fast);
}
.home-v4 .to-top:hover { background: rgba(255, 255, 255, .14); color: var(--clr-white); }

/* ── Top 10 free tools (block generated by scripts/build_tools.py) ── */
.home-v4 .tools-top { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .home-v4 .tools-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .home-v4 .tools-top { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .home-v4 .tools-top { grid-template-columns: repeat(5, 1fr); } }
.home-v4 .tools-top__item {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3); height: 100%;
  padding: var(--sp-5); border: 1px solid var(--clr-border); border-radius: var(--radius-xl);
  background: var(--clr-white); color: inherit; text-decoration: none;
  transition: border-color var(--t-fast), box-shadow var(--t-base) var(--ease);
}
.home-v4 .tools-top__item:hover { border-color: var(--clr-blue-300); box-shadow: var(--shadow-md); }
.home-v4 .tools-top__item:focus-visible { outline: 3px solid var(--clr-cta-hover); outline-offset: 2px; }
.home-v4 .tools-top__n { position: absolute; top: var(--sp-4); right: var(--sp-4); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--clr-muted); }
.home-v4 .tools-top__ic { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); color: var(--clr-cta-hover); background: color-mix(in srgb, var(--clr-blue) 12%, var(--clr-white)); }
.home-v4 .tools-top__ic svg { width: 1.25rem; height: 1.25rem; }
.home-v4 .tools-top__txt { display: grid; gap: var(--sp-1); }
.home-v4 .tools-top__txt b { font-size: var(--text-base); font-weight: var(--fw-semibold); color: var(--clr-heading); letter-spacing: -.01em; }
.home-v4 .tools-top__txt small { font-size: var(--text-sm); line-height: 1.5; color: var(--clr-muted); }
@media (max-width: 639px) { /* phones: compact rows so ten tools don't take two screens */
  .home-v4 .tools-top { gap: var(--sp-2); }
  .home-v4 .tools-top__item { flex-direction: row; align-items: center; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-lg); }
  .home-v4 .tools-top__n { position: static; order: 3; margin-left: auto; }
  .home-v4 .tools-top__ic { flex: none; width: 2.1rem; height: 2.1rem; }
  .home-v4 .tools-top__txt small { display: none; }
}
