/* ================================================================
   PROGRESIÓN IA — styles.css
   Stripe / Linear / Vercel inspired dark SaaS
   Fonts: Bricolage Grotesque (display) · Geist (body)
   Brand: #1FAF7A
   ================================================================ */

/* ── TOKENS ───────────────────────────────────────────────────── */
:root {
  /* Background layers */
  --bg-base: #151a18;
  --bg-subtle: #191f1c;
  --bg-muted: #1d2320;
  --bg-raised: #222926;
  --bg-overlay: #272f2b;

  /* Brand */
  --brand: #1FAF7A;
  --brand-light: #2ed491;
  --brand-dim: rgba(31, 175, 122, 0.10);
  --brand-glow: rgba(31, 175, 122, 0.22);
  --brand-border: rgba(31, 175, 122, 0.25);

  /* Text */
  --tx-1: #eef2f0;
  --tx-2: #b5c7bd;
  --tx-3: #8ba398;

  /* Borders */
  --br-1: rgba(255, 255, 255, 0.12);
  --br-2: rgba(255, 255, 255, 0.18);
  --br-3: rgba(255, 255, 255, 0.25);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 100px;

  /* Typography */
  --f-display: 'Bricolage Grotesque', sans-serif;
  --f-body: 'Geist', sans-serif;

  /* Spacing scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-base);
  color: var(--tx-1);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

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

button {
  font-family: var(--f-body);
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── NOISE OVERLAY ────────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ── CONTAINER ────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--brand);
  color: #041309;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: background 0.2s, box-shadow 0.25s, transform 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--brand-light);
  box-shadow: 0 0 40px var(--brand-glow), 0 6px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px) scale(1.01);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.btn-lg {
  padding: 15px 28px;
  font-size: 15px;
  border-radius: var(--r-lg);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  color: var(--tx-2);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--br-2);
  border-radius: var(--r-md);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background: var(--brand-dim);
}

/* ── HEADER ───────────────────────────────────────────────────── */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  background: rgba(21, 26, 24, 0.80);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.header.is-scrolled {
  border-bottom-color: var(--br-1);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
  height: 74px;
  padding-inline: clamp(20px, 5vw, 40px);
  max-width: 1120px;
  margin-inline: auto;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--tx-1);
}

.logo-name em {
  font-style: normal;
  color: var(--brand);
}

/* Centre tagline */
.header-tagline {
  font-size: 12px;
  font-weight: 400;
  color: var(--tx-3);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

/* Right nav */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-2);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-2);
  transition: color 0.2s;
  padding: 6px 8px;
  border-radius: var(--r-sm);
}

.nav-link:hover {
  color: var(--tx-1);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--brand);
  color: #041309;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--r-md);
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-header-cta:hover {
  background: var(--brand-light);
  box-shadow: 0 0 20px var(--brand-glow);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--tx-1);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-in-out), opacity 0.2s;
}

.burger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-2) clamp(20px, 5vw, 40px) var(--s-3);
  border-top: 1px solid var(--br-1);
  background: rgba(21, 26, 24, 0.96);
}

.mobile-nav.is-open {
  display: flex;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(108px, 13vw, 160px);
  padding-bottom: clamp(76px, 10vw, 128px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hb-glow-main {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(500px, 80vw, 900px);
  height: 600px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(31, 175, 122, 0.13) 0%, transparent 70%);
}

.hb-glow-left {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(31, 175, 122, 0.05) 0%, transparent 65%);
  filter: blur(40px);
}

.hb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 175, 122, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 175, 122, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 0, 0, 0.5), transparent 80%);
}

.hb-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-base));
}

.hero-body {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pill badge */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 175, 122, 0.08);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
  letter-spacing: 0.02em;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--brand-glow);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 5px transparent;
  }
}

/* Hero title */
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-3);
  max-width: 860px;
}

.hero-accent {
  color: var(--brand);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--tx-2);
  font-weight: 300;
  line-height: 1.7;
  max-width: 660px;
  margin-bottom: var(--s-4);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--s-4);
}

/* Hero trust microcopy */
.hero-trust {
  font-size: 12.5px;
  color: var(--tx-3);
  letter-spacing: 0.03em;
  margin-bottom: var(--s-3);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 13px;
  color: var(--tx-3);
}

.proof-dots {
  display: flex;
}

.proof-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c, #1a4a32);
  border: 2px solid var(--bg-base);
  margin-left: -8px;
}

.proof-dot:first-child {
  margin-left: 0;
}

/* ── METRICS ──────────────────────────────────────────────────── */
.metrics {
  border-top: 1px solid var(--br-1);
  border-bottom: 1px solid var(--br-1);
  background: var(--bg-subtle);
  padding: clamp(48px, 7vw, 80px) 0;
}

.metrics-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.metric-card {
  flex: 1;
  text-align: center;
  padding: var(--s-5) var(--s-4);
  transition: background 0.25s;
  border-radius: var(--r-lg);
}

.metric-card:hover {
  background: rgba(31, 175, 122, 0.05);
}

.mc-icon {
  color: var(--brand);
  opacity: 0.7;
  display: flex;
  justify-content: center;
  margin-bottom: var(--s-2);
}

.mc-number {
  font-family: var(--f-display);
  font-size: clamp(50px, 8vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.mc-unit {
  font-size: 0.45em;
  font-weight: 600;
  margin-top: 12px;
  color: var(--brand);
  opacity: 0.75;
}

.mc-label {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--tx-1);
  margin-bottom: 7px;
}

.mc-sub {
  font-size: 13px;
  color: var(--tx-3);
  max-width: 180px;
  margin-inline: auto;
  line-height: 1.5;
}

.metric-rule {
  width: 1px;
  align-self: stretch;
  background: var(--br-1);
  margin-block: var(--s-3);
}

/* ── SECTION SHARED ───────────────────────────────────────────── */
.section-hd {
  text-align: center;
  margin-bottom: var(--s-7);
}

.eyebrow {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--tx-1);
}

.section-desc {
  font-size: 17px;
  color: var(--tx-2);
  max-width: 540px;
  margin-inline: auto;
  font-weight: 300;
  line-height: 1.75;
}

/* ── SYSTEM DIAGRAM ───────────────────────────────────────────── */
.system-section {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--br-1);
  border-bottom: 1px solid var(--br-1);
}

.diagram {
  position: relative;
  height: clamp(280px, 45vw, 400px);
  max-width: 640px;
  margin-inline: auto;
}

/* Nodes */
.d-node {
  position: absolute;
  z-index: 2;
}

.d-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--br-2);
  border-radius: var(--r-lg);
  min-width: 88px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: default;
}

.d-card:hover {
  border-color: var(--brand-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--brand-border);
  transform: translateY(-2px);
}

.d-icon {
  color: var(--tx-2);
  transition: color 0.25s;
}

.d-card:hover .d-icon {
  color: var(--brand);
}

.d-card span {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--tx-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* SVG connector lines */
.d-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.d-line {
  stroke: var(--brand);
  stroke-width: 1.4;
  stroke-opacity: 0.3;
  stroke-dasharray: 5 4;
  animation: line-march 2.5s linear infinite;
}

@keyframes line-march {
  to {
    stroke-dashoffset: -36;
  }
}

/* Core hub */
.d-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.d-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--brand-border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 3s ease-out infinite;
}

.d-ring-1 {
  width: 110px;
  height: 110px;
  animation-delay: 0s;
}

.d-ring-2 {
  width: 140px;
  height: 140px;
  animation-delay: 0.8s;
}

@keyframes ring-pulse {
  0% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.25);
  }
}

.d-hub {
  width: 88px;
  height: 88px;
  background: var(--bg-raised);
  border: 1.5px solid rgba(31, 175, 122, 0.35);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 40px rgba(31, 175, 122, 0.15), inset 0 0 20px rgba(31, 175, 122, 0.04);
}

.d-hub span {
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  text-align: center;
}

/* ── VIDEO ────────────────────────────────────────────────────── */
.video-section {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-base);
}

.video-wrap {
  max-width: 820px;
  margin-inline: auto;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--br-2);
  background: var(--bg-raised);
  aspect-ratio: 16 / 9;
  box-shadow:
    0 0 0 1px var(--br-1),
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(31, 175, 122, 0.05);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  cursor: pointer;
  transition: opacity 0.35s;
}

.vp-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(31, 175, 122, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.vp-play {
  position: relative;
  width: 72px;
  height: 72px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #041309;
  padding-left: 4px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 30px var(--brand-glow);
  z-index: 1;
}

.video-placeholder:hover .vp-play {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(31, 175, 122, 0.5);
}

.vp-ripple {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  opacity: 0.35;
  animation: ripple 2.2s ease-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }

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

.vp-label {
  font-size: 13px;
  color: var(--tx-3);
  position: relative;
  z-index: 1;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.yt-off {
  display: none !important;
}

/* ── STEPS ────────────────────────────────────────────────────── */
.steps-section {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--br-1);
  border-bottom: 1px solid var(--br-1);
}

.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--s-5) var(--s-4);
  background: var(--bg-raised);
  border: 1px solid var(--br-1);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.step-card::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.step-card:hover {
  border-color: var(--brand-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(31, 175, 122, 0.06);
}

.step-card:hover::after {
  opacity: 1;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-3);
}

.step-num {
  font-family: var(--f-display);
  font-size: 46px;
  font-weight: 800;
  color: rgba(31, 175, 122, 0.10);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.3s;
}

.step-card:hover .step-num {
  color: rgba(31, 175, 122, 0.18);
}

.step-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.step-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--tx-1);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14.5px;
  color: var(--tx-2);
  line-height: 1.72;
}

.step-connector {
  flex-shrink: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-3);
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-section {
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 130px);
  background: var(--bg-base);
}

.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--br-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.is-open {
  border-color: rgba(31, 175, 122, 0.2);
  background: rgba(31, 175, 122, 0.03);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 22px 24px;
  text-align: left;
  color: var(--tx-1);
  font-family: var(--f-display);
  font-size: 15.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.faq-btn:hover {
  color: var(--brand);
}

.faq-btn span {
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--tx-3);
  transition: transform 0.35s var(--ease-out), color 0.25s;
  display: flex;
  align-items: center;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-item.is-open .faq-panel {
  max-height: 240px;
}

.faq-panel p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--tx-2);
  line-height: 1.8;
  border-top: 1px solid var(--br-1);
  padding-top: 18px;
  margin-top: 0;
}

/* ── CTA ──────────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--br-1);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(31, 175, 122, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-pill {
  display: inline-block;
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-3);
}

.cta-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-3);
}

.cta-desc {
  font-size: 17px;
  color: var(--tx-2);
  max-width: 600px;
  margin-inline: auto;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: var(--s-4);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
}

.btn-cta {
  min-width: 300px;
  justify-content: center;
}

.cta-note {
  font-size: 12.5px;
  color: var(--tx-3);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--br-1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-6);
  padding-block: clamp(48px, 7vw, 72px);
}

.footer-brand {
  max-width: 260px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--tx-3);
  line-height: 1.65;
  margin-top: 12px;
}

.footer-col-hd {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: var(--s-2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--tx-2);
  transition: color 0.2s;
}

.footer-link svg {
  color: var(--brand);
  flex-shrink: 0;
}

.footer-link:hover {
  color: var(--tx-1);
}

.footer-bar {
  border-top: 1px solid var(--br-1);
  padding-block: var(--s-2);
}

.footer-bar .container {
  display: flex;
  justify-content: center;
}

.footer-bar span {
  font-size: 12px;
  color: var(--tx-3);
}

/* ── REVEAL ANIMATIONS ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .header-tagline {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .steps-row {
    flex-direction: column;
  }

  .step-connector {
    width: 100%;
    height: 32px;
    align-items: center;
    padding: 0;
    transform: rotate(90deg);
  }

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

  .metric-rule {
    width: 100%;
    height: 1px;
    margin-block: 0;
  }

  .metric-card {
    padding: var(--s-4) var(--s-3);
  }

  .faq-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-title {
    font-size: clamp(34px, 9vw, 48px);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary.btn-lg,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .diagram {
    height: 260px;
  }

  .d-card {
    padding: 12px 14px;
    min-width: 72px;
  }

  .d-hub {
    width: 72px;
    height: 72px;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--s-5);
  }

  .footer-brand {
    max-width: 100%;
  }

  .cta-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .btn-cta {
    min-width: unset;
    width: 100%;
  }

  .d-break {
    display: none;
  }
}

@media (max-width: 420px) {
  .metric-card {
    padding: var(--s-3) var(--s-2);
  }

  .mc-number {
    font-size: 44px;
  }
}

/* ── QUALIFICATION MODAL ─────────────────────────────────────── */
.qual-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.4s, opacity 0.4s ease;
}

.qual-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.qual-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qual-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: var(--bg-base);
  border: 1px solid var(--br-2);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.qual-modal.is-open .qual-modal-dialog {
  transform: translateY(0) scale(1);
}

.qual-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-2);
  background: var(--bg-raised);
  border: 1px solid var(--br-1);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  z-index: 10;
}

.qual-modal-close:hover {
  color: var(--tx-1);
  background: var(--bg-overlay);
  transform: rotate(90deg);
}

.qual-modal-content {
  padding: 40px 32px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--br-2) transparent;
}

.qual-modal-content::-webkit-scrollbar {
  width: 6px;
}

.qual-modal-content::-webkit-scrollbar-thumb {
  background-color: var(--br-2);
  border-radius: 6px;
}

.qual-header {
  margin-bottom: 24px;
}

.qual-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tx-1);
  margin-bottom: 8px;
}

.qual-desc {
  font-size: 15px;
  color: var(--tx-2);
  line-height: 1.5;
}

.qual-progress {
  height: 4px;
  background: var(--bg-raised);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.qual-progress-bar {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.qual-steps-container {
  position: relative;
  margin-bottom: 32px;
}

.qual-step {
  display: none;
  animation: fade-in-up 0.4s ease forwards;
}

.qual-step.active {
  display: block;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.qual-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--tx-1);
  margin-bottom: 20px;
  line-height: 1.4;
}

.qual-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qual-option {
  position: relative;
  cursor: pointer;
}

.qual-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.qual-opt-box {
  display: block;
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--br-1);
  border-radius: var(--r-md);
  color: var(--tx-2);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}

.qual-option:hover .qual-opt-box {
  background: var(--bg-raised);
  border-color: var(--br-2);
  color: var(--tx-1);
}

.qual-option input[type="radio"]:checked+.qual-opt-box {
  background: var(--brand-dim);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.qual-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.qual-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qual-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-2);
}

.qual-field input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--br-1);
  color: var(--tx-1);
  font-family: var(--f-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.qual-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
  background: var(--bg-base);
}

.qual-field input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444;
}

.qual-field input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.qual-field-error {
  color: #ef4444;
  font-size: 12.5px;
  margin-top: -2px;
  font-weight: 500;
  animation: fade-in-up 0.2s ease forwards;
}

.qual-field input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.qual-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--br-1);
  padding-top: 24px;
}

.qual-actions .btn-ghost,
.qual-actions .btn-primary {
  padding: 10px 20px;
  font-size: 14px;
}

.qual-btn-prev {
  margin-right: auto;
}

.qual-btn-submit {
  min-width: 160px;
  justify-content: center;
}

.qual-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.qual-btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.qual-error-msg {
  color: #ef4444;
  font-size: 13px;
  margin-top: 12px;
  font-weight: 500;
}

.qual-success {
  text-align: center;
  padding: 20px 0;
  animation: fade-in-up 0.5s ease;
}

.qual-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-dim);
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .qual-modal-content {
    padding: 32px 24px;
  }

  .qual-title {
    font-size: 22px;
  }
}