/* ==========================================================================
   Marea AI — Design system
   Deep-ocean navy + aqua/teal gradient accents. Plus Jakarta Sans + Inter.
   ========================================================================== */

:root {
  /* Color — ocean palette */
  --navy-950: #040A1C;
  --navy-900: #071330;
  --navy-850: #0A1A3D;
  --navy-800: #0E2350;
  --navy-700: #16316B;
  --ink: #0B1324;
  --ink-2: #334155;
  --muted: #56667D;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;
  --bg-tint: #EEF9F8;
  --aqua-200: #A7F3E7;
  --aqua-300: #5EEAD4;
  --aqua-400: #2DD4BF;
  --aqua-500: #14B8A6;
  --teal-700: #0F766E;
  --cyan-400: #22D3EE;
  --sky-400: #38BDF8;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --violet-400: #A78BFA;
  --coral-400: #FF8A65;
  --on-dark: #E6EDF7;
  --on-dark-muted: #A9BAD2;

  --grad-accent: linear-gradient(120deg, #5EEAD4 0%, #22D3EE 48%, #60A5FA 100%);
  --grad-text: linear-gradient(90deg, #5EEAD4 0%, #38BDF8 50%, #A78BFA 100%);
  --grad-soft: linear-gradient(135deg, #E9FBF8 0%, #E6F4FE 100%);

  /* Type */
  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .05), 0 2px 6px rgba(11, 19, 36, .06);
  --shadow: 0 6px 16px -4px rgba(11, 19, 36, .08), 0 18px 40px -12px rgba(11, 19, 36, .14);
  --shadow-lg: 0 30px 70px -20px rgba(4, 10, 28, .45);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 80px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
/* Orphan control on wide screens only: on phones WebKit's pretty wrapping shortens every line of a paragraph */
@media (min-width: 641px) { p { text-wrap: pretty; } }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  color: inherit;
  text-wrap: balance;
}
h3, h4 { font-weight: 700; letter-spacing: -.015em; }
ul, ol { margin: 0; }
strong { font-weight: 600; }
::selection { background: var(--aqua-200); color: var(--navy-950); }

:focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-950);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Chinese (Simplified) ----------
   Latin web fonts first (for Latin words/numbers), then system CJK fonts.
   CJK text needs no negative tracking and a little more leading. */
html:lang(zh) {
  --font-head: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}
html:lang(zh) body { line-height: 1.8; }
html:lang(zh) :is(h1, h2, h3, h4, .display, .h1, .h2, .h3, .brand) { letter-spacing: 0; }
html:lang(zh) :is(h1, h2, h3, h4, .h1, .h2, .h3) { line-height: 1.3; }
html:lang(zh) .display { font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.25rem); line-height: 1.18; }
html:lang(zh) .lead { line-height: 1.85; }
html:lang(zh) :is(.eyebrow, .footer-col h2, .meta-box h3, .fc-label) { letter-spacing: .06em; }
/* Chinese has no letter case: uppercase would only distort Latin brand names (MLOps → MLOPS) */
html:lang(zh) :is(.eyebrow, .contact-list .label, .fc-label, .meta-box h3, .footer-col h2) { text-transform: none; }

:is(.site-header, .hero, .page-hero, .section--dark, .card--feature, .offer--highlight, .cta-band, .contact-card, .site-footer, .lang-toast) :focus-visible { outline-color: var(--aqua-300); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--dark {
  background: var(--navy-900);
  color: var(--on-dark);
  isolation: isolate;
  overflow: hidden;
}
.section--dark .lead,
.section--dark .muted { color: var(--on-dark-muted); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head--split > div { max-width: 720px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.split--reverse .split-media { order: -1; }
.split-media img { width: 100%; }

/* ---------- Typography helpers ---------- */
.display {
  font-size: clamp(2.6rem, 1.5rem + 3.8vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 800;
}
.h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); letter-spacing: -.035em; line-height: 1.06; }
.h2, .section-head h2 { font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }
.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}
.muted { color: var(--muted); }
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.card--feature .eyebrow,
.offer--highlight .eyebrow,
.cta-band .eyebrow { color: var(--aqua-200); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .875rem;
  color: #CFE0F3;
  margin-bottom: 28px;
}
.pill b {
  flex: none;
  white-space: nowrap;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--grad-accent);
  color: var(--navy-950);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.3;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.tag--dark,
.card--feature .tag,
.section--dark .tag {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #CFE0F3;
}

/* ---------- Buttons & links ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad-accent);
  color: var(--navy-950);
  box-shadow: 0 10px 28px -10px rgba(34, 211, 238, .6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(34, 211, 238, .75); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
.btn-lg { --btn-h: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn-sm { --btn-h: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal-700);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow,
.card--feature .link-arrow { color: var(--aqua-300); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(4, 10, 28, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
/* No backdrop-filter while the menu is open: it would make the header the containing block
   of the position:fixed menu and clip it to the header's height. */
.site-header.nav-open {
  background: var(--navy-950);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: rgba(255, 255, 255, .08);
}
html:not(.js) .site-header { background: rgba(4, 10, 28, .94); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
}
.brand img { width: 34px; height: 34px; }
.brand-name span {
  margin-left: 3px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.main-nav a:not(.btn) {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9625rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  transition: color .2s, background-color .2s;
}
.main-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .07); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.main-nav .mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.lang-switch a,
.lang-switch span { padding: 6px 11px; border-radius: 999px; line-height: 1; }
.lang-switch a { color: rgba(255, 255, 255, .7); transition: color .2s; }
.lang-switch a:hover { color: #fff; }
.lang-switch [aria-current] { background: #fff; color: var(--navy-950); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
}
.hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(120px, 14vw, 200px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 25%, transparent 75%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-1 { width: 560px; height: 560px; top: -180px; right: -120px; background: #0EA5A0; }
.glow-2 { width: 520px; height: 520px; bottom: -240px; left: -160px; background: #2563EB; animation-delay: -6s; }
.glow-3 { width: 380px; height: 380px; top: 30%; left: 38%; background: #7C3AED; opacity: .22; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.12); }
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: clamp(48px, 8vw, 110px);
  color: var(--bg);
  z-index: 1;
}
.hero-wave path:first-child { opacity: .1; }
.hero-wave--soft { color: var(--bg-soft); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero .lead { color: var(--on-dark-muted); max-width: 580px; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  color: #A3B5CE;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--aqua-300); flex: none; }

/* Floating product-style cards */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-card {
  position: absolute;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(12, 27, 62, .72);
  border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  font-size: .8125rem;
  line-height: 1.45;
  color: #DCE7F5;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fc-chat { top: 6%; left: 0; width: min(78%, 330px); }
.fc-metric { top: 40%; right: 0; width: min(52%, 220px); animation-delay: -2.5s; }
.fc-flow { bottom: 4%; left: 8%; width: min(76%, 320px); animation-delay: -5s; }
.fc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8125rem;
  color: #fff;
}
.fc-head img { width: 22px; height: 22px; }
.fc-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  color: var(--aqua-300);
}
.fc-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua-400);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .25);
}
.bubble { padding: 9px 12px; border-radius: 14px; margin-top: 8px; max-width: 92%; }
.bubble--user { margin-left: auto; background: rgba(255, 255, 255, .1); border-bottom-right-radius: 4px; }
.bubble--ai { background: rgba(45, 212, 191, .12); border: 1px solid rgba(45, 212, 191, .22); border-bottom-left-radius: 4px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 10px; }
.mini-bars span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--aqua-300), rgba(56, 189, 248, .5));
}
.fc-label { font-size: .72rem; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.fc-value {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.15;
  margin-top: 4px;
}
.fc-delta { color: var(--aqua-300); font-weight: 600; font-size: .78rem; }
.fc-spark { width: 100%; height: 40px; margin-top: 8px; }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.flow-steps li { display: flex; align-items: center; gap: 10px; }
.flow-steps .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}
.flow-steps .dot svg { width: 12px; height: 12px; color: var(--aqua-300); }
.flow-steps .is-done .dot { background: rgba(45, 212, 191, .18); border-color: rgba(45, 212, 191, .4); }
.flow-steps .meta { margin-left: auto; color: var(--on-dark-muted); font-size: .72rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(104px, 12vw, 168px); }
.page-hero h1 { max-width: 920px; }
.page-hero .lead { color: #C8D4E5; max-width: 700px; margin-top: 20px; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero-art {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 620px);
  opacity: .9;
  z-index: -1;
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: .875rem;
  color: #C8D4E5;
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* Sticky in-page navigation (services / industries) */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 12px 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.subnav a:hover { background: var(--bg-soft); color: var(--ink); }
.subnav a.is-active { background: var(--navy-900); color: #fff; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 10%;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg) 35%, rgba(255, 255, 255, 0)); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-toggle {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.marquee-toggle:hover { border-color: var(--ink); color: var(--ink); }
.marquee-toggle svg { width: 14px; height: 14px; }
.marquee-group { display: flex; gap: 52px; padding-right: 52px; list-style: none; margin: 0; }
.marquee-group li {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #64748B;
}
.marquee-group li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card h3 { font-size: 1.25rem; margin-bottom: .55em; }
.card p { color: var(--muted); }
.card .tag-list { margin-top: 20px; }
.card .link-arrow { margin-top: auto; padding-top: 22px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.card--soft { background: var(--bg-soft); }
.card--feature {
  background: var(--navy-900);
  color: var(--on-dark);
  border-color: transparent;
  overflow: hidden;
  isolation: isolate;
}
.card--feature::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, .55), transparent 65%);
  z-index: -1;
}
.card--feature h3 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.card--feature p { color: var(--on-dark-muted); }
.card--cta {
  background: var(--grad-soft);
  border-color: rgba(20, 184, 166, .2);
}

.icon-tile {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--teal-700);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .2);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--dark,
.card--feature .icon-tile,
.section--dark .icon-tile,
.offer--highlight .icon-tile {
  background: rgba(45, 212, 191, .12);
  color: var(--aqua-300);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .28);
}
.icon-tile--sm { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 0; }
.icon-tile--sm svg { width: 20px; height: 20px; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 32px;
  align-items: center;
  height: 100%;
}
.chat-demo { display: grid; gap: 10px; font-size: .875rem; }
.chat-demo .bubble { margin-top: 0; color: #DCE7F5; }

/* ---------- Pillars / value ---------- */
.pillar { padding-top: 28px; border-top: 2px solid var(--line); position: relative; }
.pillar::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--grad-accent);
}
.pillar h3 { font-size: 1.2rem; }
.pillar p { color: var(--muted); }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua-400), var(--blue-500), rgba(59, 130, 246, 0));
  opacity: .45;
}
.step { position: relative; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-950);
  background: var(--grad-accent);
  box-shadow: 0 0 0 8px var(--navy-900), 0 12px 32px -8px rgba(34, 211, 238, .6);
}
.section:not(.section--dark) .step-num { box-shadow: 0 0 0 8px var(--bg), 0 12px 32px -8px rgba(34, 211, 238, .5); }
.section--soft .step-num { box-shadow: 0 0 0 8px var(--bg-soft), 0 12px 32px -8px rgba(34, 211, 238, .5); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); font-size: 1rem; }
.section--dark .step p { color: var(--on-dark-muted); }
.step-meta {
  display: inline-flex;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  background: rgba(45, 212, 191, .12);
  color: var(--teal-700);
}
.section--dark .step-meta { color: var(--aqua-300); }

/* ---------- Industry tiles ---------- */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.tile:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-head { display: flex; align-items: center; gap: 14px; }
.tile h3 { font-size: 1.15rem; margin: 0; }
.tile p { color: var(--muted); font-size: .975rem; margin: 0; }

/* Industry detail cards (industries page) */
.industry {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
}
.industry + .industry { margin-top: 24px; }
.industry h2 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); }
.industry .lead { font-size: 1.0625rem; }
.usecases { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.usecase {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.usecase h3 { font-size: 1.05rem; margin-bottom: .3em; }
.usecase p { color: var(--muted); font-size: .9625rem; margin: 0; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 18px; list-style: none; padding: 0; margin: 28px 0 0; }
.checklist li { position: relative; padding-left: 40px; color: var(--muted); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat, var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .25);
}
.checklist strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; margin-bottom: 2px; }
.checklist--compact { gap: 10px; margin-top: 18px; }
.checklist--compact li { padding-left: 32px; font-size: .975rem; }
.checklist--compact li::before { width: 22px; height: 22px; background-size: 12px, auto; top: 2px; }
.section--dark .checklist li,
.offer--highlight .checklist li { color: var(--on-dark-muted); }
.section--dark .checklist strong,
.offer--highlight .checklist strong { color: #fff; }
.section--dark .checklist li::before,
.offer--highlight .checklist li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235EEAD4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat, rgba(45, 212, 191, .14);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .3);
}
.section--dark .checklist--compact li::before,
.offer--highlight .checklist--compact li::before { background-size: 12px, auto; }

/* ---------- Media frames ---------- */
.media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--grad-soft);
  border: 1px solid rgba(20, 184, 166, .15);
}
.media-frame img { width: 100%; height: auto; }
.media-frame--dark { background: var(--navy-900); border-color: rgba(255, 255, 255, .08); }

/* ---------- Service rows (services page) ---------- */
.service-row { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.service-row:first-of-type { border-top: 0; }
.service-row .h2 { margin-bottom: .4em; }
.service-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.meta-box { padding: 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.meta-box h3 {
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 10px;
}
@media (min-width: 641px) { .meta-box li { text-wrap: pretty; } }
.meta-box ul { padding-left: 1.1em; color: var(--ink-2); font-size: .95rem; display: grid; gap: 4px; }

/* ---------- KPI / stat row ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kpi { padding: 24px 0; border-top: 1px solid var(--line); }
.section--dark .kpi { border-top-color: rgba(255, 255, 255, .12); }
.kpi-value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1rem + 1.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kpi-label { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.section--dark .kpi-label { color: var(--on-dark-muted); }

/* ---------- Offers / engagement models ---------- */
.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.offer h3 { font-size: 1.35rem; margin-bottom: .35em; }
.offer > p { color: var(--muted); }
.offer-duration {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.offer-duration svg { width: 15px; height: 15px; }
.offer .checklist { margin-bottom: 32px; }
.offer .btn { margin-top: auto; }
.offer--highlight {
  background: radial-gradient(circle at 100% 100%, rgba(37, 99, 235, .45), rgba(37, 99, 235, 0) 55%), var(--navy-900);
  color: var(--on-dark);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.offer--highlight h3 { color: #fff; }
.offer--highlight > p { color: var(--on-dark-muted); }
.offer--highlight .offer-duration { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #CFE0F3; }
.offer-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 800;
  background: var(--grad-accent);
  color: var(--navy-950);
}

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: box-shadow .25s, border-color .25s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(20, 184, 166, .35); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.075rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--bg-tint); }
.faq-body { padding: 0 0 24px; color: var(--muted); max-width: 760px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px 48px;
  align-items: center;
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background: var(--navy-900);
  color: #fff;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
}
.cta-band::before { width: 420px; height: 420px; right: -100px; top: -200px; background: rgba(20, 184, 166, .55); }
.cta-band::after { width: 360px; height: 360px; left: 20%; bottom: -260px; background: rgba(37, 99, 235, .5); }
.cta-band h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); margin-bottom: .35em; }
.cta-band p { color: var(--on-dark-muted); max-width: 620px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---------- Forms ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.form-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--teal-700); margin-left: 2px; }
.field .optional { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #7C8BA1;
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356667D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.input::placeholder, .textarea::placeholder { color: #64748B; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 1px var(--teal-700), 0 0 0 5px rgba(20, 184, 166, .2);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: #DC2626; }
.field-error { display: none; margin-top: 6px; font-size: .85rem; color: #B91C1C; }
.field.has-error .field-error { display: block; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .925rem; color: var(--ink-2); }
.field .check { display: flex; margin-bottom: 0; font-size: .925rem; font-weight: 400; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal-700); }
.check a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { display: none; padding: 14px 18px; border-radius: 12px; font-size: .95rem; }
.form-status.is-visible { display: block; }
.form-status[data-state="success"] { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-status[data-state="error"] { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.form-status[data-state="info"] { background: var(--bg-tint); color: var(--teal-700); border: 1px solid rgba(20, 184, 166, .3); }

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--navy-900);
  color: var(--on-dark);
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, .5), transparent 65%);
  z-index: -1;
}
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-list { display: grid; gap: 20px; list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-muted); font-weight: 600; }
.contact-list a, .contact-list .value { color: #fff; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--aqua-300); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .6vw, 1.65rem); margin: 2.2em 0 .6em; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose ol { padding-left: 1.75em; }
.prose a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.prose .callout {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  border: 1px solid rgba(20, 184, 166, .25);
  color: var(--ink-2);
  font-size: .95rem;
  margin-bottom: 2em;
}
.prose .updated { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 8vw, 96px) 0 32px;
  background: var(--navy-950);
  color: #9FB2CC;
  font-size: .95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  left: -200px;
  bottom: -420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, .28), transparent 65%);
  z-index: -1;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-brand p { max-width: 340px; margin-top: 18px; }
.footer-col h2 {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; list-style: none; padding: 0; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating WhatsApp & language toast ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float[hidden] { display: none; }

.lang-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg);
  font-size: .925rem;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.lang-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.lang-toast .btn { --btn-h: 38px; padding: 0 16px; font-size: .875rem; }
.lang-toast button.close {
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.lang-toast button.close:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 48px) var(--gutter) 64px;
}
.error-page img { width: min(420px, 80vw); margin: 0 auto 32px; }
.error-page .hero-actions { justify-content: center; }
.error-page .lang-block + .lang-block { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.mb-0 { margin-bottom: 0 !important; }
.center { margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.actions--center { justify-content: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 520px; }
  .page-hero-art { opacity: .35; width: 70vw; right: -20vw; }
  .feature-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; } /* the nav leaves the flow (fixed) on small screens */
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    margin: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--navy-950);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a:not(.btn) {
    padding: 16px 4px;
    border-radius: 0;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .main-nav a:not(.btn):hover,
  .main-nav a[aria-current="page"] { background: transparent; color: var(--aqua-300); }
  .main-nav .mobile-only { display: block; margin-top: 24px; }
  .main-nav .mobile-only .btn { width: 100%; }

  .grid-3, .grid-4, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > *, .bento > .span-3 { grid-column: span 1; }
  .bento > .span-4, .bento > .span-6 { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
  .section--dark .step-num { box-shadow: 0 12px 32px -8px rgba(34, 211, 238, .6); }
  .split, .industry, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .split .split-media { order: -1; }
  .split-media { max-width: 620px; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .subnav .container { padding-inline: 0; }
  .subnav ul {
    padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .bento, .form-row, .service-meta { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto !important; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .hero-actions .btn, .page-hero .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-trust { gap: 10px 20px; font-size: .875rem; }
  .hero-visual { aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; }
  .float-card { position: relative; inset: auto; }
  .fc-chat { width: 92%; }
  .fc-metric { width: 64%; align-self: flex-end; }
  .fc-flow { width: 96%; }
  .cta-band { padding: 32px 20px; }
  .cta-actions .btn { padding-inline: 18px; }
  .industry { padding: 24px 20px; }
  .usecase { flex-direction: column; gap: 12px; padding: 18px; }
  .lang-switch a, .lang-switch span { padding: 6px 8px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 30px; height: 30px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq details { padding: 0 18px; }
  .lang-toast { left: 16px; right: 16px; transform: translateY(20px); border-radius: 18px; flex-wrap: wrap; }
  .lang-toast.is-visible { transform: none; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1.05rem; }
  .brand { gap: 8px; }
  .lang-switch { font-size: .75rem; }
  .lang-switch a, .lang-switch span { padding: 6px 6px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle span { left: 10px; }
  .nav-toggle span:first-child { top: 15px; }
  .nav-toggle span:last-child { top: 23px; }
  .nav-open .nav-toggle span:first-child,
  .nav-open .nav-toggle span:last-child { top: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee::before, .marquee::after, .marquee-toggle, .marquee-group[aria-hidden] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding: 0 var(--gutter); }
}

@media print {
  .site-header, .wa-float, .lang-toast, .hero-bg, .hero-wave, .subnav { display: none !important; }
  .hero, .page-hero, .section--dark, .site-footer, .cta-band { background: #fff !important; color: #000 !important; }
}
