/* ============================================================
   aProger — Backend / Fintech Engineering
   Palette preserved from the original (oklch), redesigned layout.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuI6fAZ9hjp-Ek-_EeAmM.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxjPVmUsaaDhw.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxjPVmUsaaDhw.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Theme tokens (palette preserved) ---------- */
:root,
[data-theme='dark'] {
  --bg: oklch(13% 0.006 260);
  --header-bg: oklch(13% 0.006 260 / 0.72);
  --surface: oklch(17% 0.008 260);
  --surface-alt: oklch(20% 0.009 260);
  --border: oklch(27% 0.01 260);
  --border-2: oklch(34% 0.01 260);
  --text: oklch(96% 0.004 260);
  --text-muted: oklch(70% 0.012 260);
  --text-faint: oklch(50% 0.012 260);
  --accent: oklch(68% 0.17 288);
  --accent-2: oklch(62% 0.07 250);
  --accent-soft: oklch(27% 0.05 288);
  --accent-warm: oklch(70% 0.14 55);
  --accent-up: oklch(72% 0.11 155);
  --accent-down: oklch(68% 0.1 25);
  --on-accent: oklch(15% 0.02 288);
  --code-dim: oklch(19% 0.01 260);
  --terminal-bg: oklch(10% 0.006 260);
  --terminal-text: oklch(75% 0.02 260);
  --shadow: 0 24px 60px -28px oklch(0% 0 0 / 0.7);
  --glow: 0 0 0 1px oklch(68% 0.17 288 / 0.25), 0 20px 60px -24px oklch(68% 0.17 288 / 0.45);
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: oklch(99% 0.002 260);
  --header-bg: oklch(99% 0.002 260 / 0.82);
  --surface: oklch(97% 0.003 260);
  --surface-alt: oklch(95% 0.004 260);
  --border: oklch(90% 0.006 260);
  --border-2: oklch(84% 0.008 260);
  --text: oklch(18% 0.012 260);
  --text-muted: oklch(42% 0.012 260);
  --text-faint: oklch(58% 0.012 260);
  --accent: oklch(48% 0.16 288);
  --accent-2: oklch(50% 0.06 250);
  --accent-soft: oklch(92% 0.03 288);
  --accent-warm: oklch(62% 0.15 55);
  --accent-up: oklch(48% 0.1 155);
  --accent-down: oklch(52% 0.1 25);
  --on-accent: oklch(99% 0.01 288);
  --code-dim: oklch(90% 0.006 260);
  --terminal-bg: oklch(96% 0.004 260);
  --terminal-text: oklch(32% 0.02 260);
  --shadow: 0 24px 60px -30px oklch(50% 0.02 260 / 0.4);
  --glow: 0 0 0 1px oklch(48% 0.16 288 / 0.2), 0 20px 60px -26px oklch(48% 0.16 288 / 0.35);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.accent { color: var(--accent); }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 11px;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px oklch(68% 0.17 288 / 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px oklch(68% 0.17 288 / 0.75); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px clamp(20px, 5vw, 56px);
}
.logo { display: inline-flex; align-items: baseline; gap: 1px; font-size: 19px; }
.logo b { font-weight: 800; }
.logo .mono { font-weight: 700; color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); font-size: 14px; font-weight: 500; }
.nav a:not(.btn) { color: var(--text-muted); position: relative; padding: 4px 0; transition: color .2s ease; }
.nav a:not(.btn)::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.6,.2,.1,1);
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__mobile-hide { display: inline-flex; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: transform .3s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: rotate(-18deg); border-color: var(--accent); }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 9px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: tickerScroll 40s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-faint);
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { white-space: nowrap; }
.up { color: var(--accent-up); }
.down { color: var(--accent-down); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(56px, 8vw, 100px); }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(26px, 3.8vw, 42px); font-weight: 800; margin-bottom: 14px; }
.section__head p { font-size: 16px; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(52px, 9vw, 110px) clamp(40px, 6vw, 72px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.hero__orb--1 { width: 480px; height: 480px; top: -160px; left: -80px; background: radial-gradient(circle, var(--accent), transparent 70%); animation: float1 16s ease-in-out infinite; }
.hero__orb--2 { width: 420px; height: 420px; top: -60px; right: -100px; background: radial-gradient(circle, var(--accent-2), transparent 70%); animation: float2 20s ease-in-out infinite; opacity: 0.35; }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 70%);
  opacity: 0.4;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 440px);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.2s ease-out infinite; }
.hero h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; margin-bottom: 22px; }
.hero__lead { font-size: clamp(16px, 2vw, 18px); color: var(--text-muted); max-width: 560px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Chart card ---------- */
.chart-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}
.chart-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chart-card__label { font-weight: 700; font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.04em; }
.chart-card__live { display: flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); }
.chart-card__live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s step-end infinite; }
.chart-card__value { font-weight: 800; font-size: 28px; margin-bottom: 12px; }
.chart-card__value small { font-size: 13px; font-weight: 600; color: var(--accent-up); }
.chart-card svg { width: 100%; height: 150px; }
.chart-card__legend { display: flex; gap: 16px; margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-faint); }
.chart-card__legend span { display: flex; align-items: center; gap: 5px; }
.chart-card__legend i { width: 10px; height: 2px; display: inline-block; }
.line-draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: drawLine 2.2s ease forwards .3s; }

/* ---------- Cards / grids ---------- */
.card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(22px, 2.8vw, 30px);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--glow); }

.panel {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: clamp(28px, 4vw, 46px);
}

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* scope */
.scope__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin: 30px 0; }
.scope__label { font-size: 13px; font-weight: 700; color: var(--text-faint); letter-spacing: 0.05em; margin-bottom: 14px; }
.scope__item { display: flex; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border); }
.scope__item:first-of-type { border-top: none; }
.scope__item .mark { font-family: 'JetBrains Mono', monospace; font-size: 15px; flex-shrink: 0; }
.scope__item .mark.plus { color: var(--accent); }
.scope__item .mark.minus { color: var(--text-faint); }
.scope__item p { font-size: 14.5px; color: var(--text-muted); }
.quote {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-style: italic;
}
.quote--bar { border-top: none; border-left: 2px solid var(--accent); padding: 2px 0 2px 18px; }

/* diagram */
.diagram { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 30px; background: var(--surface); }
.diagram svg { width: 100%; height: auto; }

/* flow steps (methodology) */
.flow {
  display: flex; flex-wrap: wrap; align-items: center;
  border: 1px solid var(--border); border-radius: 14px;
  padding: clamp(18px, 3vw, 28px); background: var(--surface);
  margin-bottom: 32px;
}
.flow__step { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.flow__node { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 14px; flex: 1; min-width: 120px; }
.flow__node .n {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--accent); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; color: var(--accent);
  animation: pulseNode 4.8s ease-in-out infinite;
}
.flow__node .label { font-size: 13px; font-weight: 700; text-align: center; }
.flow__node .sub { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-faint); }
.flow__arrow { color: var(--border-2); font-size: 20px; padding: 0 4px; }

/* AI section */
.ai { position: relative; overflow: hidden; }
.ai__grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 460px); gap: clamp(28px, 5vw, 56px); align-items: center; }
.ai__cards { display: grid; gap: 14px; margin-top: 30px; }
.ai-card { display: flex; gap: 16px; align-items: flex-start; }
.ai-card__icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent);
}
.ai-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ai-card p { font-size: 14px; color: var(--text-muted); }
.ai__stages {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.ai__stages span {
  padding: 8px 15px; border-radius: 100px; font-size: 13px;
  border: 1px solid var(--border); background: var(--surface-alt); color: var(--text-muted);
}
/* animated agent-orchestration visual */
.agent-viz {
  position: relative;
  border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface); padding: 26px; box-shadow: var(--shadow);
  aspect-ratio: 1 / 0.92;
}
.agent-viz svg { width: 100%; height: 100%; overflow: visible; }
.agent-edge { stroke: var(--border-2); stroke-width: 1.5; fill: none; }
.agent-flow {
  stroke: var(--accent); stroke-width: 2; fill: none;
  stroke-dasharray: 6 10;
  animation: dash 1.4s linear infinite;
}
.agent-core { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.agent-leaf { fill: var(--surface-alt); stroke: var(--border-2); stroke-width: 1.5; }
.agent-pulse { transform-box: fill-box; transform-origin: center; animation: nodePulse 3.4s ease-in-out infinite; }
.agent-viz text { font-family: 'JetBrains Mono', monospace; fill: var(--text-muted); }
.agent-viz .core-text { fill: var(--accent); font-weight: 700; }

/* entries */
.entry { display: flex; flex-direction: column; gap: 14px; }
.entry__num { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--text-faint); }
.entry h3 { font-size: 19px; font-weight: 700; }
.entry__who { font-size: 13.5px; color: var(--text-faint); }
.entry__who b { color: var(--text-muted); }
.entry__desc { font-size: 14px; color: var(--text-muted); flex-grow: 1; }
.entry__hook { font-size: 13.5px; padding-top: 14px; border-top: 1px solid var(--border); font-style: italic; }
.entry__cta { font-size: 14px; font-weight: 700; color: var(--accent); display: inline-flex; gap: 6px; }
.entry__cta:hover { text-decoration: underline; }

/* trust */
.trust { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.4fr); gap: clamp(26px, 4vw, 44px); align-items: center; }
.trust__list { display: grid; gap: 12px; }
.trust__item { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transition: border-color .25s ease, transform .25s ease; }
.trust__item:hover { border-color: var(--accent); transform: translateX(4px); }
.trust__item .mono { color: var(--accent); flex-shrink: 0; }
.trust__item p { font-size: 14px; color: var(--text-muted); }

/* expertise */
.expertise__grid { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1fr); gap: 20px; align-items: stretch; }
.flagship { position: relative; overflow: hidden; border: 1px solid var(--accent) !important; }
.flagship::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 60%);
  opacity: .6; pointer-events: none;
}
.chip-tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-faint); letter-spacing: 0.06em; margin-bottom: 16px; }
.flagship .chip-tag { color: var(--accent); }
.verticals { display: flex; flex-wrap: wrap; gap: 9px; }
.verticals span { padding: 8px 15px; border-radius: 100px; border: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); background: var(--surface-alt); transition: transform .2s ease, color .2s ease, border-color .2s ease; }
.verticals span:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--accent); }

/* process + terminal */
.process__grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 60px); }
.steps { display: grid; }
.step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); transition: padding-left .25s ease; }
.step:hover { padding-left: 8px; }
.step__num { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; color: var(--text-faint); width: 24px; flex-shrink: 0; }
.step__title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.step__desc { font-size: 13.5px; color: var(--text-muted); }
.terminal { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--terminal-bg); align-self: start; box-shadow: var(--shadow); }
.terminal__bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.terminal pre { margin: 0; padding: 22px 20px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.75; color: var(--terminal-text); min-height: 210px; white-space: pre-wrap; word-break: break-word; }
.terminal .cursor { animation: blink 1s step-end infinite; }

/* cases */
.case { display: block; overflow: hidden; padding: 0; }
.case__thumb { height: 150px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; position: relative; }
.case__play { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent); transition: transform .3s ease, background .3s ease; }
.case:hover .case__play { transform: scale(1.12); background: var(--accent-soft); }
.case__tag { position: absolute; top: 12px; left: 12px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-faint); background: var(--surface); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border); }
.case__body { padding: 16px 18px; }
.case__body .t { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.case__body .d { font-size: 13.5px; color: var(--text-muted); }

/* final CTA */
.cta-final { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 72px); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.cta-final::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(80% 120% at 50% -10%, var(--accent-soft), transparent 55%);
  opacity: .8;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.cta-final p { font-size: clamp(15px, 1.8vw, 17px); color: var(--text-muted); max-width: 540px; margin: 0 auto 30px; }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* footer */
.footer { border-top: 1px solid var(--border); }
.footer__inner { padding: 36px 0 46px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer__copy { font-size: 13px; color: var(--text-faint); }
.footer__tg { font-size: 14px; font-weight: 600; color: var(--text-muted); display: inline-flex; gap: 7px; align-items: center; }
.footer__tg:hover { color: var(--accent); }

/* ---------- Scroll reveal (only when JS is active) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay='1'] { transition-delay: .08s; }
[data-reveal][data-delay='2'] { transition-delay: .16s; }
[data-reveal][data-delay='3'] { transition-delay: .24s; }

/* ---------- Keyframes ---------- */
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, 24px) scale(1.12); } }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--accent); } 70%,100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: -32; } }
@keyframes pulseNode { 0%,100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes nodePulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: .85; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner, .ai__grid, .trust, .expertise__grid, .process__grid { grid-template-columns: 1fr; }
  .agent-viz { aspect-ratio: 1 / 0.8; }
}
@media (max-width: 620px) {
  .nav__mobile-hide { display: none; }
  .flow__step { flex: 1 1 100%; }
  .flow__arrow { transform: rotate(90deg); margin: 4px auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
