/* ==========================================================================
   Display headings (shared big Poppins headlines)
   ========================================================================== */
.display-title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); }
.display-title span { display: block; }
.display-title--center { text-align: center; }
.d-white { color: var(--c-text); }
.d-blue  { color: var(--c-primary-bright); }
.d-sky   { color: var(--c-sky); }
.d-dim   { color: var(--c-heading-muted); }

.watermark { font-family: var(--font-display); font-weight: var(--fw-extrabold); letter-spacing: var(--ls-watermark); color: var(--c-watermark); user-select: none; pointer-events: none; line-height: var(--lh-display); }
.watermark--center { position: absolute; left: 50%; top: 0; z-index: 0; transform: translateX(-50%); font-size: clamp(6rem, 22vw, 20rem); white-space: nowrap; }

/* ==========================================================================
   GRAIN / NOISE — applied to dark sections (visible only when zoomed in)
   ========================================================================== */
.section--navy, .connection, .hero--home { position: relative; }
.section--navy > .container, .connection > .container { position: relative; z-index: 2; }
.section--navy::after,
.connection::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--noise); background-size: var(--noise-size-section) var(--noise-size-section);
  opacity: var(--opacity-noise-section); mix-blend-mode: overlay;
}

.pill { display: inline-block; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: .85rem; color: var(--c-pill-text); background: color-mix(in srgb, var(--c-primary) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c-sky) 35%, transparent); padding: .45rem 1.1rem; border-radius: var(--r-pill); }
.lead--center { text-align: center; max-width: 70ch; margin-inline: auto; }

/* ==========================================================================
   HERO (home)
   ========================================================================== */
/* Base fades into the navy sections at the bottom so Hero -> Intro is seamless (one canvas). */
.hero--home { position: relative; text-align: center; padding-block: var(--hero-y); overflow: hidden; background: var(--gradient-hero-home); }

/* Layer 1 — #000 particle noise texture (8-12% opacity) */
.hero--home::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--noise); background-size: var(--noise-size) var(--noise-size);
  opacity: var(--opacity-noise-hero); mix-blend-mode: overlay;
}

/* Layer 2 — horizontal energy beam (exported Figma asset).
   `screen` blend drops the asset's dark base so only the beam + glow show,
   blending seamlessly into the near-black hero background. */
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../images/hero-beam.png");
  background-repeat: no-repeat;
  background-position: center 50%;
  background-size: 100% auto;
  mix-blend-mode: screen;
}
.hero__bg::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
/* Converging tunnel lines along the lower hero (exported Figma asset) */
.hero__bg::before {
  background-image: url("../images/hero-lines.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}
.hero--home .hero__inner { position: relative; z-index: 1; max-width: 1040px; }
.hero__title { font-size: var(--fs-hero); line-height: 1.04; margin-bottom: 1.5rem; }
.hero__title-1 { display: block; color: var(--c-text); }
.hero__title-2 { display: block; color: var(--c-heading-muted); }
.hero__subtitle { max-width: 64ch; margin: 0 auto 2.25rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { text-align: center; padding-block: clamp(3rem, 6vw, 6rem); }
.intro__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.4; margin-inline: auto; color: var(--c-text); }

/* ==========================================================================
   ALL IN ONE / device showcase
   ========================================================================== */
.platform-showcase { text-align: center; padding-bottom: 0; overflow-x: clip; }
.platform-showcase .display-title { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.platform-showcase__cta { margin: 2rem 0 3rem; }
.platform-showcase__device { position: relative; max-width: 1180px; margin: 0 auto; padding-top: 4.5rem; }
.device-img { width: 100%; height: auto; border-radius: var(--r-md); display: block; position: relative; z-index: 1; }
/* Biased slightly left so "BiTo" bleeds off the left edge while the full word
   "Fintech" stays readable; clipping happens at the section (viewport) edge. */
.platform-showcase__device .watermark--center { top: 0; z-index: 0; font-size: clamp(4.5rem, 16vw, 14rem); transform: translateX(-54%); }

/* ==========================================================================
   BUILT FOR
   ========================================================================== */
/* Connectors begin immediately beneath the laptop; "Built For" watermark sits
   directly behind the upper connector legs (no separate vertical regions). */
.built-for { text-align: center; padding-block: clamp(.5rem, 2vw, 1.5rem) clamp(3rem, 7vw, 6rem); overflow-x: clip; }
.built-for .container { position: relative; }
.built-for__diagram { position: relative; z-index: 1; width: min(960px, 96%); margin: 0 auto; aspect-ratio: 1000 / 660; }
/* Watermark behind the connector structure, slightly more visible than other watermarks */
.built-for__wm {
  position: absolute; left: 50%; top: 15%; transform: translate(-50%, -50%); z-index: 0;
  font-size: clamp(5rem, 19vw, 17rem); white-space: nowrap;
  color: var(--c-watermark-strong);
}
.built-for__tracks {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%);
}
.built-for__list { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; }
.built-for__item {
  position: absolute; left: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; color: var(--c-sky);
  font-size: clamp(1.05rem, 2.6vw, 2.1rem);
}
.built-for__item.built-for__item--0 { top: 24.2%; }
.built-for__item.built-for__item--1 { top: 57.6%; }
.built-for__item.built-for__item--2 { top: 90.9%; }

/* ==========================================================================
   SOFTWARE (stats + text + device)
   ========================================================================== */
.software { overflow: visible; padding-bottom: clamp(2rem, 4vw, 3rem); }
.software .stats { margin-bottom: clamp(3rem, 7vw, 7rem); }
.software__row { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.software__text .display-title { font-size: clamp(2.4rem, 5vw, 4.5rem); margin-bottom: 1.75rem; }
.software__text .lead { max-width: 42ch; }

/* Stage: laptop (base layer) + floating dashboard cards (front layer) that
   bridge down across the section boundary into Key Features. */
.software__device { position: relative; z-index: 2; }
.software__laptop {
  display: block; position: relative; z-index: 1;
  width: 116%; max-width: none; height: auto;
  margin-left: -8%;
  margin-bottom: clamp(-11rem, -13vw, -6rem); /* pulls section bottom up -> laptop overflows into next section */
  filter: drop-shadow(var(--shadow-laptop));
}
.software__card {
  position: absolute; z-index: 3; height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card-float);
}
/* Trades allocation — left, slightly higher */
.software__card--1 { width: 41%; left: -7%; top: 60%; z-index: 4; }
/* Strategy performance — center, lowest (front-most depth) */
.software__card--2 { width: 39%; left: 31%; top: 75%; z-index: 5; }
/* Market dashboard — right, mid */
.software__card--3 { width: 45%; right: -8%; top: 63%; z-index: 4; }

/* ==========================================================================
   KEY FEATURES
   ========================================================================== */
.key-features__title { font-size: var(--fs-h3); margin-bottom: clamp(2.5rem, 5vw, 4rem); color: var(--c-text-on-light); }

/* ==========================================================================
   CONNECTION (one platform / every connection)
   ========================================================================== */
.connection { background: var(--c-bg-navy); overflow: hidden; }
/* Atmospheric ambient lighting (corners + sides) */
.connection::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--gradient-connection-ambient);
  background-repeat: no-repeat;
  background-size: 46% 52%, 46% 52%, 50% 54%, 50% 54%;
  background-position: -8% -12%, 108% -8%, -10% 110%, 110% 112%;
  filter: blur(var(--blur-xl));
}
.connection__inner { position: relative; z-index: 2; text-align: center; min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 5rem;}
.connection__inner > .eyebrow { position: absolute; top: 5%; left: 50%; transform: translateX(-50%); margin: 0; }
.connection__title { font-size: clamp(2.6rem, 6vw, 5rem); margin: 1rem 0 2rem; position: relative; z-index: 2; }
.connection__nodes { position: absolute; inset: 0; pointer-events: none; }
.conn-node {
  position: absolute; display: grid; place-items: center; text-align: center;
  border-radius: 50%; font-family: var(--font-display); font-weight: 600; font-size: .8rem; line-height: 1.15;
  width: 100px; height: 100px; padding: .5rem; color: var(--c-text);
  border: 1px solid var(--c-border-node);
  box-shadow: var(--shadow-node), inset 0 0 18px var(--c-glow-node-inset);
  background: var(--c-overlay-dark); backdrop-filter: blur(var(--blur-sm));
  animation: conn-float 7s var(--ease) infinite;
}
.conn-node--filled { background: var(--c-primary); border-color: var(--c-primary); box-shadow: var(--shadow-node-filled); }
/* Node size hierarchy: Liquidity (largest) -> CFD (second) -> rest */
.conn-node.n0 { width: 148px; height: 148px; font-size: .95rem; left: 18%; top: 22%; transform: translate(-50%, -50%); animation-delay: -.5s; }
.conn-node.n1 { width: 124px; height: 124px; font-size: .85rem; left: 50%; top: 27%; transform: translate(-50%, -50%); animation-delay: -2s; }
.conn-node.n2 { left: 82%; top: 24%; transform: translate(-50%, -50%); animation-delay: -3.5s; }
.conn-node.n3 { left: 16%; bottom: 16%; animation-delay: -1.2s; }
.conn-node.n4 { right: 16%; bottom: 16%; animation-delay: -4.6s; }
@keyframes conn-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.conn-node.n0, .conn-node.n1, .conn-node.n2 { animation-name: conn-float-c; }
@keyframes conn-float-c { 0%, 100% { transform: translate(-50%, -50%) translateY(0); } 50% { transform: translate(-50%, -50%) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .conn-node { animation: none; } }
.connection__cta { position: relative; z-index: 2; }

/* ==========================================================================
   AUDIENCE
   ========================================================================== */
.audience .display-title { font-size: clamp(2.4rem, 5vw, 4.25rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.audience-card__icon { width: 52px; height: 52px; color: var(--c-primary-bright); margin-bottom: 1.25rem; }
.audience-card__eyebrow { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-dim); margin-bottom: .6rem; }
.audience-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; margin-bottom: 1.25rem; }
.audience-card__desc { color: var(--c-text-muted); font-size: var(--fs-sm); margin-bottom: 1.5rem; }

/* ==========================================================================
   STEPS (timeline)
   ========================================================================== */
.steps { overflow: hidden; }
/* Perspective grid + ambient orb (exported Figma asset), anchored bottom-left */
.steps::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../images/steps-grid.png") no-repeat left bottom;
  background-size: auto 108%;
}
.steps__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.steps__intro { position: sticky; top: 120px; }
.steps__intro .pill { margin-bottom: 1.5rem; }
.steps__intro .display-title { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
.steps__timeline .timeline { max-width: none; margin: 0; }

/* ==========================================================================
   PARTNERS hub
   ========================================================================== */
.partners__head { text-align: center; max-width: 760px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.partners__head .pill { margin-bottom: 1.5rem; }
.partners__head .display-title { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1.5rem; }
/* Provider network (exported Figma asset): central orb + logos + connectors */
.partners__hub { position: relative; max-width: 1024px; margin: 0 auto; }
.partners__network { display: block; width: 100%; height: auto; }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
/* About hero — dark centre with left/right blue glows + subtle noise (Figma) */
.hero--about { position: relative; overflow: hidden; text-align: center; padding-block: clamp(3rem, 6vw, 5.5rem); background: var(--c-bg-hero); }
.hero--about::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--gradient-hero-about);
}
.hero--about::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--noise); background-size: var(--noise-size) var(--noise-size); opacity: var(--opacity-noise-about); mix-blend-mode: overlay;
}
.hero-about { position: relative; z-index: 1; }
.hero-about .display-title { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.04; margin-bottom: 1.25rem; }
.hero-about .lead--center { max-width: 60ch; }
.about-block__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-block__text .pill { margin-bottom: 1.5rem; }
.about-block__text .display-title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.5rem; }
.about-block__text .lead { margin-bottom: 1.25rem; max-width: 52ch; }
.about-block__img img { border-radius: var(--r-xl); width: 100%; }

.values__head { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.values__head .pill { margin-bottom: 1.25rem; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card { background: var(--c-card-dark); border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: 2rem; }
.value-card__icon { width: 52px; height: 52px; margin-bottom: 1.25rem; color: var(--c-sky); }
.value-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: .75rem; }
.value-card__desc { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* Header — true two columns: left = badge + heading, right = description (top) */
.roadmap__head { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.roadmap__head .pill { margin-bottom: 1.1rem; }
.roadmap__head .display-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; }
.roadmap__head .lead { font-size: var(--fs-sm); line-height: 1.65; color: var(--c-text-muted); max-width: 42ch; margin-top: 3.4rem; }

/* Grid — staggered cascading layout: each row col1 highest, col2 lower, col3 lowest */
.roadmap__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.roadmap-item:nth-child(3n+2) { margin-top: clamp(2.5rem, 5vw, 5rem); }
.roadmap-item:nth-child(3n)   { margin-top: clamp(5rem, 10vw, 10rem); }
.roadmap-item__year { font-family: var(--font-display); font-size: clamp(2.25rem, 3.4vw, 3.25rem); font-weight: 700; line-height: 1; margin-bottom: .6rem; }
.roadmap-item__year span { color: var(--c-sky); font-weight: 400; }
.roadmap-item__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin-bottom: .85rem; }
.roadmap-item__intro, .roadmap-item__detail { color: var(--c-text-muted); font-size: var(--fs-sm); margin-bottom: .8rem; line-height: 1.6; }
.roadmap-item__detail:last-child { margin-bottom: 0; }

/* CTA — large horizon-style blue glow arcing from the top edge (Figma) */
.cta-band { position: relative; overflow: hidden; background: var(--c-bg-deep); }
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%);
  width: 150%; height: 150%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: var(--gradient-cta-band);
  filter: blur(var(--blur-lg));
}
.cta-band .cta { position: relative; z-index: 1; }

/* ==========================================================================
   PLATFORM PAGES
   ========================================================================== */
.hero--platform { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--c-bg-navy); }
.hero-platform__eyebrow { display: block; color: var(--c-text-muted); font-size: var(--fs-h4); margin-bottom: 1rem; }
.hero-platform__title { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.05; margin-bottom: 2rem; }
.hero-platform__title-1,
.hero-platform__title-2 { display: block; }
.hero-platform__title-accent { display: inline; }
/* Default (Liquidity Bridge): trailing line after the cyan accent word */
.hero-platform__title-accent::after { content: ""; display: inline-block; width: clamp(80px, 20vw, 280px); height: 2px; background: var(--c-rule); vertical-align: middle; margin-left: 1rem; }

/* Trading Engine: underline the headline (matches Figma underline treatment) */
.page-trading-engine .hero-platform__title-1,
.page-trading-engine .hero-platform__title-accent { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.page-trading-engine .hero-platform__title-accent::after { display: none; }
/* Desktop Figma parity: the row-1 underline must stop before the final word
   ("Every"). Underline only the leading phrase span; the last word stays plain.
   Mobile keeps the full-row underline (rule above). */
@media (min-width: 769px) {
  .page-trading-engine .hero-platform__title-1 { text-decoration: none; }
  .page-trading-engine .hero-platform__title-uline { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
}

/* Smart Invest & Risk: trailing line after the first phrase, not the accent */
.page-smart-invest .hero-platform__title-accent::after,
.page-risk .hero-platform__title-accent::after { display: none; }
.page-smart-invest .hero-platform__title-1::after,
.page-risk .hero-platform__title-1::after { content: ""; display: inline-block; width: clamp(70px, 14vw, 220px); height: 2px; background: var(--c-rule); vertical-align: middle; margin-left: 1rem; }
.hero-platform__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero-platform__desc { max-width: 52ch; margin: 0; }
/* Section label: stronger presence so it reads as a section heading, not a caption
   (Figma parity — tightens the size jump to the section title below). */
.platform-highlights .eyebrow { margin-bottom: .85rem; color: var(--c-sky); font-size: var(--fs-h4); letter-spacing: var(--ls-label-sm); }
.platform-highlights__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 3rem; color: var(--c-text); }
.platform-highlights .highlights { gap: clamp(1.5rem, 5vw, 5rem); }

/* ---- Flow: laptop -> fan connector -> dotted line -> stacked cards ---- */
.pf-flow { background: var(--c-bg-navy); padding-top: clamp(2rem, 4vw, 3rem); overflow: hidden; }
.pf-flow__device { max-width: 1000px; margin: 0 auto; }
.pf-flow__img { width: 100%; display: block; }
.pf-flow__fan { max-width: 760px; margin: -1.5% auto 0; line-height: 0; }
.flow-fan { width: 100%; height: auto; display: block; filter: var(--glow-cyan-drop); }

.pf-cards { position: relative; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1.5rem; }
.pf-cards::before { content: ""; position: absolute; top: -1.5rem; bottom: 6rem; left: 50%; width: 2px; transform: translateX(-50%); background: var(--gradient-pf-line); z-index: 0; }
.pf-card {
  position: relative; z-index: 1; background: var(--c-card-light); border-radius: var(--r-lg);
  display: grid; grid-template-columns: var(--icon-md) 1fr; gap: var(--grid-gap); align-items: start;
  padding: var(--card-pad-lg); box-shadow: var(--shadow-card-platform);
}
.pf-card__node { position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--c-cyan-line); transform: translate(-50%, -50%); box-shadow: var(--shadow-connector-node); }
/* Icon glyphs carry ~19% internal top padding inside their 48-unit viewBox, so a
   flush-top box reads visually lower than the label beside it. Lift the icon onto
   the label/title optical axis (Figma parity). */
.pf-card__icon { width: 52px; height: 52px; margin-top: -.4rem; }
.pf-card__icon svg { width: 100%; height: 100%; }
.pf-card__label { display: block; font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: .8rem; letter-spacing: var(--ls-track); color: var(--c-text-on-light-muted); margin-bottom: .4rem; }
.pf-card__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.35rem; color: var(--c-cyan-line); margin-bottom: .7rem; line-height: 1.2; }
.pf-card__desc { color: var(--c-text-on-light-muted); font-size: .95rem; line-height: var(--lh-body); }

/* ==========================================================================
   ANALYTICS PAGE
   ========================================================================== */
/* Analytics page — uses canonical navy from design tokens */
.hero--analytics { position: relative; background: var(--c-bg-navy); padding-block: var(--hero-y-sm) clamp(3rem, 6vw, 5rem); text-align: center; overflow: hidden; }
.an-hero { position: relative; z-index: 1; }
.an-hero__wm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; user-select: none; width: max-content; display: flex; flex-direction: column; gap: clamp(.5rem, 2.5vw, 2rem); }
.an-hero__wm span { display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; line-height: .9; white-space: nowrap; font-size: clamp(7rem, 17vw, 17rem); color: var(--c-watermark); }
.an-hero__title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.08; }
.an-hero__title .an-hero__line, .an-hero__title-2 { display: block; }
.an-hero__device { position: relative; z-index: 1; max-width: 1180px; margin: clamp(-3rem, -4vw, -1.5rem) auto 0; }
.an-hero__img { width: 100%; position: relative; z-index: 1; }
.an-hero__subtitle { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--c-text); margin-top: 1.5rem; }
.an-hero__cta { position: relative; z-index: 1; margin-top: 1.75rem; }

.an-features__inner { position: relative; max-width: var(--container-analytics); }
.an-features__glow { position: absolute; z-index: 0; pointer-events: none; top: clamp(2rem, 6.5vw, 5.5rem); right: clamp(1rem, 6vw, 6rem); width: min(50%, 560px); height: clamp(100px, 13vw, 180px); filter: blur(var(--blur-md)); background: var(--glow-particles); }
.an-features__title { position: relative; z-index: 1; font-size: var(--fs-hero-lg); line-height: var(--lh-tight); letter-spacing: var(--ls-display); margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.an-features__title span { display: block; }
.an-features__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.an-feature { background: var(--c-card-light); border-radius: var(--r-lg); padding: var(--card-pad); box-shadow: var(--shadow-card-light); }
.an-feature__icon { width: var(--icon-md); height: var(--icon-md); margin-bottom: var(--grid-gap); }
.an-feature__icon svg { width: 100%; height: 100%; }
.an-feature__title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-card-title); color: var(--c-text-on-light); margin-bottom: .85rem; }
.an-feature__desc { color: var(--c-text-on-light-muted); font-size: var(--fs-card-desc); margin-bottom: var(--grid-gap); line-height: var(--lh-body); }
.an-feature__more { color: var(--c-text-on-light); }

/* How BiTo Works — staggered boxes + SVG elbow connectors (coords measured from Figma, 1024x605 frame) */
.an-how { text-align: center; }
.an-how .display-title { margin-bottom: .6rem; }
.an-how .lead { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.how-flow { position: relative; max-width: var(--container-diagram); margin: 0 auto; aspect-ratio: 1024 / 605; }
.how-flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.how-box { position: absolute; width: 33.7%; padding: 1.4rem 1.6rem; border-radius: var(--r-md); text-align: left; z-index: 1; }
.how-box--blue { background: var(--c-primary); color: var(--c-text); }
.how-box--cyan { background: var(--c-cyan); color: var(--c-text-on-light); }
.how-box__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.05rem, 1.7vw, 1.45rem); margin-bottom: .55rem; line-height: 1.18; }
.how-box__desc { font-size: clamp(.72rem, 1vw, .82rem); line-height: var(--lh-body); opacity: var(--opacity-card-desc); }
.how-box--cyan .how-box__desc { opacity: var(--opacity-card-desc-cyan); }
/* item 0 ITI (blue), 1 Market Neutral (cyan), 2 Reserve (cyan), 3 AI (blue) */
.how-box--0 { left: 8.0%;  top: 24.0%;  min-height: 26.8%; }
.how-box--1 { left: 11.6%; top: 66.45%; min-height: 22.15%; }
.how-box--2 { left: 57.5%; top: 2.48%;  min-height: 26.8%; }
.how-box--3 { left: 53.8%; top: 45.95%; min-height: 25.12%; }

.an-api .eyebrow { color: var(--c-sky); margin-bottom: .6rem; font-size: clamp(1rem, 1.4vw, 1.15rem); letter-spacing: var(--ls-label-sm); }
.an-api__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--c-text); margin-bottom: 2.5rem; }
.an-api__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
.an-api-card { background: var(--c-card-light); border-radius: var(--r-lg); padding: var(--card-pad-sm); display: grid; grid-template-columns: var(--icon-sm) 1fr; gap: 1.25rem; align-items: start; }
.an-api-card__icon { width: var(--icon-sm); height: var(--icon-sm); }
.an-api-card__icon svg { width: 100%; height: 100%; }
.an-api-card__title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.1rem; color: var(--c-text-on-light); margin-bottom: var(--space-2); line-height: 1.25; }
.an-api-card__desc { font-size: var(--fs-card-desc); color: var(--c-text-on-light-muted); line-height: 1.55; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-page { position: relative; min-height: 60vh; padding-block: clamp(4rem, 8vw, 7rem); }
.contact-page__bg {
  position: absolute; inset: 0;
  background: var(--gradient-contact-bg);
}
.contact-page__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-page__left .eyebrow { margin-bottom: 1rem; }
.contact-page__left .display-title { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1rem; }
.contact-page__right p { color: var(--c-text-muted); margin-bottom: 1.25rem; max-width: 42ch; }
.contact-emails { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.contact-emails li { display: flex; align-items: center; gap: 1rem; }
.contact-emails a { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; transition: color var(--t-fast); }
.contact-emails a:hover { color: var(--c-sky); }

/* ==========================================================================
   404 / ERROR PAGE
   ========================================================================== */
.error-404 { position: relative; overflow: hidden; text-align: center; background: var(--c-bg-hero); padding-block: clamp(5rem, 12vw, 10rem); display: flex; align-items: center; min-height: 70vh; }
.error-404__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--gradient-hero-about); }
.error-404__inner { position: relative; z-index: 1; }
.error-404__code { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: clamp(6rem, 22vw, 16rem); line-height: var(--lh-display); letter-spacing: var(--ls-watermark); color: var(--c-watermark-strong); margin-bottom: clamp(-1rem, -2vw, -.5rem); }
.error-404__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h2); line-height: var(--lh-snug); color: var(--c-text); margin-bottom: 1rem; }
.error-404__subtitle { max-width: 52ch; margin: 0 auto 2.25rem; }
.error-404__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   LEGAL PAGES (Privacy Policy / Terms of Use) — verbatim PDF content
   ========================================================================== */
.legal { background: var(--c-bg); }
.legal__container { max-width: var(--container-legal); }
.legal__head { max-width: 70ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal__head .eyebrow { display: block; margin-bottom: 1rem; }
.legal__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); letter-spacing: -.02em; color: var(--c-text); margin-bottom: 1rem; }
.legal__meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--c-text-muted); font-size: var(--fs-sm); }
.legal__org { font-weight: 600; color: var(--c-text); }

.legal__layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* Table of contents — sticky on desktop, clears the sticky navbar */
.legal__toc { position: sticky; top: var(--sticky-nav); align-self: start; }
.legal__toc-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-dim); margin-bottom: 1rem; }
.legal__toc-list { list-style: none; margin: 0; padding: 0; counter-reset: none; display: flex; flex-direction: column; gap: .55rem; border-left: 1px solid var(--c-border); }
.legal__toc-list a { display: block; padding: .15rem 0 .15rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--c-text-muted); font-size: var(--fs-sm); line-height: 1.35; transition: color var(--t-fast), border-color var(--t-fast); }
.legal__toc-list a:hover { color: var(--c-text); border-left-color: var(--c-sky); }

.legal__body { min-width: 0; }
.legal__section { scroll-margin-top: var(--sticky-nav); padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--c-border-soft); }
.legal__section:first-child { border-top: 0; padding-top: 0; }
.legal__h2 { position: relative; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-h3); color: var(--c-text); margin-bottom: 1.1rem; scroll-margin-top: var(--sticky-nav); }
.legal__anchor { position: absolute; left: -1.4rem; top: 0; bottom: 0; width: 1.4rem; opacity: 0; }
.legal__h2:hover .legal__anchor::before { content: "#"; color: var(--c-sky); opacity: .7; }

.legal__p { color: var(--c-text-muted); font-size: var(--fs-body); line-height: 1.75; margin-bottom: 1rem; max-width: 72ch; }
.legal__p:last-child { margin-bottom: 0; }
.legal__subhead { font-family: var(--font-display); font-weight: 600; color: var(--c-text); font-size: 1.0625rem; margin: 1.25rem 0 .65rem; }
.legal__note { color: var(--c-text); font-size: var(--fs-body); line-height: 1.7; margin-bottom: 1rem; max-width: 72ch; padding: 1rem 1.25rem; border-left: 3px solid var(--c-sky); background: var(--c-overlay-sky); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.legal__list { margin: 0 0 1rem; padding: 0; list-style: none; max-width: 72ch; }
.legal__list li { position: relative; color: var(--c-text-muted); font-size: var(--fs-body); line-height: 1.7; padding-left: 1.5rem; margin-bottom: .6rem; }
.legal__list li::before { content: ""; position: absolute; left: .15rem; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-sky); }
.legal__contact { font-style: normal; display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg-navy); max-width: 52ch; }
.legal__contact span { color: var(--c-text-muted); font-size: var(--fs-sm); }
.legal__contact span:first-child { color: var(--c-text); font-weight: 600; font-family: var(--font-display); }

/* ==========================================================================
   LANGUAGE GATEWAY (root /) — standalone full-bleed entry, no navbar/footer.
   Inherits the dark institutional DNA of the Analytics / "Unlock the future" heroes.
   ========================================================================== */
.page-gateway { background: var(--c-bg-hero); }
.gateway {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(2rem, 5vh, 4rem);
  background:
    radial-gradient(58% 64% at 50% -8%, var(--c-glow-primary), var(--c-glow-primary-soft) 36%, transparent 64%),
    radial-gradient(48% 60% at 2% 102%, rgba(46, 107, 240, .14), transparent 56%),
    radial-gradient(48% 60% at 98% 102%, var(--c-overlay-sky), transparent 56%),
    linear-gradient(180deg, var(--c-bg-hero) 0%, var(--c-bg) 52%, var(--c-bg-deep) 100%);
}
/* Grain layer — same recipe as the home hero */
.gateway::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--noise); background-size: var(--noise-size) var(--noise-size);
  opacity: var(--opacity-noise-hero); mix-blend-mode: overlay;
}
/* Low-opacity typography watermark */
.gateway__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.gateway__wm { font-family: var(--font-display); font-weight: var(--fw-extrabold); letter-spacing: var(--ls-watermark); line-height: 1; color: var(--c-watermark); font-size: clamp(12rem, 38vw, 36rem); user-select: none; }

.gateway__inner {
  position: relative; z-index: 1; width: 100%;
  max-width: 900px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(1.5rem, 3.4vh, 2.6rem);
}

/* Top — logo + live status */
.gateway__top { display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap; }
.gateway__top .logo__img { height: 34px; }
.gateway__status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-label-sm); text-transform: uppercase; color: var(--c-text-muted);
  padding: .4rem .85rem; border: 1px solid var(--c-border); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .02);
}
.gateway__status-dot, .gateway__continue .gw-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #38d39f; box-shadow: 0 0 10px rgba(56, 211, 159, .85);
  animation: gw-pulse 2.6s var(--ease) infinite;
}

/* Hero — headline + lede + continue CTA */
.gateway__hero { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.gateway__eyebrow { color: var(--c-heading-muted); letter-spacing: var(--ls-label); }
.gateway__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); }
.gateway__title span { display: block; }
.gateway__subtitle { max-width: 58ch; margin-inline: auto; }
.gateway__continue {
  margin-top: .4rem; color: var(--c-text);
  background: color-mix(in srgb, var(--c-primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-sky) 35%, transparent);
  box-shadow: 0 0 24px rgba(46, 107, 240, .18);
}
.gateway__continue:hover { background: color-mix(in srgb, var(--c-primary) 22%, transparent); border-color: color-mix(in srgb, var(--c-sky) 55%, transparent); box-shadow: var(--glow-blue); }
.gateway__continue svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.gateway__continue:hover svg { transform: translateX(3px); }

/* Language selector grid — generated from LANGUAGES */
.gateway__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; width: 100%; }
.gateway__card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; text-align: left;
  background: var(--c-card-dark); border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.gateway__card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(130% 150% at 0% 0%, var(--c-glow-primary-soft), transparent 58%);
  transition: opacity var(--t) var(--ease);
}
.gateway__card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c-sky) 55%, transparent); box-shadow: var(--glow-blue), var(--shadow-card-dark); }
.gateway__card:hover::before { opacity: 1; }
.gateway__card-name { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.02rem; color: var(--c-text); }
.gateway__card-code { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-label-sm); color: var(--c-text-dim); padding: .25rem .5rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); transition: color var(--t), border-color var(--t), background var(--t); }
.gateway__card:hover .gateway__card-code { color: var(--c-sky); border-color: color-mix(in srgb, var(--c-sky) 40%, transparent); }
.gateway__card.is-active { border-color: color-mix(in srgb, var(--c-sky) 60%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c-primary) 20%, var(--c-card-dark)), var(--c-card-dark)); animation: gw-glow 3.4s var(--ease) infinite; }
.gateway__card.is-active .gateway__card-code { color: var(--c-btn-sky-text); background: var(--c-sky); border-color: transparent; }

/* Bottom — trust indicators + system micro line */
.gateway__foot { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.gateway__trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.6rem; margin: 0; padding: 0; }
.gateway__trust-item { position: relative; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: var(--ls-label-sm); text-transform: uppercase; color: var(--c-text-muted); }
.gateway__trust-item:not(:first-child)::before { content: ""; position: absolute; left: -.85rem; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--c-text-dim); transform: translateY(-50%); }
.gateway__meta { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: var(--ls-label-sm); text-transform: uppercase; color: var(--c-text-dim); }

@keyframes gw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes gw-glow {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-sky) 28%, transparent), 0 0 26px rgba(46, 107, 240, .18); }
  50%      { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-sky) 52%, transparent), 0 0 46px rgba(46, 107, 240, .40); }
}
@media (prefers-reduced-motion: reduce) {
  .gateway__status-dot, .gateway__continue .gw-dot, .gateway__card.is-active { animation: none !important; }
}
