/* ============================================================
   BRAINCODERS — Design System v2 (Linear/Vercel-grade, accessible)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* brand */
  --aqua: #14f5cc;
  --aqua-strong: #0ad5af;
  --green: #1aac91;
  --mint: #befff3;
  --teal-deep: #003a33;
  --teal-mid: #006c6a;
  --teal-soft: #397e7d;
  /* utility */
  --ease: cubic-bezier(.16,1,.3,1);
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --maxw: 1240px;
  --maxw-wide: 1380px;
  --nav-h: 72px;
  --rad-sm: 10px;
  --rad-md: 14px;
  --rad-lg: 20px;
  --rad-xl: 28px;
}

/* ---------- DARK (default) ---------- */
html[data-theme="dark"] {
  --bg: #0c0d10;
  --bg-elev: #0c0f17;
  --bg-elev-2: #0c0f17;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --hairline: rgba(255,255,255,.08);
  --hairline-strong: rgba(255,255,255,.14);
  --accent-border: rgba(20,245,204,.32);
  --text: #f1f6f4;
  --text-soft: rgba(241,246,244,.7);
  --text-faint: rgba(241,246,244,.58);
  --text-mono: rgba(20,245,204,.85);
  --accent: var(--aqua);
  --accent-ink: #04201b;
  --glow: 0 0 0 1px rgba(20,245,204,.45), 0 0 38px -8px rgba(20,245,204,.5);
  --glow-soft: 0 0 80px -20px rgba(20,245,204,.4);
  --grid-line: rgba(255,255,255,.04);
  --mesh-1: rgba(20,245,204,.12);
  --mesh-2: rgba(20,245,204,.06);
  --mesh-3: rgba(190,255,243,.04);
  --card-bg: #0c0f17;
  --code-bg: #0c0f17;
  color-scheme: dark;
}

/* ---------- LIGHT (accessible) ---------- */
html[data-theme="light"] {
  --bg: #f2f5f4;
  --bg-elev: #ffffff;
  --bg-elev-2: #ffffff;
  --surface: rgba(0,40,35,.05);
  --surface-2: rgba(0,40,35,.07);
  --hairline: rgba(0,40,35,.14);
  --hairline-strong: rgba(0,40,35,.26);
  --accent-border: rgba(0,108,106,.6);
  --text: #020f0b;
  --text-soft: #2a3d36;
  --text-faint: #4d6359;
  --text-mono: #006c6a;
  --accent: #006c6a;
  --accent-ink: #ffffff;
  --glow: 0 0 0 1px rgba(0,108,106,.5), 0 0 32px -8px rgba(20,245,204,.55);
  --glow-soft: 0 0 60px -16px rgba(0,108,106,.35);
  --grid-line: rgba(0,40,35,.07);
  --mesh-1: rgba(20,245,204,.18);
  --mesh-2: rgba(0,108,106,.16);
  --mesh-3: rgba(190,255,243,.35);
  --card-bg: linear-gradient(160deg, #ffffff, #f5faf8);
  --code-bg: #eef5f3;
  /* nav override tokens */
  --nav-bg-scrolled: rgba(3,14,11,.88);
  --nav-text-color: #f1f6f4;
  --nav-text-soft: rgba(241,246,244,.75);
  color-scheme: light;
}

/* ---- LIGHT: dark navbar for contrast ---- */
html[data-theme="light"] .nav { background: #030e0b; border-bottom-color: rgba(255,255,255,.08); }
html[data-theme="light"] .nav.scrolled {
  background: rgba(3,14,11,.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255,255,255,.1);
}
html[data-theme="light"] .nav .brand { color: #f1f6f4; }
html[data-theme="light"] .nav .brand-mark { box-shadow: 0 0 18px -4px rgba(20,245,204,.5); }
html[data-theme="light"] .nav .nav-link,
html[data-theme="light"] .nav .nav-trigger { color: rgba(241,246,244,.75); }
html[data-theme="light"] .nav .nav-link:hover,
html[data-theme="light"] .nav .nav-trigger:hover,
html[data-theme="light"] .nav .nav-link.active,
html[data-theme="light"] .nav .has-drop:hover .nav-trigger { color: #f1f6f4; background: rgba(255,255,255,.07); }
html[data-theme="light"] .nav .icon-btn { border-color: rgba(255,255,255,.16); color: rgba(241,246,244,.75); background: transparent; }
html[data-theme="light"] .nav .icon-btn:hover { border-color: var(--aqua); color: var(--aqua); }
html[data-theme="light"] .nav .lang-toggle { border-color: rgba(255,255,255,.16); }
html[data-theme="light"] .nav .lang-toggle button { color: rgba(241,246,244,.6); }
html[data-theme="light"] .nav .lang-toggle button.active { background: var(--aqua); color: #04201b; }
html[data-theme="light"] .nav .hamburger { border-color: rgba(255,255,255,.16); }
html[data-theme="light"] .nav .hamburger span { background: #f1f6f4; }
html[data-theme="light"] .nav .dropdown { background: #0a1a15; border-color: rgba(255,255,255,.1); }
html[data-theme="light"] .nav .dropdown a:hover { background: rgba(255,255,255,.06); }
html[data-theme="light"] .nav .dropdown strong { color: #f1f6f4; }
html[data-theme="light"] .nav .dropdown span { color: rgba(241,246,244,.55); }
html[data-theme="light"] .nav .dropdown-section { color: rgba(241,246,244,.35); }

/* ---- LIGHT: better section/card contrast ---- */
html[data-theme="light"] .card { border-color: rgba(0,40,35,.15); }
html[data-theme="light"] .card:hover { border-color: var(--accent-border); }
html[data-theme="light"] .list-card { border-color: rgba(0,40,35,.14); }
html[data-theme="light"] .stat { border-color: rgba(0,40,35,.13); }
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .mono { color: #006c6a; }
html[data-theme="light"] .faq-item { border-color: rgba(0,40,35,.14); background: #fff; }
html[data-theme="light"] .compare-col { border-color: rgba(0,40,35,.14); background: #fff; }
html[data-theme="light"] .compare-col.good { border-color: var(--accent); }
html[data-theme="light"] .mock { border-color: rgba(0,40,35,.15); }
html[data-theme="light"] .mock-bar { border-color: rgba(0,40,35,.12); background: #f5faf8; }
html[data-theme="light"] .news-card { border-color: rgba(0,40,35,.13); }
html[data-theme="light"] .mobile-menu { background: #030e0b; }
html[data-theme="light"] .mobile-menu a { color: #f1f6f4; border-bottom-color: rgba(255,255,255,.1); }
html[data-theme="light"] .mobile-menu .m-head { color: var(--aqua); }
html[data-theme="light"] .page-hero { background: #030e0b; color: #f1f6f4; }
html[data-theme="light"] .page-hero p { color: rgba(241,246,244,.75); }

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02", "cv11";
  transition: background .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--aqua); color: #04201b; }

/* ---------- ACCESSIBILITY: keyboard focus indicator ---------- */
:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}
/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--aqua); color: #04201b;
  padding: 10px 18px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-wide { width: 100%; max-width: var(--maxw-wide); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 8vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; position: relative; }

/* ============================================================
   BACKDROPS — meshes, grids, ambient glow
   ============================================================ */
.bg-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.bg-mesh::before {
  content: ""; position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle 600px at 15% 20%, var(--mesh-1), transparent 60%),
    radial-gradient(circle 700px at 85% 75%, var(--mesh-2), transparent 60%),
    radial-gradient(circle 500px at 50% 50%, var(--mesh-3), transparent 60%);
  filter: blur(40px);
  animation: meshDrift 22s var(--ease) infinite;
}
@keyframes meshDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(3%, -2%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(.98); }
}

.section > .container, .section > .container-wide { position: relative; z-index: 1; }

/* ---------- GHOST DECORATIVE TEXT ---------- */
.section[data-ghost] { overflow: hidden; }
.section[data-ghost]::after {
  content: attr(data-ghost);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(7rem, 18vw, 20rem);
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -.04em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20,245,204,.07);
  opacity: 1;
}
html[data-theme="light"] .section[data-ghost]::after {
  -webkit-text-stroke: 1px rgba(0,40,35,.06);
}

/* ---------- GRAIN TEXTURE (subtle noise overlay, site-wide) ---------- */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}
html[data-theme="light"] body::after { opacity: .022; }

/* ---------- SECTION DIVIDERS — gradient line that fades at edges ---------- */
.section + .section,
.section-tight + .section,
.section + .section-tight {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, var(--hairline) 25%, var(--hairline) 75%, transparent 100%) 1;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; }
h1 { letter-spacing: -.035em; }
.mono {
  font-family: var(--font-mono); font-weight: 500; font-size: .76rem;
  letter-spacing: .04em; color: var(--text-mono); text-transform: uppercase;
}
.mono-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--hairline-strong); border-radius: 100px;
  background: var(--surface); font-family: var(--font-display);
  font-size: .95rem; font-weight: 700; letter-spacing: 0; color: #14f5cc; text-transform: none;
}
.mono-tag::before { display: none; }

.section-head > .mono {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  text-transform: none; letter-spacing: 0; color: #14f5cc;
}
.eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.gx { color: var(--aqua); background: none; -webkit-background-clip: initial; background-clip: initial; }

.section-head { max-width: 760px; margin: 0 auto clamp(48px,6vw,80px); text-align: center; }
.section-head .mono { display: inline-block; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section-head p { color: var(--text-soft); margin-top: 18px; font-size: 1.05rem; max-width: 600px; margin-inline: auto; }

.lead { font-size: 1.12rem; color: var(--text-soft); line-height: 1.6; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: 13px 24px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap; line-height: 1; letter-spacing: -.005em;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn-primary { background: var(--aqua); color: #04201b; border-color: var(--aqua); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(20,245,204,.6); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--hairline-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-outline:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-pulse { box-shadow: 0 0 0 0 rgba(20,245,204,.5); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20,245,204,.5); }
  70% { box-shadow: 0 0 0 14px rgba(20,245,204,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,245,204,0); }
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--font-display); font-weight: 500; font-size: .94rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), backdrop-filter .35s, border-color .35s, height .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--hairline);
  height: 62px;
}
.nav .container-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--aqua), var(--teal-mid));
  display: grid; place-items: center; color: #04201b; flex: none;
  box-shadow: 0 0 22px -6px rgba(20,245,204,.6);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { display: inline-flex; align-items: baseline; }
.brand-name b { font-weight: 700; }
.brand-name span { color: var(--accent); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > * { position: relative; }
.nav-link, .nav-trigger {
  font-family: var(--font-display); font-weight: 500; font-size: .92rem; letter-spacing: 0;
  color: var(--text-soft); padding: 9px 13px; border-radius: 9px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none; transition: color .2s, background .2s;
}
.nav-link:hover, .nav-trigger:hover, .nav-link.active, .has-drop:hover .nav-trigger { color: var(--text); background: var(--surface); }
.nav-trigger svg { width: 13px; height: 13px; transition: transform .3s; opacity: .6; }
.has-drop:hover .nav-trigger svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 280px; background: var(--bg-elev); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 8px; opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  box-shadow: 0 22px 60px -16px rgba(0,0,0,.55), 0 0 0 1px var(--hairline);
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 9px; transition: background .15s; }
.dropdown a:hover { background: var(--surface); }
.dropdown a strong { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--text); }
.dropdown a span { font-size: .77rem; color: var(--text-faint); }
.dropdown-section { padding: 6px 12px; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--hairline);
  background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: all .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 16px; height: 16px; }
.lang-toggle {
  display: flex; align-items: center; border: 1px solid var(--hairline); border-radius: 9px; overflow: hidden;
  font-family: var(--font-mono);
}
.lang-toggle button { font-weight: 500; font-size: .72rem; padding: 8px 10px; background: transparent; border: none; color: var(--text-faint); cursor: pointer; transition: all .2s; letter-spacing: .03em; }
.lang-toggle button.active { background: var(--accent); color: var(--accent-ink); }
.theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-sun { display: block; }
html[data-theme="light"] .theme-icon-moon { display: none; }

.hamburger { display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--hairline); background: transparent; cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); border-radius: 2px; transition: all .3s var(--ease); }
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 24px; }
body.menu-open .hamburger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  padding: calc(var(--nav-h) + 24px) 24px 40px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--text);
  padding: 14px 0; border-bottom: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a::after { content: "→"; opacity: .35; }
.mobile-menu .m-group { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.mobile-menu .m-group > .m-head { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.mobile-menu .m-group a { font-size: 1.1rem; font-weight: 500; padding: 8px 0; border: none; }
.mobile-menu .m-actions { display: flex; gap: 10px; margin-top: 28px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding-top: calc(var(--nav-h) + 30px);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% 38%, var(--mesh-1), transparent 70%),
    radial-gradient(ellipse 700px 500px at 12% 80%, var(--mesh-2), transparent 70%),
    radial-gradient(ellipse 700px 500px at 88% 20%, var(--mesh-3), transparent 70%);
  filter: blur(20px);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; z-index: 2; background: linear-gradient(180deg, transparent, var(--bg) 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 3; text-align: center; }
.hero h1 { font-size: clamp(2.8rem, 8.5vw, 6.8rem); margin: 24px 0; }
.hero h1 .ln1, .hero h1 .ln2 { display: block; }
.hero h1 .ln2 { color: #14f5cc; }
.type-caret { display: inline-block; width: .04em; height: .85em; background: var(--aqua); margin-left: .03em; vertical-align: text-bottom; animation: caret 1s steps(1) infinite; box-shadow: 0 0 10px var(--aqua); }
@keyframes caret { 50% { opacity: 0; } }
.hero p { max-width: 640px; margin: 26px auto 0; font-size: clamp(1.02rem,1.8vw,1.2rem); color: var(--text-soft); }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* PAGE HERO (interior pages) */
.page-hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 60px; overflow: hidden; }
.page-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .8; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, var(--mesh-1), transparent 70%),
    radial-gradient(ellipse 500px 300px at 100% 100%, var(--mesh-2), transparent 70%);
  filter: blur(10px);
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 2; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.page-hero .container { position: relative; z-index: 3; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 18px 0 0; }
.page-hero p { max-width: 640px; margin: 22px auto 0; color: var(--text-soft); font-size: 1.08rem; }
.page-hero-cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CARDS / BENTO / SURFACES
   ============================================================ */
.surface {
  position: relative; background: var(--bg-elev); border: 1px solid var(--hairline);
  border-radius: var(--rad-lg); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.surface-glow:hover { border-color: var(--accent-border); box-shadow: var(--glow-soft); transform: translateY(-3px); }

.card {
  position: relative; background: var(--card-bg); border: 1px solid var(--hairline);
  border-radius: var(--rad-lg); padding: 28px; overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
  isolation: isolate;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(20,245,204,.18), transparent 40%);
  opacity: 0; transition: opacity .4s; z-index: -1;
}
.card:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: var(--glow-soft); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: .95rem; }
.card .mono { display: block; margin-bottom: 14px; }
.card .link-arrow { margin-top: 22px; }
.exp-card { display: flex; flex-direction: column; background: var(--bg-elev); min-height: 280px; }
.exp-card svg { color: #14f5cc; }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  border: 1px solid var(--accent-border); color: var(--accent); margin-bottom: 22px;
  transition: all .3s;
}
.card:hover .card-icon { background: var(--accent); color: var(--accent-ink); }
.card-icon svg { width: 22px; height: 22px; }

/* BENTO grid */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); }
.bento > * { grid-column: span 2; }
.bento .b-wide { grid-column: span 3; }
.bento .b-full { grid-column: span 6; }
.bento .b-tall { grid-row: span 2; }
.bento .b-3 { grid-column: span 3; }
.bento .b-4 { grid-column: span 4; }

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

/* uniform resource hub cards */
.res-card { display: flex; flex-direction: column; min-height: 300px; }
.res-card .mono { margin-top: 18px; }
.res-card h3 { font-size: 1.3rem; margin-top: 10px; }
.res-card p { margin-top: 8px; }
.res-card .link-arrow { margin-top: auto; padding-top: 22px; }

/* card variants */
.card-glass { background: color-mix(in srgb, var(--bg-elev) 65%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.card-dark { background: #0c0f17; border-color: var(--hairline-strong); }
html[data-theme="light"] .card-dark { background: #0c0f17; color: #f1f6f4; border-color: rgba(255,255,255,.12); }
html[data-theme="light"] .card-dark p { color: rgba(241,246,244,.7); }
html[data-theme="light"] .card-dark .mono { color: var(--aqua); }
.card-accent { background: linear-gradient(150deg, var(--aqua), var(--teal-mid)); color: #04201b; border-color: var(--aqua); }
.card-accent .mono { color: rgba(4,32,27,.7); }
.card-accent p { color: rgba(4,32,27,.85); }
.card-accent .card-icon { background: rgba(4,32,27,.18); border-color: rgba(4,32,27,.25); color: #04201b; }

/* mini-card / list-card */
.list-card {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--rad-md);
  border: 1px solid var(--hairline); background: var(--bg-elev); transition: all .3s var(--ease);
}
.list-card:hover { border-color: var(--accent-border); transform: translateX(3px); }
.list-card .lic {
  width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--surface); color: var(--accent); border: 1px solid var(--hairline);
}
.list-card .lic svg { width: 18px; height: 18px; }
.list-card h4 { font-size: 1rem; margin-bottom: 4px; }
.list-card p { color: var(--text-soft); font-size: .88rem; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat { padding: 26px; border: 1px solid var(--hairline); border-radius: var(--rad-md); background: var(--bg-elev); transition: all .3s; position: relative; overflow: hidden; }
.stat:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.stat .mono { display: block; margin-bottom: 14px; color: var(--text-faint); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem,4.6vw,3.2rem); line-height: 1; color: var(--text); letter-spacing: -.03em; }
.stat .num .suf { color: var(--accent); }
.stat .lbl { margin-top: 14px; font-size: .88rem; color: var(--text-soft); }

/* ============================================================
   MARQUEE / CHIPS
   ============================================================ */
.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); padding: 6px 0; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px;
  border: 1px solid var(--hairline); border-radius: 100px; background: var(--bg-elev);
  font-family: var(--font-mono); font-weight: 500; font-size: .85rem; color: var(--text-soft); white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 8px var(--aqua); }
.chip:hover { border-color: var(--accent-border); color: var(--text); }

/* ============================================================
   GLOBE / PRESENCE
   ============================================================ */
.globe-wrap {
  position: relative; border: 1px solid var(--hairline); border-radius: var(--rad-xl); overflow: hidden;
  background: var(--bg-elev);
  min-height: 460px;
}
.globe-wrap::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle 280px at 50% 50%, color-mix(in srgb, var(--aqua) 12%, transparent), transparent 65%);
}
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-overlay {
  position: absolute; top: 22px; left: 22px; right: 22px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none;
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint);
}
.globe-overlay .tag { background: var(--bg-elev); border: 1px solid var(--hairline); padding: 6px 11px; border-radius: 8px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 14px; background: var(--bg-elev); border: 1px solid var(--hairline); border-radius: var(--rad-xl); padding: clamp(24px,3vw,36px); position: relative; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: .96rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; transition: all .2s; resize: vertical;
}
.field textarea { min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================
   PROCESS / STEPS / TIMELINE
   ============================================================ */
.process-section-wrap { position: relative; padding-block: 80px; }
/* Container for badge + circle — badge sits ABOVE the circle */
.process {
  display: flex; justify-content: center; align-items: flex-start;
  flex-wrap: wrap; gap: 24px; padding-top: 28px;
  position: relative;
}
.card-outer { display: flex; flex-direction: column; align-items: center; width: clamp(160px, 19vw, 230px); }
/* Badge above the circle */
.pnum {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--aqua); color: #04201b;
  font-family: var(--font-display); font-weight: 800; font-size: .92rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(20,245,204,.65), 0 0 36px rgba(20,245,204,.2);
  margin-bottom: -19px; position: relative; z-index: 2;
  transition: box-shadow .3s var(--ease);
}
.card-outer:hover .pnum { box-shadow: 0 0 28px rgba(20,245,204,.85), 0 0 52px rgba(20,245,204,.3); }
/* Circle card */
.pstep {
  width: clamp(160px, 19vw, 230px); height: clamp(160px, 19vw, 230px);
  border-radius: 50%; border: 1px solid rgba(20,245,204,.18);
  background: radial-gradient(ellipse at 50% 22%, rgba(20,245,204,.09) 0%, rgba(12,15,23,.88) 65%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card-outer:hover .pstep { transform: translateY(-6px); border-color: rgba(20,245,204,.4); box-shadow: 0 18px 48px rgba(20,245,204,.07); }
.pstep h4 { font-size: clamp(.95rem, 1.4vw, 1.15rem); font-weight: 700; margin-bottom: 9px; line-height: 1.2; }
.pstep p  { color: var(--text-soft); font-size: clamp(.68rem, .9vw, .82rem); font-weight: 300; line-height: 1.6; }

/* timeline (vertical for industries/solutions) */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--accent-border), transparent); }
.tline { position: relative; padding: 0 0 32px; }
.tline::before { content: ""; position: absolute; left: -27px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 14px -2px var(--accent); }
.tline .mono { display: block; margin-bottom: 6px; }
.tline h4 { font-size: 1.1rem; margin-bottom: 6px; }
.tline p { color: var(--text-soft); font-size: .94rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--hairline); border-radius: var(--rad-md); background: var(--bg-elev); overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: var(--accent-border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text); }
.faq-q .pm { flex: none; width: 20px; height: 20px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s; }
.faq-q .pm::before { top: 9px; left: 0; right: 0; height: 2px; }
.faq-q .pm::after { left: 9px; top: 0; bottom: 0; width: 2px; }
.faq-item.open .faq-q .pm::after { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > p { min-height: 0; overflow: hidden; margin: 0; padding: 0 22px; color: var(--text-soft); transition: padding .25s var(--ease); }
.faq-item.open .faq-a > p { padding: 4px 22px 22px; }

/* ============================================================
   COMPARE (without / with)
   ============================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { border: 1px solid var(--hairline); border-radius: var(--rad-lg); padding: 28px; background: var(--bg-elev); }
.compare-col.good { border-color: var(--accent-border); box-shadow: var(--glow-soft); }
.compare-badge { display: inline-flex; padding: 6px 14px; border-radius: 100px; font-family: var(--font-mono); font-weight: 500; font-size: .74rem; margin-bottom: 18px; letter-spacing: .04em; text-transform: uppercase; }
.compare-badge.bad { color: #ff7a7a; border: 1px solid rgba(255,122,122,.32); }
.compare-badge.ok { color: var(--accent); border: 1px solid var(--accent-border); }
.compare-col h4 { font-size: 1.15rem; margin-bottom: 16px; }
.clist { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.clist li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-soft); font-size: .94rem; line-height: 1.5; }
.clist li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }
.clist.bad li svg { color: #ff7a7a; }
.clist.ok li svg { color: var(--accent); }

/* ============================================================
   MOCK BROWSER / DASHBOARD
   ============================================================ */
.mock { border: 1px solid var(--hairline); border-radius: var(--rad-lg); overflow: hidden; background: var(--bg-elev); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--hairline); }
.mock-bar .d { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-strong); }
.mock-bar .url { margin-left: 10px; font-size: .76rem; color: var(--text-faint); font-family: var(--font-mono); }
.mock-body { padding: 22px; }
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.dash-stat { padding: 16px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); }
.dash-stat small { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); display: block; }
.dash-stat b { font-family: var(--font-display); font-size: 1.3rem; display: block; margin-top: 6px; color: var(--text); }
.dash-stat.up b { color: var(--accent); }
.dash-bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; margin-top: 14px; }
.dash-bars span { flex: 1; background: linear-gradient(180deg, var(--aqua), var(--teal-mid)); border-radius: 5px 5px 0 0; opacity: .9; transition: opacity .25s; }

/* CHAT MOCK — self-contained dark phone, theme-independent */
.phone-mock { display: flex; justify-content: center; }
.phone-frame { width: 100%; max-width: 340px; height: 640px; background: #0c0f17; border: 2.5px solid rgba(255,255,255,.14); border-radius: 44px; overflow: hidden; box-shadow: 0 36px 70px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04); display: flex; flex-direction: column; }
.phone-notch { width: 100px; height: 24px; background: #050807; border-radius: 0 0 18px 18px; margin: 0 auto; flex-shrink: 0; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 10px; background: #0c0f17; flex-shrink: 0; }
.chat-head .av { width: 38px; height: 38px; border-radius: 50%; background: var(--aqua); display: grid; place-items: center; color: #04201b; font-weight: 700; font-size: .9rem; font-family: var(--font-display); flex-shrink: 0; }
.chat-info { display: flex; flex-direction: column; gap: 2px; }
.chat-name { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: #f1f5f4; }
.chat-sub { font-family: var(--font-mono); font-size: .65rem; color: rgba(241,245,244,.45); }
.chat-body { padding: 18px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; scroll-behavior: smooth; background: radial-gradient(120% 60% at 50% 0%, rgba(20,245,204,.05), transparent 60%); }
.chat-body::-webkit-scrollbar { width: 0; }
.bubble { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; opacity: 0; transform: translateY(6px); animation: bubbleIn .4s var(--ease) forwards; }
@keyframes bubbleIn { to { opacity: 1; transform: none; } }
.bubble.in { background: #161b24; color: #e9eef0; border: 1px solid rgba(255,255,255,.06); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.out { background: var(--aqua); color: #04201b; align-self: flex-end; border-bottom-right-radius: 5px; }
.bubble.typing { background: #161b24; border: 1px solid rgba(255,255,255,.06); align-self: flex-end; border-bottom-right-radius: 5px; display: inline-flex; gap: 4px; padding: 14px 16px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(241,245,244,.5); animation: typing 1.2s var(--ease) infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
/* Payment card bubble */
.bubble.pay-card { padding: 0; background: transparent; border: 0; align-self: flex-end; overflow: hidden; border-radius: 16px; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.pay-head { background: linear-gradient(135deg, var(--aqua), #0bbf9e); color: #04201b; padding: 15px 18px 13px; display: flex; flex-direction: column; gap: 5px; }
.pay-label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.pay-amount { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -.02em; }
.pay-cta { background: #0c0f17; color: var(--aqua); font-family: var(--font-display); font-weight: 700; font-size: .88rem; padding: 13px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid rgba(255,255,255,.06); }
.pay-cta svg { width: 16px; height: 16px; }
/* Decorative input bar */
.chat-foot { padding: 11px 12px; border-top: 1px solid rgba(255,255,255,.07); background: #0c0f17; display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.chat-foot .chat-input { flex: 1; background: #161b24; border: 1px solid rgba(255,255,255,.06); border-radius: 100px; padding: 10px 16px; font-family: var(--font-display); font-size: .82rem; color: rgba(241,245,244,.4); }
.chat-foot .chat-send { width: 36px; height: 36px; border-radius: 50%; background: var(--aqua); display: grid; place-items: center; flex-shrink: 0; }
.chat-foot .chat-send svg { width: 16px; height: 16px; color: #04201b; }

/* DATA TICKER */
.ticker { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid var(--hairline); border-radius: 100px; background: var(--bg-elev); font-family: var(--font-mono); font-size: .76rem; color: var(--text-soft); overflow: hidden; }
.ticker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); animation: pulse-dot 1.6s var(--ease) infinite; flex: none; }
.ticker .ttext { white-space: nowrap; }

/* ============================================================
   VALUES
   ============================================================ */
.value-card { background: var(--card-bg); border: 1px solid var(--hairline); border-radius: var(--rad-lg); padding: 32px; position: relative; overflow: hidden; transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.value-card:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.25); }
.value-card .vnum { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); margin-bottom: 18px; display: block; }
.value-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.value-card p { color: var(--text-soft); font-size: .94rem; line-height: 1.7; }
.value-card::before {
  content: ""; position: absolute; top: -40%; right: -40%; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  opacity: 0; transition: opacity .45s;
}
.value-card:hover::before { opacity: 1; }
/* animated icon */
.val-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  background: rgba(20,245,204,.08); border: 1px solid rgba(20,245,204,.15);
  display: grid; place-items: center; color: var(--aqua);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.val-icon svg { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.value-card:hover .val-icon { background: rgba(20,245,204,.14); box-shadow: 0 0 24px rgba(20,245,204,.25); transform: scale(1.08); }
.value-card:hover .val-icon svg { transform: scale(1.12) rotate(-4deg); }

/* ============================================================
   NEWS GRID
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.news-card { border: 1px solid var(--hairline); border-radius: var(--rad-lg); overflow: hidden; background: var(--bg-elev); transition: all .35s var(--ease); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--glow-soft); }
.news-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-deep), #061312); display: grid; place-items: center; color: var(--aqua); }
html[data-theme="light"] .news-thumb { background: linear-gradient(135deg, #02100c, #04221c); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .5s var(--ease); }
.news-thumb-contain img { object-fit: contain; background: #000; }
.news-card:hover .news-thumb img { transform: scale(1.04); filter: saturate(1.08); }
.news-card:hover .news-thumb-contain img { transform: none; filter: saturate(1.08); }
.news-thumb-image::after,
.article-media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(42px, 6vw, 78px);
  aspect-ratio: 1;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
}
.news-thumb svg { width: 64px; height: 64px; opacity: .55; }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card h3 { font-size: 1.12rem; line-height: 1.25; }
.news-card p { color: var(--text-soft); font-size: .9rem; }
.news-card .link-arrow { margin-top: auto; }
.news-featured { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 24px; min-height: 340px; }
.news-featured .news-thumb { aspect-ratio: auto; min-height: 340px; }

/* ============================================================
   NEWS ARTICLE
   ============================================================ */
.article-hero { padding: calc(var(--nav-h) + 82px) 0 54px; text-align: center; }
.article-hero h1 { max-width: 960px; margin: 14px auto 0; font-size: clamp(2.25rem, 6vw, 4.6rem); color: var(--accent); text-shadow: 0 0 28px rgba(20,245,204,.28); }
.article-hero p { max-width: 760px; margin: 22px auto 0; color: var(--text-soft); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.article-media { position: relative; overflow: hidden; max-width: 980px; margin: 0 auto; border: 1px solid var(--hairline); background: var(--surface); }
.article-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-body { max-width: 620px; margin: 0 auto; color: var(--text-soft); font-size: clamp(1.04rem, 1.5vw, 1.18rem); line-height: 1.75; }
.article-body h2 { color: var(--text); font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 42px 0 16px; letter-spacing: 0; }
.article-body p + p { margin-top: 22px; }
.article-body strong { color: var(--text); }
.article-body ol,
.article-body ul { margin: 22px 0 34px; padding-left: 26px; color: var(--text-soft); font-size: .95rem; line-height: 1.65; }
.article-body li + li { margin-top: 12px; }
.article-quote { margin: 44px 0; padding-left: 22px; border-left: 2px solid var(--accent); color: var(--text); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.55; }
.article-inline-media { max-width: 760px; margin: 54px auto; padding: 18px; border-radius: 6px; background: #f2f4f5; }
.article-inline-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-inline-media.portrait { max-width: 520px; }
.article-inline-media.portrait img { aspect-ratio: 3/4; object-fit: cover; }
.article-cta { margin-top: 48px; }
.article-cta strong { display: block; margin-bottom: 8px; }
.related-posts h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; letter-spacing: 0; margin-bottom: 42px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); justify-content: center; gap: 24px; }
.related-card { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.related-card:hover img { transform: scale(1.04); filter: saturate(1.08); }
.related-card figure { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--surface); }
.related-card figure::after { content: ""; position: absolute; top: 0; right: 0; width: 46px; aspect-ratio: 1; background: linear-gradient(135deg, transparent 50%, var(--accent) 50%); }
.related-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .5s var(--ease); }
.related-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--text-soft); font-size: .86rem; }
.related-meta .mono { color: var(--accent); }
.related-card h3 { font-size: 1.08rem; line-height: 1.25; letter-spacing: 0; }
.related-card p { color: var(--text-soft); font-size: .92rem; line-height: 1.55; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--hairline); padding: 76px 0 32px; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); gap: 28px; }
.footer-brand p { color: var(--text-soft); margin: 18px 0 22px; max-width: 320px; font-size: .9rem; }
.footer-col h3 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-soft); padding: 5px 0; font-size: .9rem; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--text-soft); transition: all .25s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.socials a svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--text-faint); font-size: .84rem; font-family: var(--font-mono); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .links { display: flex; gap: 18px; }

/* ============================================================
   CURSOR GLOW + REVEAL
   ============================================================ */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: 60; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(20,245,204,.09), transparent 60%);
  transition: opacity .3s; opacity: 0; mix-blend-mode: screen;
}
html[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(0,108,106,.1), transparent 60%); mix-blend-mode: multiply; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-r.in { opacity: 1; transform: none; }
.reveal-s { opacity: 0; transform: scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-s.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, .reveal-l, .reveal-r, .reveal-s, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento > * { grid-column: span 2; }
  .bento .b-wide, .bento .b-3, .bento .b-4 { grid-column: span 4; }
  .bento .b-full { grid-column: span 4; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cards-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .desktop-only { display: none !important; }
  .compare, .cards-3, .news-grid, .related-grid, .stats { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured .news-thumb { aspect-ratio: 16/10; min-height: 0; }
  .card-outer { width: clamp(130px, 38vw, 200px); }
  .pstep { width: clamp(130px, 38vw, 200px); height: clamp(130px, 38vw, 200px); }
  .cursor-glow { display: none; }
}
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 18px; }
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento .b-wide, .bento .b-3, .bento .b-4, .bento .b-full { grid-column: span 1; }
  .bento .b-tall { grid-row: span 1; }
  .cards-4, .cards-3, .cards-2, .stats, .news-grid, .related-grid, .form-row, .compare { grid-template-columns: 1fr; }
  .process { gap: 40px 16px; }
  .card-outer { width: clamp(140px, 42vw, 180px); }
  .pstep { width: clamp(140px, 42vw, 180px); height: clamp(140px, 42vw, 180px); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { min-height: 92svh; }
}

/* sticky CTA mobile */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    display: flex; position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 80;
    justify-content: center;
  }
  .mobile-cta .btn { width: 100%; justify-content: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); }
}

/* ============================================================
   GLOBAL PRESENCE MAP (D3 / TopoJSON) — branded
   ============================================================ */
.bc-map-wrapper { display: flex; gap: 16px; align-items: stretch; }
.bc-map-container {
  flex: 1 1 68%; align-self: stretch; position: relative; min-width: 0;
  min-height: 460px; width: 100%;
  background-color: #0c0f17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  border-radius: var(--rad-lg); border: 1px solid var(--hairline); overflow: hidden;
}
#bcMapSVG { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#bcMapSVG path.country { transition: fill .18s ease; }

.bc-tooltip {
  position: fixed; top: 0; left: 0; background: #0c0f17; border: 1px solid var(--aqua);
  border-radius: 10px; padding: 8px 14px; display: flex; align-items: center; gap: 8px;
  pointer-events: none; opacity: 0; transition: opacity .12s ease; z-index: 9999;
  box-shadow: 0 0 20px rgba(20,245,204,.18), 0 4px 12px rgba(0,0,0,.5); will-change: transform;
}
.bc-tooltip.visible { opacity: 1; }
.bc-tooltip-flag { font-size: 18px; line-height: 1; }
.bc-tooltip-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; font-family: var(--font-display); }

.bc-map-loader {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: #0c0f17; gap: 14px; transition: opacity .6s ease;
}
.bc-map-loader.hidden { opacity: 0; pointer-events: none; }
.bc-loader-dots { display: flex; gap: 6px; }
.bc-loader-dot { width: 8px; height: 8px; background: var(--aqua); border-radius: 50%; animation: bcLdPulse 1.2s ease-in-out infinite; }
.bc-loader-dot:nth-child(2) { animation-delay: .2s; }
.bc-loader-dot:nth-child(3) { animation-delay: .4s; }
.bc-loader-text { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: 2px; font-weight: 600; text-transform: uppercase; }
@keyframes bcLdPulse { 0%,80%,100% { transform: scale(.6); opacity: .3; } 40% { transform: scale(1.2); opacity: 1; } }

.bc-info-panel {
  flex: 0 0 280px; align-self: stretch; background: #0c0f17; border: 1px solid var(--hairline);
  border-radius: var(--rad-lg); padding: 22px 18px; display: flex; flex-direction: column; gap: 14px;
}
.bc-panel-contact h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.bc-panel-contact p { font-size: .86rem; color: var(--text-soft); line-height: 1.55; }
.bc-panel-email {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px;
  background: rgba(20,245,204,.05); border: 1px solid var(--hairline); border-radius: 10px;
  text-decoration: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.bc-panel-email:hover { border-color: var(--aqua); background: rgba(20,245,204,.1); box-shadow: 0 0 14px rgba(20,245,204,.12); }
.bc-panel-email-icon { width: 30px; height: 30px; background: var(--aqua); border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; color: #04201b; }
.bc-panel-email-text { font-size: .84rem; font-weight: 500; color: var(--text); }
.bc-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--hairline) 40%, var(--hairline) 60%, transparent); }

.bc-loc-card {
  padding: 12px 14px; background: rgba(255,255,255,.02); border: 1px solid var(--hairline);
  border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.bc-loc-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--aqua); opacity: 0; transition: opacity .2s; }
.bc-loc-card:hover, .bc-loc-card.active { border-color: var(--aqua); background: rgba(20,245,204,.06); box-shadow: 0 0 20px rgba(20,245,204,.08); }
.bc-loc-card:hover::before, .bc-loc-card.active::before { opacity: 1; }
.bc-loc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.bc-loc-flag { font-size: 16px; }
.bc-loc-country { font-size: .62rem; font-weight: 700; color: var(--aqua); text-transform: uppercase; letter-spacing: 2px; }
.bc-loc-office { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.bc-loc-address { font-size: .76rem; color: var(--text-faint); line-height: 1.5; }

.bc-stats-strip { display: flex; border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; flex-shrink: 0; margin-top: auto; }
.bc-stat { flex: 1; padding: 10px 4px; text-align: center; border-right: 1px solid var(--hairline); }
.bc-stat:last-child { border-right: none; }
.bc-stat-num { font-size: 1.1rem; font-weight: 700; color: var(--aqua); display: block; line-height: 1; margin-bottom: 3px; font-family: var(--font-display); }
.bc-stat-label { font-size: .58rem; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

@media (max-width: 900px) {
  .bc-map-wrapper { flex-direction: column; align-items: stretch; }
  .bc-info-panel { flex: none; width: 100%; }
  .bc-map-container { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ===== INDUSTRIES SCAN LINE ===== */
/* ::before is free on .card (::after = radial glow). Use ::before for the scan. */
.ind-card {
  border-left: 2px solid transparent;
  transition: border-left-color .35s var(--ease), border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.ind-card:hover { border-left-color: var(--aqua); }
/* Soft gradient that travels top → bottom through the card on hover */
.ind-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 55%; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(20,245,204,.11) 0%, transparent 100%);
  transform: translateY(-102%);
}
.ind-card:hover::before { animation: indScan .7s ease-in-out; }
@keyframes indScan {
  from { transform: translateY(-102%); }
  to   { transform: translateY(220%); }
}
/* Number flip on hover */
.ind-num { display: inline-block; transition: color .3s, transform .5s var(--ease); }
.ind-card:hover .ind-num { color: var(--aqua); transform: rotateY(360deg); }

/* ===== TESTIMONIAL TYPEWRITER ===== */
.tw-cursor {
  display: inline-block; width: 1.5px; height: .88em;
  background: var(--aqua); vertical-align: text-bottom;
  margin-left: 2px;
  animation: twBlink .75s step-end infinite;
}
@keyframes twBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Process — light mode contrast */
html[data-theme="light"] .pstep {
  background: radial-gradient(ellipse at 50% 22%, rgba(20,245,204,.14) 0%, rgba(255,255,255,.97) 65%);
  border: 1px solid rgba(0,40,35,.14);
}
html[data-theme="light"] .pstep h4 { color: var(--text); }
html[data-theme="light"] .pnum { box-shadow: 0 0 14px rgba(20,245,204,.5), 0 0 28px rgba(20,245,204,.15); }

/* ===== LEGAL PAGES ===== */
.legal-wrap { max-width: 760px; margin: 0 auto; padding-block: clamp(48px,7vw,96px); }
.legal-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.legal-meta .mono { font-size: .72rem; color: var(--text-faint); }
.legal-section { margin-bottom: 48px; }
.legal-section h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); letter-spacing: -.01em; }
.legal-section p { color: var(--text-soft); line-height: 1.75; margin-bottom: 12px; font-size: .97rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.legal-section ul li { display: flex; gap: 10px; color: var(--text-soft); font-size: .97rem; line-height: 1.65; }
.legal-section ul li::before { content: '—'; color: var(--aqua); flex-shrink: 0; font-weight: 700; }
.legal-section a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { opacity: .8; }
