@import url("assets/colors_and_type.css");

/* ============================================================
   CircleLead — Landing page
   Built on the CircleLead Design System. Glass + spring,
   "slightly bolder than the app": larger type, more whitespace,
   one signature moment (the routing graph). No decorative bg.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }

/* ---- Landing-scale type (bolder than the app's 28px h1) ---- */
:root {
  --ls-disp: -0.03em;
  --fs-display: clamp(2.6rem, 5.6vw, 4.5rem);
  --fs-section: clamp(1.9rem, 3.4vw, 2.85rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.25rem);
  --maxw: 1350px;
  --gutter: 32px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: var(--fs-label); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--ls-label); color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1.5px; background: var(--primary);
  display: inline-block; border-radius: 2px;
}

.section-title {
  font-size: var(--fs-section); font-weight: 700;
  letter-spacing: var(--ls-disp); line-height: 1.08; text-wrap: balance;
}
.section-sub {
  font-size: var(--fs-lead); color: var(--text-secondary);
  max-width: 56ch; margin-top: 16px; text-wrap: pretty;
}

/* ---- Buttons (DS recipe, scaled up slightly) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer;
  position: relative; isolation: isolate; white-space: nowrap;
  transition: transform .3s var(--easing-spring), filter .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0) 55%);
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(180deg, #2A78C2 0%, var(--primary) 55%, #134e8a 100%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.18),
    0 2px 4px rgba(12,68,124,0.18), 0 6px 16px color-mix(in srgb, var(--primary) 32%, transparent);
}
.btn--ghost {
  background: color-mix(in srgb, var(--bg-surface) 38%, transparent); color: var(--text-primary);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--bg-surface) 55%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bg-surface) 85%, transparent),
    inset 0 -1px 0 rgba(0,0,0,0.06), 0 1px 2px rgba(15,17,23,0.06), 0 4px 12px rgba(15,17,23,0.10);
}
.btn--ghost::before { background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.10) 45%, rgba(255,255,255,0) 55%); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn--link { background: none; box-shadow: none; padding: 13px 14px; color: var(--text-secondary); }
.btn--link::before { display: none; }
.btn--link:hover { color: var(--text-primary); transform: none; }

/* ---- Glass material helpers ---- */
.glass {
  background: color-mix(in srgb, var(--bg-surface) 75%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: var(--fs-meta); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-badge);
}
.badge--success { background: var(--success-light); color: var(--success); }
.badge--warning { background: var(--warning-light); color: var(--warning); }
.badge--primary { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; height: 76px;
  background: color-mix(in srgb, var(--bg-surface) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
  transition: background .3s ease, border-color .3s ease;
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__brand { height: 56px; display: flex; align-items: center; }
.nav__brand img { height: 100%; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__links a { padding: 8px 14px; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all .2s ease; }
.nav__links a:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.locale-pill { display: flex; background: color-mix(in srgb, var(--bg-surface-hover) 80%, transparent); border-radius: 8px; padding: 2px; gap: 2px; }
.locale-pill__option { padding: 5px 11px; font-size: var(--fs-meta); font-weight: 600; border: none; border-radius: 6px; cursor: pointer; background: transparent; color: var(--text-muted); transition: all .3s var(--easing-spring); letter-spacing: .02em; }
.locale-pill__option:hover { color: var(--text-primary); }
.locale-pill__option.is-active { background: color-mix(in srgb, var(--bg-surface) 92%, transparent); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 50%; color: var(--text-secondary); cursor: pointer; transition: all .2s ease; }
.icon-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.nav__menu-btn { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: none; color: var(--text-primary); cursor: pointer; border-radius: var(--radius-sm); }
.nav__menu-btn:hover { background: var(--bg-surface-hover); }

/* Accessibility */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 132px 0 84px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero__eyebrow { margin-bottom: 22px; }
.hero__title { font-size: var(--fs-display); font-weight: 700; letter-spacing: var(--ls-disp); line-height: 1.02; text-wrap: balance; }
.hero__title .accent { color: var(--primary); }
.hero__lead { font-size: var(--fs-lead); color: var(--text-secondary); margin-top: 24px; max-width: 48ch; text-wrap: pretty; }
.hero__cta { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.82rem; }
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-hover); }
.hero__trust b { color: var(--text-secondary); font-weight: 600; }

/* ---- Signature moment: routing graph ---- */
.routing {
  position: relative; width: 100%; aspect-ratio: 1 / 0.92; min-height: 470px;
  padding: 26px; border-radius: 18px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 40%),
    radial-gradient(80% 80% at 100% 0%, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 55%),
    color-mix(in srgb, var(--bg-surface) 58%, transparent);
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid color-mix(in srgb, var(--bg-surface) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-lg);
  overflow: hidden;
}
.routing__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.routing__head .label { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-secondary); }
.routing__live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-badge); color: var(--success); }
.routing__live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); animation: livePulse 1.8s var(--easing-out) infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.routing__stage { position: relative; width: 100%; height: calc(100% - 86px); min-height: 360px; }
.hero__media { min-width: 0; }
.routing__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.routing__edge { fill: none; stroke: color-mix(in srgb, var(--border-hover) 80%, transparent); stroke-width: 2; stroke-dasharray: 5 7; stroke-linecap: round; }
.routing__edge.is-hot { stroke: var(--primary); stroke-dasharray: none; opacity: .9; transition: stroke .3s ease; }

.node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; }
.node--source { transform: translate(0, -50%); align-items: flex-start; }
.node--partner { transform: translate(-100%, -50%); align-items: flex-end; }
.node__chip {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: var(--shadow); white-space: nowrap; transition: all .3s var(--easing-spring);
}
.node__avatar { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #fff; flex: none; }
.node__name { font-size: 0.8rem; font-weight: 600; }
.node__role { font-size: var(--fs-meta); color: var(--text-muted); margin-top: 1px; }
.node--partner.is-matched .node__chip { border-color: var(--success); box-shadow: 0 0 0 3px var(--success-light), var(--shadow-md); transform: translateY(-2px); }
.node--hub .hub__disc {
  width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg-surface) 80%, transparent); padding: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-md); transition: transform .4s var(--easing-spring);
}
.node--hub.is-pinging .hub__disc { transform: scale(1.07); }
.node--hub .hub__disc img { width: 100%; height: 100%; }
.node--hub .hub__symbol { width: 100%; height: 100%; display: block; overflow: visible; }
.hub__track { fill: none; stroke: color-mix(in srgb, var(--border-hover) 70%, transparent); stroke-width: 3; }
.hub__ring { fill: none; stroke: url(#hubGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 86 64; transform-origin: center; animation: hubSpin 7s linear infinite; }
.hub__orbit { transform-origin: center; animation: hubSpin 18s linear infinite; }
.hub__node { fill: var(--bg-surface); stroke: var(--primary); stroke-width: 3; }
.hub__core { fill: url(#hubGrad); }
@keyframes hubSpin { to { transform: rotate(360deg); } }
.node--hub.is-pinging .hub__core { animation: hubCorePing .4s var(--easing-spring); }
@keyframes hubCorePing { 50% { transform: scale(1.35); transform-origin: center; } }
.node--hub .hub__caption { font-size: var(--fs-meta); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-badge); color: var(--text-secondary); }

/* traveling lead packet */
.packet {
  position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent), 0 2px 6px rgba(0,0,0,.2);
  opacity: 0; transform: translate(-50%, -50%);
}
.packet.is-cash { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent), 0 2px 6px rgba(0,0,0,.2); }

/* commission burst */
.commission {
  position: absolute; transform: translate(-50%, -50%) scale(.7); opacity: 0;
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #4CC8A1 0%, var(--success) 60%, #1d9c75 100%); color: #fff;
  font-size: 0.82rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 16px color-mix(in srgb, var(--success) 36%, transparent);
}
.commission.is-show { animation: commissionPop .6s var(--easing-spring) forwards; }
@keyframes commissionPop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 55% { opacity: 1; transform: translate(-50%, -70%) scale(1.06); } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }

/* lead card visual */
.node--source .node__chip { border-color: color-mix(in srgb, var(--warning) 55%, var(--border)); }

/* ============================================================
   MARQUEE / trust band
   ============================================================ */
.logos { padding: 18px 0 8px; }
.logos__label { text-align: center; font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); margin-bottom: 22px; }
.logos__row { display: flex; align-items: center; justify-content: center; gap: 18px 40px; flex-wrap: wrap; }
.logo-ph {
  display: inline-flex; align-items: center; gap: 9px; color: var(--text-muted);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; opacity: .8;
}
.logo-ph__mark { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-surface-hover); border: 1px solid var(--border); }
.replace-hint { display: block; text-align: center; margin-top: 14px; font-size: var(--fs-meta); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--ls-badge); }

/* ============================================================
   SECTION shell
   ============================================================ */
.section { padding: 84px 0; }
.section__head { max-width: 62ch; }
.section__head--center { margin: 0 auto; text-align: center; }
.section__head--center .section-sub { margin-left: auto; margin-right: auto; }

/* ---- How it works (3 step) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; counter-reset: step; }
.step { padding: 28px; position: relative; }
.step__num {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 0.95rem; margin-bottom: 18px;
}
.step__icon { color: var(--primary); margin-bottom: 16px; }
.step h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { color: var(--text-secondary); font-size: 0.95rem; margin-top: 8px; text-wrap: pretty; }
.step__connector { position: absolute; top: 47px; right: -10px; color: var(--border-hover); }

/* ---- Product showcase ---- */
.showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; margin-top: 52px; }
.showcase--flip { direction: rtl; }
.showcase--flip > * { direction: ltr; }
.showcase__copy .feat-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.feat-list .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--success-light); color: var(--success); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.feat-list b { font-weight: 600; }
.feat-list span { color: var(--text-secondary); font-size: 0.92rem; }

/* App mock frame */
.appframe {
  border-radius: 14px; padding: 14px;
  background: color-mix(in srgb, var(--bg-surface) 55%, transparent);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--bg-surface) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), var(--shadow-lg);
}
.appframe__bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 12px; }
.appframe__bar .d { width: 10px; height: 10px; border-radius: 50%; background: var(--border-hover); }
.appframe__bar .t { margin-left: 10px; font-size: var(--fs-meta); color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-badge); }
.appsurface { background: var(--bg-body); border-radius: 10px; padding: 18px; border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }

/* mini stat cards inside mock */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stat { position: relative; border-radius: var(--radius); padding: 14px; overflow: hidden;
  background: radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 38%), color-mix(in srgb, var(--bg-surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg-surface) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), var(--shadow); }
.mini-stat__v { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
.mini-stat__l { font-size: var(--fs-meta); color: var(--text-secondary); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 600; margin-top: 2px; }
.mini-stat__v.is-money { color: var(--success); }

/* mini leads list inside mock */
.mini-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-surface) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.mini-row__main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-row__av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.7rem; font-weight: 700; }
.mini-row__name { font-size: 0.85rem; font-weight: 600; }
.mini-row__meta { font-size: var(--fs-meta); color: var(--text-muted); }

/* ---- Features grid ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.feature { padding: 26px; }
.feature__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em; }
.feature p { color: var(--text-secondary); font-size: 0.92rem; margin-top: 8px; text-wrap: pretty; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; align-items: stretch; }
.tier { padding: 30px 26px; display: flex; flex-direction: column; }
.tier--featured { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent), var(--shadow-lg); position: relative; }
.tier__flag { position: absolute; top: -11px; left: 26px; }
.tier__name { font-size: 1.05rem; font-weight: 600; }
.tier__price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 4px; }
.tier__price .amt { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; }
.tier__price .per { color: var(--text-muted); font-size: 0.9rem; }
.tier__desc { color: var(--text-secondary); font-size: 0.9rem; min-height: 40px; }
.tier__feats { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.tier__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-secondary); }
.tier__feats .tick { color: var(--success); flex: none; margin-top: 2px; }
.pricing__note { text-align: center; margin-top: 22px; font-size: var(--fs-meta); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--ls-badge); }

/* ---- Final CTA ---- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 20px; padding: 64px 56px; text-align: center;
  background:
    radial-gradient(110% 140% at 0% 0%, color-mix(in srgb, var(--primary) 18%, transparent) 0%, transparent 50%),
    radial-gradient(110% 140% at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 50%),
    color-mix(in srgb, var(--bg-surface) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--bg-surface) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), var(--shadow-lg);
}
.cta-band h2 { font-size: var(--fs-section); font-weight: 700; letter-spacing: var(--ls-disp); line-height: 1.05; text-wrap: balance; }
.cta-band p { color: var(--text-secondary); font-size: var(--fs-lead); margin: 16px auto 30px; max-width: 50ch; }
.cta-band__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { padding: 64px 0 40px; border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__brand img { height: 150px; width: auto; margin-bottom: 14px; }
.footer__brand p { color: var(--text-secondary); font-size: 0.88rem; max-width: 30ch; }
.footer__col h4 { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.footer__col a { display: block; color: var(--text-secondary); font-size: 0.9rem; padding: 5px 0; transition: color .2s ease; }
.footer__col a:hover { color: var(--text-primary); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); color: var(--text-muted); font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .routing { max-width: 520px; margin: 0 auto; }
  .steps, .features, .pricing { grid-template-columns: 1fr; }
  .step__connector { display: none; }
  .showcase, .showcase--flip { grid-template-columns: 1fr; direction: ltr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg-surface);
    padding: 16px var(--gutter); gap: 4px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open a { padding: 12px 0; width: 100%; }
  .nav { position: relative; }
  .routing__stage { min-height: 200px; }
  .node__chip { font-size: 0.75rem; padding: 6px 10px; }
  .node__name { font-size: 0.72rem; }
  .node__role { font-size: 0.62rem; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .nav__actions .nav__hide-sm { display: none; }
  .cta-band { padding: 44px 26px; }
  .routing { max-width: 100%; }
  .node--partner .node__chip { max-width: 120px; overflow: hidden; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
