/* ============================================================
   Dynamic Pricing AI — main.css
   Brand tokens, reset, typography, layout, components, sections
   ============================================================ */

/* ── 1. Custom properties ──────────────────────────────────── */
:root {
  /* Brand colours */
  --c-primary: #1c5858;
  --c-primary-dark: #154242;
  --c-primary-light: #e8f0f0;
  --c-accent: #edfd3d;
  --c-accent-dark: #d4e200;
  --c-dark: #002626;
  --c-dark-alt: #1e293b;
  --c-muted: #64748b;
  --c-border: #e2e8f0;
  --c-bg: #fcfbf7;
  --c-white: #ffffff;

  /* Semantic text tokens */
  --c-heading: #002626;
  --c-body: #3a4a5c;

  /* Typography */
  --font-heading: 'Borna', 'Space Grotesk', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: clamp(2.5rem, 5vw, 3.8125rem);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --section-pad-y: var(--sp-20);

  /* Radius */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 8px;
  --r-full: 4px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);

  /* Transitions */
  --ease: 0.2s ease;
}

/* ── 2. Borna self-hosted font (add .woff2 files to assets/fonts/) ─── */
@font-face {
  font-family: 'Borna';
  src: url('../fonts/Borna-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Borna';
  src: url('../fonts/Borna-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Borna';
  src: url('../fonts/Borna-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Borna';
  src: url('../fonts/Borna-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── 3. Reset / base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--c-dark-alt);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font: inherit;
}

/* ── 4. Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--c-primary);
  color: var(--c-white);
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  z-index: 9999;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ── 5. Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.site-content {
  min-height: 60vh;
}

.section {
  padding-block: var(--section-pad-y);
}

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header--centered {
  text-align: center;
}

.section-header--centered .section-header__intro {
  margin-inline: auto;
}

.section-header__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}

.section-header__h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--c-dark);
  margin-bottom: var(--sp-4);
}

.section-header__intro {
  max-width: 640px;
  font-size: var(--text-lg);
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── 6. Typography ─────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-dark);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

/* ── 7. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: capitalize;
  line-height: 1;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease), border-color var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn--primary:hover {
  background: var(--c-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--c-white);
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.btn--secondary:hover {
  background: var(--c-primary-light);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-dark);
}

.btn--accent:hover {
  background: var(--c-accent-dark);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 2px solid currentColor;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--ghost {
  background: transparent;
  color: var(--c-dark-alt);
  border: 1.5px solid var(--c-border);
}

.btn--ghost:hover {
  background: var(--c-white);
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

/* ── 8. Site Header ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  transform: translateY(0);
  transition: transform 0.28s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

/* Nav readable over the light hero overlay */
.site-header:not(.is-scrolled) .nav-menu > li > a,
.site-header:not(.is-scrolled) .site-logo__text {
  color: var(--c-dark);
}

.site-header:not(.is-scrolled) .nav-toggle__bar {
  background: var(--c-dark);
}

.site-header:not(.is-scrolled) .dark-toggle {
  color: var(--c-dark);
}

/* Instant hide — no transition so it feels like the page scrolled it away */
.site-header.is-hidden {
  transform: translateY(-100%);
  transition: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 6px;
}

.site-logo__img {
  height: 40px;
  width: auto;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-dark);
}

.site-logo__wordmark {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-logo__wordmark-ai {
  color: var(--c-primary);
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.site-header__actions .btn {
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  letter-spacing: 0.01em;
}

/* ── 9. Site Footer ────────────────────────────────────────── */
.site-footer {
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-16);
  padding-block: var(--sp-16);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: 32px;
  width: auto;
}

.footer-brand__tagline {
  font-size: var(--text-sm);
  opacity: 0.7;
}

.footer-brand__email {
  color: var(--c-accent);
  font-weight: 600;
  font-size: var(--text-sm);
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  transition: border-color var(--ease), color var(--ease);
}

.footer-social__link:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}

.footer-nav__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}

.footer-nav__heading--spaced {
  margin-top: var(--sp-8);
}

.footer-nav__group-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-1);
}

.footer-nav__list li {
  margin-bottom: var(--sp-2);
}

.footer-nav__list a {
  font-size: var(--text-sm);
  opacity: 0.9;
  color: #e0e0e0;
  transition: opacity var(--ease), color var(--ease);
}

.footer-nav__list a:hover {
  opacity: 1;
  color: var(--c-accent);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-legal {
  font-size: var(--text-sm);
  opacity: 0.55;
  line-height: 1.6;
}

/* ── 10. Hero ─────────────────────────────────────────────── */
.section--hero {
  background-color: var(--c-bg);
  background-image: url('../images/hero-bg-dark.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  margin-top: -72px;
  padding-top: calc(72px + var(--sp-24));
  padding-bottom: var(--sp-24);
}

.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 1.0) 0%,
      rgba(255, 255, 255, 0.92) 30%,
      rgba(252, 251, 247, 0.40) 62%,
      rgba(252, 251, 247, 0.0) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.hero__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.hero__heading {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--c-dark);
  margin-bottom: var(--sp-6);
  line-height: 1.15;
}

.hero__subheading {
  font-size: var(--text-lg);
  color: var(--c-dark-alt);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__learn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-dark-alt);
  text-decoration: none;
  transition: color 0.15s, gap 0.15s;
}

.hero__learn-link:hover {
  color: var(--c-primary);
  gap: var(--sp-2);
}

.hero__media {
  border-radius: var(--r-md);
  overflow: hidden;
}

.hero__img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

/* ── 11. Logos ─────────────────────────────────────────────── */
/* ── 11. Logos marquee ─────────────────────────────────────── */
.section--logos {
  padding-top: 0;
  padding-bottom: var(--sp-6);
  background: var(--c-white);
  overflow: visible;
  position: relative;
  z-index: 2;
}

/* Anchor wrapper — translateY(-50%) centers it precisely on the boundary */
.logos__anchor-wrap {
  position: relative;
  z-index: 5;
  transform: translateY(-50%);
}

/* Labeled separator line */
.logos__anchor {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding-inline: var(--sp-4);
}

.logos__anchor::before,
.logos__anchor::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.logos__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-dark-alt);
  white-space: nowrap;
  padding: 0.2rem var(--sp-3);
  background: var(--c-white);
  border-radius: 99px;
}

/* Bottom rule */
.logos__bottom-rule {
  height: 1px;
  background: var(--c-border);
  margin-top: var(--sp-6);
}

/* Rotator — cross-fades between two groups */
.logos__rotator {
  position: relative;
  height: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%, black 6%, black 94%, transparent 100%);
}

.logos-group {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
  flex-wrap: nowrap;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  pointer-events: none;
}

.logos-group.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.logos-item {
  flex-shrink: 0;
}

.logos-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.25) opacity(0.75);
  transition: filter 0.35s ease;
  display: block;
}

.logos-item:hover .logos-img {
  filter: grayscale(0) brightness(1) opacity(1);
}

/* ── 11b. Benefits / KPI section ──────────────────────────── */

.section--benefits {
  padding-block: var(--sp-20);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 151, 167, 0.04) 0%, transparent 70%),
    radial-gradient(rgba(0, 151, 167, 0.07) 1px, transparent 1px);
  background-size: cover, 24px 24px;
}

.benefits__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--sp-12);
}

.benefits__eyebrow {
  margin-bottom: var(--sp-3);
}

.benefits__heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.benefits__intro {
  color: var(--c-muted);
  font-size: var(--text-lg);
  line-height: 1.65;
  margin: 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Benefit card ────────────────────────────────────────── */
.benefit-card {
  position: relative;
  padding: var(--sp-8);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  min-height: 260px;
  transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
  cursor: default;
}

.benefit-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 98, 108, 0.10);
}

/* Animated top line */
.benefit-card__top-line {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #0097a7, #9dd8de);
  transform-origin: left center;
  transform: scaleX(0);
}

.benefit-card.is-visible .benefit-card__top-line {
  animation: benefit-line-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 0.1s + 0.2s);
}

@keyframes benefit-line-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Card fade-in on scroll */
.benefit-card {
  opacity: 0;
  transform: translateY(16px);
}

.benefit-card.is-visible {
  animation: benefit-card-in 0.55s ease forwards;
  animation-delay: calc(var(--i) * 0.08s + 0.1s);
}

@keyframes benefit-card-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Header row: ticker + signal dot */
.benefit-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.benefit-card__ticker {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-primary);
  text-transform: uppercase;
}

.benefit-card__signal {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0097a7;
  flex-shrink: 0;
  animation: benefit-pulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
}

@keyframes benefit-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 151, 167, 0.4); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 5px rgba(0, 151, 167, 0); }
}

/* Text */
.benefit-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.benefit-card__name {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-heading);
  margin: 0;
}

.benefit-card__desc {
  font-size: var(--text-sm);
  color: var(--c-muted);
  line-height: 1.70;
  margin: 0;
}

/* Large index watermark */
.benefit-card__index {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-4);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 151, 167, 0.13);
  font-family: var(--font-heading);
  pointer-events: none;
  user-select: none;
  transition: color 0.25s ease;
}

.benefit-card:hover .benefit-card__index {
  color: rgba(0, 151, 167, 0.22);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .benefits__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
  }
}

@media (max-width: 420px) {
  .benefits__grid {
    grid-template-columns: 1fr;
  }
}

/* ── 12. Capabilities ─────────────────────────────────────── */
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.capability-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  padding-top: calc(var(--sp-8) + 3px); /* account for accent bar */
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.38s ease,
              border-color 0.25s ease;
}

/* Gradient accent bar */
.capability-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  pointer-events: none;
  z-index: 1;
}

.capabilities__grid .capability-card:nth-child(3n+1)::after { background: linear-gradient(90deg, #0097a7, #00e5ff); }
.capabilities__grid .capability-card:nth-child(3n+2)::after { background: linear-gradient(90deg, #7c3aed, #38bdf8); }
.capabilities__grid .capability-card:nth-child(3n)::after   { background: linear-gradient(90deg, #059669, #06b6d4); }

/* Corner glow orb */
.capability-card::before {
  content: '';
  position: absolute;
  bottom: -36px;
  right: -36px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 178, 198, 0.16) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.capability-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 52px rgba(0, 98, 108, 0.13), 0 4px 14px rgba(0,0,0,0.06);
  border-color: var(--c-primary);
}

.capability-card:hover::before {
  opacity: 1;
  transform: scale(1.35);
}

.capability-card__icon img {
  height: 48px;
  width: auto;
}

.capability-card__heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.2;
  padding-bottom: var(--sp-4);
  border-bottom: 1.5px solid var(--c-border);
}


.capability-card__desc {
  font-size: var(--text-sm);
  color: var(--c-muted);
}

.capability-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.capability-card__features li {
  padding-left: 1.25rem;
  position: relative;
}

.capability-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  transition: transform var(--ease);
}

.feature-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}

.feature-link:hover .feature-label {
  color: var(--c-primary);
}

.feature-link:hover~li::before,
.capability-card__features li:has(.feature-link:hover)::before {
  transform: scale(1.4);
}

.feature-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-dark);
  line-height: 1.4;
  transition: color var(--ease);
}

.feature-sub {
  font-size: var(--text-sm);
  color: var(--c-muted);
  line-height: 1.3;
}

.capability-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-primary);
  margin-top: auto;
  padding-top: var(--sp-6);
  transition: gap var(--ease);
}

.capability-card__link:hover {
  gap: 0.625rem;
}

/* ── 13. Testimonials ─────────────────────────────────────── */
.section--testimonials {
  background: #f0fafa;
  color: var(--c-dark);
}

.section--testimonials .section-header__h2 {
  color: var(--c-dark);
}

.section--testimonials .section-header__label {
  color: var(--c-primary);
  letter-spacing: 0.08em;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

/* ── Stat-forward testimonial card ───────────────────────── */
.testimonial-card {
  background-color: #e8f4f4;
  background-image: url('../images/hero-bg-dark.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 30, 0.68);
  pointer-events: none;
  z-index: 0;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Stat block — the headline number */
.testimonial-card__stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.testimonial-card__stat-value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: #9dd8de;
  letter-spacing: -0.02em;
}

.testimonial-card__stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Quote */
.testimonial-card__text {
  font-size: var(--text-base);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
}

/* Author row */
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
}

.testimonial-card__photo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.testimonial-card__name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: var(--text-sm);
  color: #ffffff;
}

.testimonial-card__role {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* ── 14. Solutions ───────────────────────────────────────── */
.section--solutions {
  background-image: url('../images/hero-bg-dark.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.section--solutions::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(252, 251, 247, 0.96) 0%,
      rgba(252, 251, 247, 0.85) 50%,
      rgba(252, 251, 247, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.section--solutions .container {
  position: relative;
  z-index: 1;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.solutions__col-heading {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--c-primary);
  color: var(--c-dark);
}

.solutions__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.solutions__link {
  font-size: var(--text-base);
  color: var(--c-dark-alt);
  transition: color var(--ease), background var(--ease), border-color var(--ease);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--c-border);
  display: block;
}

.solutions__link:hover {
  color: var(--c-primary);
  background: rgba(255, 255, 255, 0.80);
  border-color: var(--c-primary);
}

.solutions__all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-primary);
  transition: gap var(--ease);
}

.solutions__all-link:hover {
  gap: 0.625rem;
}

/* ── 15. CTA Banner ──────────────────────────────────────── */
.section--cta-banner {
  background: var(--c-primary);
  color: var(--c-white);
}

.cta-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-12);
  align-items: center;
}

.cta-banner__heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}

.cta-banner__body {
  color: rgba(255, 255, 255, 0.85);
}

/* ── 16. Contact section ─────────────────────────────────── */
.section--contact {
  background-color: var(--c-bg);
  background-image: url('../images/hero-bg-dark.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
}

.section--contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 1.0) 0%,
      rgba(255, 255, 255, 0.92) 30%,
      rgba(252, 251, 247, 0.40) 62%,
      rgba(252, 251, 247, 0.0) 100%);
  pointer-events: none;
  z-index: 0;
}

.contact-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-section__heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--sp-4);
}

.contact-section__body {
  color: var(--c-muted);
}

.contact-section__placeholder {
  color: var(--c-muted);
  font-style: italic;
  font-size: var(--text-sm);
}

/* ── 17. Product Hero ────────────────────────────────────── */
.section--product-hero {
  background: var(--c-bg);
  padding-block: var(--sp-20);
}

.product-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.product-hero__heading {
  font-size: var(--text-5xl);
  color: var(--c-dark);
  margin-bottom: var(--sp-6);
}

.product-hero__tagline {
  font-size: var(--text-lg);
  color: var(--c-muted);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}

.product-hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.product-hero__img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

/* ── 18. Product Features ────────────────────────────────── */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--c-border);
}

.product-feature:last-child {
  border-bottom: none;
}

.product-feature--image-left .product-feature__media {
  order: -1;
}

.product-feature--image-right .product-feature__media {
  order: 1;
}

.product-feature__heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--sp-4);
}

.product-feature__desc {
  color: var(--c-muted);
  margin-bottom: var(--sp-6);
}

.product-feature__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.product-feature__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-base);
}

.product-feature__check {
  flex-shrink: 0;
  margin-top: 2px;
}

.product-feature__list {
  margin-bottom: var(--sp-6);
}

.product-feature__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.15s, gap 0.15s;
}

.product-feature__link:hover {
  gap: var(--sp-2);
}

.product-features__cta {
  display: flex;
  justify-content: center;
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--c-border);
}

.product-feature__img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

.product-feature__media--placeholder {
  min-height: 280px;
  border-radius: var(--r-md);
  background: var(--c-bg);
  border: 1px dashed var(--c-border);
}

/* ── 19. How It Works ────────────────────────────────────── */
.section--how-it-works {
  background: var(--c-bg);
}

.how-it-works__steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  counter-reset: steps;
}

.how-it-works__step {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--sp-6);
  align-items: start;
  position: relative;
}


.how-it-works__step-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: rgba(28, 88, 88, 0.25);
  line-height: 1;
  flex-shrink: 0;
}

.how-it-works__step-heading {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
}

.how-it-works__step-desc {
  color: var(--c-muted);
  font-size: var(--text-base);
}

.how-it-works__step-img {
  width: 200px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

/* ── 20. Social Proof / Stats ────────────────────────────── */
.section--social-proof {
  background: var(--c-primary);
  color: var(--c-white);
}

.section--social-proof .section-header__h2 {
  color: var(--c-white);
}

.social-proof__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-8);
}

.social-proof__stat {
  text-align: center;
  padding: var(--sp-8);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
}

.social-proof__stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.social-proof__stat-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--c-white);
  margin-bottom: var(--sp-2);
}

.social-proof__stat-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
}

/* ── 21. FAQ ─────────────────────────────────────────────── */
.faq__inner {
  max-width: 780px;
  margin-inline: auto;
}

.faq__heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--sp-8);
  text-align: center;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.faq__item {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--ease);
}

.faq__item:has(.faq__toggle[aria-expanded="true"]) {
  border-color: var(--c-primary);
}

.faq__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  color: var(--c-dark);
  background: var(--c-white);
  transition: background var(--ease);
}

.faq__toggle:hover {
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.faq__toggle[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}

.faq__icon {
  flex-shrink: 0;
  transition: transform var(--ease);
  color: var(--c-primary);
}

.faq__answer {
  padding: 0 var(--sp-6) var(--sp-6);
  background: var(--c-white);
}

.faq__answer[hidden] {
  display: none;
}

.faq__answer p {
  color: var(--c-muted);
}

/* ── 22. Product CTA ─────────────────────────────────────── */
.section--product-cta {
  background: var(--c-dark);
  color: var(--c-white);
  text-align: center;
}

.product-cta__inner {
  max-width: 640px;
  margin-inline: auto;
}

.product-cta__heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}

.product-cta__body {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--sp-8);
  font-size: var(--text-lg);
}

.product-cta__actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 23. Generic page / single post ─────────────────────── */
.page-content {
  padding-block: var(--sp-16);
}

.page-title {
  margin-bottom: var(--sp-8);
}

.post-header {
  margin-bottom: var(--sp-8);
}

.post-thumbnail {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--sp-6);
}

.post-thumbnail img {
  width: 100%;
}

.post-meta {
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}

.post-header {
  padding-top: var(--sp-16);
}

.post-title {
  margin-bottom: var(--sp-24);
}

.post-content {
  max-width: 720px;
  width: 100%;
  padding-top: var(--sp-6);
}

/* ── Body text ───────────────────────────────────────────── */
.post-content p,
.post-content ul,
.post-content ol {
  margin-bottom: var(--sp-5);
  color: var(--c-dark-alt);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.post-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}

.post-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}

.post-content li {
  margin-bottom: var(--sp-2);
  color: var(--c-dark-alt);
  line-height: 1.7;
  font-weight: 500;
}

/* ── Headings inside content ─────────────────────────────── */
.post-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-dark);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  line-height: 1.3;
}

.post-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--c-dark);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.post-content h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--c-dark);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

/* ── Links ───────────────────────────────────────────────── */
.post-content a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}

.post-content a:hover {
  color: var(--c-primary-dark);
}

/* ── Blockquote ──────────────────────────────────────────── */
.post-content blockquote {
  border-left: 3px solid var(--c-primary);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0;
  background: var(--c-primary-light);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.post-content blockquote p {
  color: var(--c-dark-alt);
  font-style: italic;
  margin-bottom: 0;
}

/* ── Code ────────────────────────────────────────────────── */
.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--c-primary-light);
  color: var(--c-primary);
  padding: 0.15em 0.45em;
  border-radius: var(--r-sm);
}

.post-content pre {
  background: var(--c-dark);
  color: #e2e8f0;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: var(--sp-6) 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* ── Images ──────────────────────────────────────────────── */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: var(--sp-6) 0;
}

/* ── Horizontal rule ─────────────────────────────────────── */
.post-content hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-10) 0;
}

/* ── Tables ──────────────────────────────────────────────── */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-6) 0;
  font-size: var(--text-sm);
  overflow-x: auto;
  display: block;
}

.post-content th,
.post-content td {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border);
  text-align: left;
  color: var(--c-dark-alt);
}

.post-content th {
  background: var(--c-primary-light);
  color: var(--c-dark);
  font-weight: 600;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .post-header {
    padding-top: var(--sp-8);
  }

  .post-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--sp-8);
  }

  .post-content h2 {
    font-size: var(--text-xl);
  }

  .post-content h3 {
    font-size: var(--text-lg);
  }

  .post-content p,
  .post-content li {
    font-size: var(--text-base);
  }
}

/* ── 24. Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: var(--sp-16);
  }

  .hero__inner,
  .product-hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__media,
  .product-hero__media {
    display: none;
  }

  .capabilities__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-section__inner {
    grid-template-columns: 1fr;
  }

  .product-feature {
    grid-template-columns: 1fr;
  }

  .product-feature--image-left .product-feature__media,
  .product-feature--image-right .product-feature__media {
    order: unset;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: var(--sp-12);
    --container-pad: 1rem;
  }

  .capabilities__grid {
    grid-template-columns: 1fr;
  }

  .solutions__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .how-it-works__step {
    grid-template-columns: 48px 1fr;
  }

  .how-it-works__step-media {
    display: none;
  }

  /* ── Hero mobile ─────────────────────────────────────────── */
  .section--hero {
    padding-top: calc(72px + var(--sp-12));
    padding-bottom: var(--sp-12);
    background-position: right top;
  }

  /* On mobile the gradient covers the full width so text stays readable */
  .section--hero::before {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.93) 60%,
        rgba(252, 251, 247, 0.80) 100%);
  }

  .hero__heading {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .hero__subheading {
    font-size: var(--text-base);
    margin-bottom: var(--sp-6);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .product-hero__actions,
  .product-cta__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── How It Works — animated pipeline ──────────────────────── */

.hiw {
  background: linear-gradient(160deg, #001a1d 0%, #002d33 50%, #001a1d 100%);
  overflow: hidden;
  position: relative;
}

.hiw::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(120, 190, 196, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0, 200, 150, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hiw__header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.hiw__heading {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--sp-3);
}

.hiw__sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto;
}

/* Pipeline layout */
.hiw__pipeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

/* Step label */
.hiw__step-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  text-align: center;
  margin-bottom: var(--sp-4);
}

/* ── Step 1: Inputs ── */
.hiw__step--inputs {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
}

.hiw__inputs-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.hiw__input-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 10px;
  background: rgba(120, 190, 196, 0.1);
  border: 1.5px solid rgba(120, 190, 196, 0.3);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0;
  transform: translateX(-16px);
  animation: hiw-chip-in 0.5s ease forwards;
}

.hiw__input-chip--1 {
  animation-delay: 0.2s;
}

.hiw__input-chip--2 {
  animation-delay: 0.45s;
}

.hiw__input-chip--3 {
  animation-delay: 0.7s;
}

.hiw__input-chip--4 {
  animation-delay: 0.95s;
}

@keyframes hiw-chip-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hiw__chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}

@keyframes hiw-dot-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* ── Connector ── */
.hiw__connector {
  flex: 1;
  min-width: 40px;
  max-width: 80px;
  padding: 0 var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 32px;
}

.hiw__connector-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(120, 190, 196, 0.3), rgba(120, 190, 196, 0.6), rgba(120, 190, 196, 0.3));
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.hiw__connector-pulse {
  position: absolute;
  top: -2px;
  left: -40%;
  width: 40%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #78bec4, transparent);
  animation: hiw-flow 1.8s ease-in-out infinite;
}

.hiw__connector-pulse--delayed {
  animation-delay: 0.9s;
}

@keyframes hiw-flow {
  0% {
    left: -40%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* ── Step 2: AI Engine ── */
.hiw__step--engine {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hiw__engine {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw__engine-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.hiw__engine-ring--outer {
  inset: 0;
  background: linear-gradient(#001a1d, #001a1d) padding-box,
    linear-gradient(135deg, #78bec4, #00c896, #78bec4) border-box;
  animation: hiw-spin 4s linear infinite;
}

.hiw__engine-ring--mid {
  inset: 14px;
  background: linear-gradient(#001a1d, #001a1d) padding-box,
    linear-gradient(225deg, #78bec4, #00c896, #78bec4) border-box;
  animation: hiw-spin 3s linear infinite reverse;
}

@keyframes hiw-spin {
  to {
    transform: rotate(360deg);
  }
}

.hiw__engine-core {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #78bec4 0%, #00c896 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(120, 190, 196, 0.4);
  animation: hiw-glow 2.5s ease-in-out infinite;
}

@keyframes hiw-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(120, 190, 196, 0.35);
  }

  50% {
    box-shadow: 0 0 40px rgba(120, 190, 196, 0.65);
  }
}

.hiw__engine-icon {
  font-size: 0.75rem;
  font-weight: 900;
  color: #001a1d;
  letter-spacing: 0.05em;
}

/* ── Step 3: Output ── */
.hiw__step--output {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hiw__output {
  background: rgba(120, 190, 196, 0.07);
  border: 1px solid rgba(120, 190, 196, 0.25);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex: 1;
  width: 100%;
  animation: hiw-output-appear 0.6s ease 1.4s both;
}

@keyframes hiw-output-appear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hiw__output-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
}

.hiw__output-currency {
  font-size: var(--text-xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.hiw__output-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
  animation: hiw-count-up 1.5s ease 1.6s both;
}

@keyframes hiw-count-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mini bar chart */
.hiw__output-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
}

.hiw__bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, rgba(120, 190, 196, 0.4), rgba(120, 190, 196, 0.8));
  animation: hiw-bar-grow 0.5s ease both;
}

.hiw__bar--1 {
  height: 40%;
  animation-delay: 1.8s;
}

.hiw__bar--2 {
  height: 60%;
  animation-delay: 1.95s;
}

.hiw__bar--3 {
  height: 50%;
  animation-delay: 2.1s;
}

.hiw__bar--4 {
  height: 80%;
  animation-delay: 2.25s;
}

.hiw__bar--5 {
  height: 100%;
  background: linear-gradient(to top, #78bec4, #00c896);
  animation-delay: 2.4s;
}

@keyframes hiw-bar-grow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }

  to {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
}

.hiw__output-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #00c896;
  background: rgba(0, 200, 150, 0.12);
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: var(--r-full);
  padding: var(--sp-1) var(--sp-3);
  animation: hiw-badge-in 0.4s ease 2.6s both;
}

@keyframes hiw-badge-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hiw__pipeline {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
  }

  .hiw__step--inputs,
  .hiw__step--engine,
  .hiw__step--output {
    flex: none;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hiw__inputs-grid {
    width: 100%;
  }

  .hiw__input-chip {
    flex: none;
    width: 100%;
    padding: var(--sp-3) var(--sp-5);
  }

  .hiw__connector {
    flex: none;
    width: 2px;
    min-width: unset;
    max-width: unset;
    height: 40px;
    padding: 0;
    padding-top: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hiw__connector-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(120,190,196,0.3), rgba(120,190,196,0.6), rgba(120,190,196,0.3));
  }

  .hiw__connector-pulse {
    top: -40%;
    left: -2px;
    width: 6px;
    height: 40%;
    animation: hiw-flow-vertical 1.8s ease-in-out infinite;
  }

  .hiw__connector-pulse--delayed {
    animation-delay: 0.9s;
  }

  @keyframes hiw-flow-vertical {
    0%   { top: -40%; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  .hiw__step--output {
    align-items: center;
  }

  .hiw__output {
    width: 100%;
    max-width: 280px;
  }
}
