/* ==========================================================================
   Gallus — Home (Apple-style, Gallus app design language)
   Tokens mirror gallus-web/projects/gallus-user-app/src/styles/_variables.scss
   ========================================================================== */
:root {
  --blue: #005CBB;          /* Gallus Blue  */
  --blue-hi: #3376D6;
  --cyan: #00B3E6;          /* Signal Cyan  */
  --ice: #8CE0FF;
  --ink: #0B2239;           /* Deep Ink     */
  --navy: #14184a;
  --indigo: #534ab7;
  --black: #05080f;
  --surface: #f6f8fa;       /* surface-lowest */
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e6ea;
  --grad: linear-gradient(100deg, #005CBB 0%, #2f86ff 45%, #00B3E6 100%);
  --grad-dark: linear-gradient(100deg, #5aa7ff 0%, #00B3E6 50%, #8CE0FF 100%);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Number scale — every stat/figure on the site uses one of these sizes */
  --num-xxl: clamp(80px, 12vw, 144px);  /* one featured figure per page, max */
  --num-xl:  clamp(56px, 8vw, 96px);    /* primary stats */
  --num-l:   clamp(40px, 4.6vw, 56px);  /* supporting stats, prices, timeline years */
  --num-track: -0.045em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.mi {
  font-family: "Material Icons";
  font-weight: normal; font-style: normal;
  font-size: 22px; line-height: 1;
  display: inline-block; text-transform: none; letter-spacing: normal;
  white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }

/* ── Numbers: one typographic treatment for every figure on every page ──
   Pages only choose a size from the --num-* scale; weight, tracking and
   tabular (fixed-width) lining digits are set here so figures match and
   don't jitter while counting up. Add new figure classes to this list. */
.num-val, .eco-stats b, .tl-day, .tl-year, .plan-price b, .p-facts b, .sync-mid b, .proc-mid b {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: var(--num-track);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.count, .bar-val, .ai-time { font-variant-numeric: tabular-nums lining-nums; }

.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  color: var(--blue); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.eyebrow .mi { font-size: 18px; }
.eyebrow-cyan { color: var(--cyan); }

.sec-h {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06; font-weight: 600; letter-spacing: -0.035em;
  text-align: center; margin-bottom: 64px;
}
.sec-h-light { color: #f5f5f7; }

/* ── Buttons ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 980px; font-weight: 500; white-space: nowrap;
  padding: 11px 22px; font-size: 17px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.pill-sm { padding: 5px 13px; font-size: 13px; }
.pill-lg { padding: 15px 30px; font-size: 18px; }
.pill-blue { background: var(--blue); color: #fff; }
.pill-blue:hover { background: var(--blue-hi); }
.pill-white { background: #fff; color: var(--ink); }
.pill-white:hover { background: #e8f6ff; }
.pill:active { transform: scale(.97); }

.link-arrow { color: var(--blue); font-size: 18px; font-weight: 500; }
.link-arrow::after { content: " ›"; display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.gnav { position: relative; z-index: 60; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.gnav-inner { max-width: 1080px; margin: 0 auto; padding: 0 22px; height: 48px; display: flex; align-items: center; justify-content: center; }
.gnav-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.gnav-logo img { width: 24px; height: 24px; }
.gnav-links { display: flex; gap: 34px; }
.gnav-links a { font-size: 13px; color: rgba(0,0,0,.8); transition: color .2s; }
.gnav-links a:hover { color: var(--blue); }
.gnav-links a[aria-current="page"], .gnav-mobile a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.gnav-burger { display: none; width: 30px; height: 30px; position: relative; margin-left: auto; }
.gnav-burger span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.gnav-burger span:first-child { top: 11px; }
.gnav-burger span:last-child { top: 18px; }
.gnav.open .gnav-burger span:first-child { top: 15px; transform: rotate(45deg); }
.gnav.open .gnav-burger span:last-child { top: 15px; transform: rotate(-45deg); }
.gnav-mobile { display: none; }

.lnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: background .4s, border-color .4s;
}
.lnav-inner { max-width: 1080px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 24px; }
.lnav-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-right: auto; }
.lnav-links { display: flex; gap: 22px; }
.lnav-links a { font-size: 12px; color: rgba(0,0,0,.72); transition: color .2s; }
.lnav-links a:hover, .lnav-links a.active { color: var(--blue); }
.lnav.dark { background: rgba(5,8,15,.72); border-color: rgba(255,255,255,.1); }
.lnav.dark .lnav-title { color: #f5f5f7; }
.lnav.dark .lnav-links a { color: rgba(255,255,255,.7); }
.lnav.dark .lnav-links a:hover, .lnav.dark .lnav-links a.active { color: var(--ice); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 88px 0 0; text-align: center; overflow-x: clip; }
.hero-h1 {
  font-size: clamp(48px, 9vw, 104px);
  line-height: 1.02; font-weight: 600; letter-spacing: -0.045em;
  margin: 0 auto 22px;
}
.hero-sub { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.35; color: var(--muted); font-weight: 400; letter-spacing: -0.015em; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-copy .reveal:nth-child(2) { transition-delay: .08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .16s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .24s; }

.hero-stage { position: relative; padding: 72px 22px 110px; }
.hero-glow {
  position: absolute; left: 50%; top: 45%; width: min(1100px, 120vw); height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0,179,230,.28), rgba(0,92,187,.14) 55%, transparent);
  filter: blur(30px); pointer-events: none;
}
.device {
  position: relative; max-width: 1040px; margin: 0 auto;
  border-radius: 22px; overflow: hidden; background: #0b1220;
  box-shadow: 0 40px 100px -30px rgba(11,34,57,.55), 0 0 0 1px rgba(11,34,57,.08);
  transform: perspective(1600px) rotateX(var(--rx, 14deg)) scale(var(--s, .9));
  transform-origin: 50% 0;
  will-change: transform;
}
.device-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #111a2b; border-bottom: 1px solid rgba(255,255,255,.06); }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.device-bar span { flex: 1; text-align: center; font-size: 12px; color: rgba(255,255,255,.55); margin-right: 40px; }
.device-bar em { font-style: normal; font-size: 11px; color: var(--ice); display: inline-flex; align-items: center; gap: 6px; }
.device-bar em b { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: blink 1.6s infinite; }
.device video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@keyframes blink { 50% { opacity: .25; } }

/* ==========================================================================
   LOGOS
   ========================================================================== */
.logos { padding: 0 0 72px; }
.logos-lbl { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track img { height: 46px; width: auto; filter: grayscale(1); opacity: .5; mix-blend-mode: multiply; transition: opacity .3s, filter .3s; }
.marquee-track img:hover { opacity: 1; filter: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }

/* ==========================================================================
   NUMBERS
   ========================================================================== */
.numbers { background: var(--surface); padding: 130px 0; }
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.num { text-align: center; }
.num-val {
  font-size: var(--num-xl);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.num-val small { font-size: .42em; letter-spacing: -0.02em; margin-left: 4px; }
.num-lbl { margin-top: 14px; font-size: 17px; color: var(--muted); }
.num:nth-child(2) { transition-delay: .1s; }
.num:nth-child(3) { transition-delay: .2s; }

/* ==========================================================================
   STORY (sticky scroll)
   ========================================================================== */
.story { height: 320vh; background: var(--black); color: #f5f5f7; position: relative; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story-quote { font-size: clamp(17px, 1.8vw, 21px); color: #86868b; margin-bottom: 28px; }
.story-lines li, .story-end {
  font-size: clamp(38px, 6.6vw, 80px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08;
  color: #f5f5f7; opacity: .14; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.story-lines li.lit { opacity: 1; }
.story-lines li.past { opacity: .32; }
.story-end { margin-top: 30px; transform: translateY(24px); opacity: 0; }
.story-end.lit { opacity: 1; transform: none; }
.story-end .grad { background: var(--grad-dark); -webkit-background-clip: text; background-clip: text; }

/* ==========================================================================
   GALLUS AI
   ========================================================================== */
.ai { background: var(--black); color: #f5f5f7; padding: 40px 0 150px; text-align: center; position: relative; overflow: hidden; }
.ai::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 1200px; height: 800px; transform: translate(-50%,-50%);
  background: radial-gradient(closest-side, rgba(0,92,187,.35), rgba(0,179,230,.08) 60%, transparent); pointer-events: none;
}
.ai .wrap { position: relative; }
.ai-h { font-size: clamp(48px, 8vw, 96px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; margin-bottom: 24px; }
.ai-h .grad, .cta-h .grad, .sec-h-light .grad { background: var(--grad-dark); -webkit-background-clip: text; background-clip: text; }
.ai-sub { font-size: clamp(18px, 2vw, 22px); color: #a1a1a6; max-width: 720px; margin: 0 auto 64px; line-height: 1.45; }

.ai-demo { max-width: 760px; margin: 0 auto 110px; }
.ai-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 9px 18px; border-radius: 980px; font-size: 14px; color: #c7c7cc; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: all .25s var(--ease); }
.chip:hover { background: rgba(255,255,255,.12); }
.chip.on { background: #f5f5f7; color: var(--ink); border-color: #f5f5f7; }

.ai-card {
  text-align: left; border-radius: 28px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px -20px rgba(0,92,187,.45);
  backdrop-filter: blur(10px);
}
.ai-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.07); font-size: 18px; min-height: 58px; }
.ai-input .mi { color: var(--ice); }
.caret { width: 2px; height: 22px; background: var(--cyan); margin-left: -8px; animation: blink 1s steps(2) infinite; }
.ai-answer { padding: 26px 6px 6px; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ai-answer.show { opacity: 1; transform: none; }
.ai-answer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ice); }
.ai-badge .mi { font-size: 16px; }
.ai-time { font-size: 12px; color: #86868b; font-variant-numeric: tabular-nums; }
.ai-insight { font-size: 19px; line-height: 1.45; color: #f5f5f7; margin-bottom: 26px; }
.ai-insight b { color: var(--ice); font-weight: 600; }
.ai-chart { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 64px; align-items: center; gap: 14px; font-size: 14px; color: #c7c7cc; }
.bar-track { height: 12px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #005CBB, #00B3E6); transition: width 1.1s var(--ease); }
.bar-row.hl .bar-fill { background: linear-gradient(90deg, #00B3E6, #8CE0FF); }
.bar-row.hl { color: #fff; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: #f5f5f7; }
.ai-note { margin-top: 18px; font-size: 11px; color: #6e6e73; text-align: right; }

.ai-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: left; }
.ai-feat .mi { color: var(--cyan); font-size: 28px; margin-bottom: 14px; }
.ai-feat h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.ai-feat p { font-size: 15px; color: #a1a1a6; }
.ai-feat:nth-child(2) { transition-delay: .08s; }
.ai-feat:nth-child(3) { transition-delay: .16s; }
.ai-feat:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   DASHBOARDS
   ========================================================================== */
.dash { padding: 150px 0 130px; background: #fff; }
.seg {
  position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 44px;
  padding: 4px; border-radius: 980px; background: #eef1f4; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; padding: 9px 20px; border-radius: 980px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .3s; }
.seg button.on { color: var(--text); }
.seg-glider { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 980px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .45s var(--ease), width .45s var(--ease); }
.dash-frame {
  border-radius: 28px; overflow: hidden; background: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(11,34,57,.5);
}
.dash-frame video { width: 100%; aspect-ratio: 3024/1964; object-fit: cover; background: #fff; transition: opacity .35s var(--ease); }
.dash-frame video.fade { opacity: 0; }
.dash-cap { text-align: center; margin: 28px auto 0; max-width: 640px; color: var(--muted); font-size: 17px; min-height: 2.8em; }

/* ==========================================================================
   HOW
   ========================================================================== */
.how { background: var(--surface); padding: 140px 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps-line { position: absolute; top: 30px; left: 0; right: 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-line span { display: block; height: 100%; width: 0; background: var(--grad); }
.step { position: relative; padding-top: 0; }
.step-n {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 16px; color: var(--blue);
  margin-bottom: 26px; position: relative; z-index: 1; transition: background .4s, color .4s, border-color .4s;
}
.step.done .step-n { background: var(--blue); border-color: var(--blue); color: #fff; }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }
.step:nth-child(3) { transition-delay: .08s; }
.step:nth-child(4) { transition-delay: .16s; }
.step:nth-child(5) { transition-delay: .24s; }

/* ==========================================================================
   ROLES gallery
   ========================================================================== */
.roles { padding: 140px 0 120px; background: #fff; }
.roles .sec-h { margin-bottom: 56px; }
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(22px, calc((100vw - 1080px) / 2 + 22px)) 30px;
  scroll-padding: 0 max(22px, calc((100vw - 1080px) / 2 + 22px));
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.rcard {
  flex: 0 0 min(400px, 84vw); scroll-snap-align: start;
  min-height: 520px; border-radius: 28px; padding: 38px 34px; color: #fff;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .5s var(--ease);
}
.rcard:hover { transform: scale(1.015); }
.rc-blue   { background: linear-gradient(160deg, #0a6fe0, #003f85); }
.rc-indigo { background: linear-gradient(160deg, #6a61d6, #2f2780); }
.rc-cyan   { background: linear-gradient(160deg, #00B3E6, #00609c); }
.rc-ink    { background: linear-gradient(160deg, #1d3a5c, #0B2239); }
.rc-navy   { background: linear-gradient(160deg, #262b78, #0e1136); }
.rcard-role { font-size: 14px; font-weight: 600; opacity: .8; margin-bottom: 18px; }
.rcard-q { font-size: 26px; line-height: 1.22; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 28px; }
.rcard ul { display: grid; gap: 10px; margin-bottom: auto; }
.rcard li { font-size: 15px; opacity: .9; padding-left: 22px; position: relative; }
.rcard li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7); }
.rcard-ask {
  margin-top: 28px; display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px); font-size: 14px; line-height: 1.4;
}
.rcard-ask .mi { font-size: 18px; color: var(--ice); }
.gallery-ctrl { display: flex; justify-content: flex-end; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.gallery-ctrl button { width: 40px; height: 40px; border-radius: 50%; background: #eef1f4; display: grid; place-items: center; color: var(--text); transition: background .25s, opacity .25s; }
.gallery-ctrl button:hover { background: #e2e6eb; }
.gallery-ctrl button:disabled { opacity: .35; cursor: default; }

/* ==========================================================================
   INTEGRATIONS
   ========================================================================== */
.eco { background: var(--black); color: #f5f5f7; padding: 150px 0 140px; overflow: hidden; }
.eco .sec-h { margin-bottom: 22px; }
.eco-sub { text-align: center; max-width: 640px; margin: 0 auto 70px; font-size: 19px; color: #a1a1a6; }
.flow { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 20px; min-height: 460px; }
.flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-col { position: relative; display: grid; gap: 10px; }
.flow-out { gap: 26px; justify-items: end; }
.node {
  display: inline-flex; align-items: center; gap: 10px; width: max-content;
  padding: 10px 16px; border-radius: 14px; font-size: 14px; color: #e5e5ea;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  transition: border-color .3s, background .3s;
}
.node .mi { font-size: 18px; color: var(--cyan); }
.node.ping { border-color: rgba(0,179,230,.6); background: rgba(0,179,230,.1); }
.node-out { padding: 16px 22px; font-size: 16px; font-weight: 500; }
.node-ai { border-color: rgba(140,224,255,.35); }
.node-ai .mi { color: var(--ice); }
.flow-core { position: relative; justify-self: center; text-align: center; display: grid; justify-items: center; gap: 6px; }
/* Signal mark (no tile): the glow follows the G's shape via drop-shadow */
.flow-core img { width: 92px; height: 92px; filter: drop-shadow(0 0 18px rgba(0,179,230,.55)); animation: corePulse 3s ease-in-out infinite; }
.flow-core strong { margin-top: 12px; font-size: 19px; font-weight: 600; }
.flow-core span { font-size: 13px; color: #86868b; }
@keyframes corePulse { 50% { filter: drop-shadow(0 0 30px rgba(0,179,230,.85)); } }
.eco-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 90px; padding-top: 50px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.eco-stats b { display: block; font-size: var(--num-l); margin-bottom: 10px; background: var(--grad-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eco-stats > div > span { font-size: 15px; color: #a1a1a6; }

/* ==========================================================================
   QUOTES
   ========================================================================== */
.quotes { padding: 150px 0 120px; background: #fff; text-align: center; }
.quote-stage { display: grid; max-width: 900px; margin: 0 auto; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.quote.on { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote { margin: 0 0 30px; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; }
.quote figcaption { font-size: 16px; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }
.quote-dots { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.quote-dots button { width: 8px; height: 8px; border-radius: 8px; background: #d2d2d7; transition: width .4s var(--ease), background .4s; }
.quote-dots button.on { width: 28px; background: var(--blue); }

/* ==========================================================================
   SECURITY bento
   ========================================================================== */
.sec { background: var(--surface); padding: 140px 0; }
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tile { background: #fff; border-radius: 28px; padding: 36px 32px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.tile .mi { font-size: 30px; color: var(--blue); margin-bottom: 26px; }
.tile h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 12px; }
.tile p { color: var(--muted); font-size: 16px; }
.tile-hero { grid-row: span 2; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; min-height: 420px; }
.tile-hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,179,230,.55), transparent); }
.tile-hero .mi { color: var(--ice); margin-bottom: auto; position: relative; }
.tile-hero h3 { font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.045em; line-height: 1; position: relative; }
.tile-hero p { color: #a1a1a6; position: relative; }
.tile-wide { grid-column: span 2; }
.bento .tile:nth-child(2) { transition-delay: .08s; }
.bento .tile:nth-child(3) { transition-delay: .16s; }
.bento .tile:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { position: relative; background: var(--black); color: #f5f5f7; text-align: center; padding: 170px 0; overflow: hidden; }
.cta-glow { position: absolute; left: 50%; bottom: -380px; width: 1200px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,179,230,.45), rgba(0,92,187,.25) 50%, transparent); }
.cta .wrap { position: relative; }
.cta-h { font-size: clamp(48px, 8vw, 96px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; margin-bottom: 24px; }
.cta-sub { font-size: clamp(18px, 2vw, 22px); color: #a1a1a6; margin-bottom: 40px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* One column per page (same order as the global nav). The column title links to
   the page; the links under it jump to that page's key sections. */
.foot { background: var(--surface); padding: 64px 0 28px; font-size: 13px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); gap: 28px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-brand { display: grid; justify-items: start; align-content: start; }
.foot-brand p { margin: 14px 0 18px; max-width: 260px; line-height: 1.5; }
.foot-brand .pill { margin-bottom: 20px; }
.foot-soc { display: flex; gap: 10px; }
.foot-soc a { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); font-weight: 700; font-size: 13px; transition: border-color .2s, color .2s; }
.foot-soc a .mi { font-size: 17px; }
.foot-soc a:hover { border-color: var(--blue); color: var(--blue); }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.foot-col h4 a { color: var(--text); }
.foot-col h4 a::after { content: " ›"; display: inline-block; opacity: 0; transform: translateX(-3px); transition: opacity .2s, transform .2s var(--ease); }
.foot-col h4 a:hover::after { opacity: 1; transform: none; }
.foot-col a { transition: color .2s; }
.foot-col a:hover, .foot-col h4 a:hover, .foot-bot a:hover { color: var(--blue); }
.foot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }
.foot-bot div { display: flex; gap: 22px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .ai-feats { grid-template-columns: repeat(2, 1fr); }
  .lnav-links { display: none; }
  .flow { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .flow svg { display: none; }
  .flow-src { grid-template-columns: repeat(2, 1fr); }
  .flow-src .node { width: 100%; }
  .flow-out { justify-items: center; grid-auto-flow: column; justify-content: center; gap: 12px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-hero { grid-row: auto; grid-column: span 2; min-height: 320px; }
  .foot-grid { grid-template-columns: repeat(5, 1fr); row-gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 834px) {
  .gnav-links { display: none; }
  .gnav-burger { display: block; }
  .gnav-mobile { display: grid; gap: 4px; max-height: 0; overflow: hidden; padding: 0 22px; transition: max-height .4s var(--ease), padding .4s var(--ease); }
  .gnav.open .gnav-mobile { max-height: 520px; padding: 8px 22px 22px; }
  .gnav-mobile a { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; padding: 8px 0; }
  .gnav-mobile .pill { margin-top: 12px; font-size: 17px; }
  .num-grid { grid-template-columns: 1fr; gap: 56px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps-line { display: none; }
  .eco-stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col { gap: 11px; }  /* larger tap targets on phones */
  .foot-col a { font-size: 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .lnav-title { font-size: 17px; }
  .hero { padding-top: 60px; }
  .hero-stage { padding: 48px 12px 80px; }
  .device { border-radius: 14px; }
  .device-bar span { display: none; }
  .sec-h { margin-bottom: 44px; }
  .numbers, .how, .sec, .roles, .quotes, .dash { padding-top: 96px; padding-bottom: 96px; }
  .ai-feats, .steps { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 92px 1fr 52px; gap: 10px; font-size: 13px; }
  .ai-input { font-size: 15px; padding: 14px; }
  .ai-card { padding: 14px; border-radius: 22px; }
  .ai-insight { font-size: 17px; }
  .flow-src { grid-template-columns: 1fr 1fr; }
  .flow-src .node { font-size: 13px; padding: 9px 12px; }
  .flow-out { grid-auto-flow: row; justify-items: center; }
  .bento { grid-template-columns: 1fr; }
  .tile-hero, .tile-wide { grid-column: auto; }
  .rcard { min-height: 480px; padding: 30px 26px; }
  .rcard-q { font-size: 22px; }
  .gallery { padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
  .marquee-track { gap: 40px; }
  .marquee-track img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .device { transform: none; }
  .story { height: auto; }
  .story-sticky { position: static; height: auto; padding: 120px 0; }
  .story-lines li, .story-end { opacity: 1; transform: none; }
}
