/* ============================================================
   Datasurfr — Design System v3 · Light, elegant, animated
   Logo palette: navy #1D3752 · teal #2E7693 · aqua #4EBDC1
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-2: #f5f9fb;
  --bg-3: var(--hover);
  --panel: #10283f;           /* dark product panels for contrast */
  --panel-2: #16324e;
  --card: #ffffff;
  --line: #e3ecf1;
  --line-2: #d2e0e8;
  --text: #16283a;
  --muted: #5b7288;
  --navy: #1d3752;
  --heading: #1d3752;
  --surface: #ffffff;
  --hover: #eef4f7;
  --nav-ink: #45596d;
  --nav-bg: rgba(255,255,255,0.92);
  --drop-bg: rgba(255,255,255,0.98);
  --icon-bg: #f2f6f9;
  --icon-bg-hover: #e9f1f5;
  --icon-ink: #16283a;
  --teal: #2e7693;
  --teal-deep: #23607a;
  --aqua: #4ebdc1;
  --aqua-deep: #2ba7ac;
  --coral: #f0764a;
  --grad: linear-gradient(90deg, #2e7693, #4ebdc1);
  --radius: 18px;
  --shadow-sm: 0 4px 16px rgba(29,55,82,0.07);
  --shadow: 0 16px 44px rgba(29,55,82,0.12);
  --maxw: 1180px;
  --display: 'Sora', 'Inter', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

::selection { background: rgba(78,189,193,0.3); }

/* ---------- Accessibility & focus ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Reading progress ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 300; transition: width .12s linear; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01s !important; }
}

/* ---------- Header — floating island nav ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 14px 0; pointer-events: none; transition: padding .25s; }
.site-header.scrolled { padding: 8px 0; }
.site-header .container { max-width: 1120px; }
.nav-wrap { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 10px 0 20px;
  background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--nav-border, var(--line));
  border-radius: 16px; box-shadow: var(--nav-shadow, 0 8px 30px rgba(29,55,82,0.08)), inset 0 1px 0 var(--nav-inset, rgba(255,255,255,0.9)); transition: box-shadow .25s; }
.site-header.scrolled .nav-wrap { box-shadow: var(--nav-shadow-scrolled, 0 12px 36px rgba(29,55,82,0.14)), inset 0 1px 0 var(--nav-inset, rgba(255,255,255,0.9)); }
.logo { display: flex; align-items: center; }
.logo-chip { display: inline-flex; align-items: center; transition: transform .2s; }
.logo-chip:hover { transform: translateY(-1px); }
.logo-chip img { height: 21px; display: block; }
nav.main-nav { display: flex; gap: 2px; align-items: center; }
nav.main-nav a { position: relative; color: var(--nav-ink); font-weight: 500; font-size: 13.5px; letter-spacing: 0.1px; padding: 8px 12px; border-radius: 9px; line-height: 1; transition: color .15s, background .15s; }
nav.main-nav a:hover { color: var(--heading); background: var(--hover); }
nav.main-nav a.active { color: var(--heading); font-weight: 700; background: var(--hover); }
nav.main-nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-cta { display: flex; align-items: center; gap: 6px; }

/* Dropdowns */
.nav-item { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; font-family: var(--body); color: var(--nav-ink); font-weight: 500; font-size: 13.5px; letter-spacing: 0.1px; padding: 8px 12px; border-radius: 9px; line-height: 1; transition: color .15s, background .15s; }
.nav-drop-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-item:hover .nav-drop-btn { color: var(--heading); background: var(--hover); }
.nav-item:hover .nav-drop-btn svg { transform: rotate(180deg); }
.nav-item.active .nav-drop-btn { color: var(--heading); font-weight: 700; background: var(--hover); }
.nav-item::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.dropdown { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px); min-width: 224px;
  background: var(--drop-bg); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(29,55,82,0.16); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 250; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--nav-ink); font-weight: 500; font-size: 13.5px; line-height: 1.2; }
.dropdown a:hover { color: var(--heading); background: var(--hover); }

/* Mega panel — quiet, spacious, refined */
.nav-item.mega .dropdown { left: -18px; transform: translateY(8px); }
.nav-item.mega:hover .dropdown, .nav-item.mega:focus-within .dropdown { transform: translateY(0); }
.mega-panel { min-width: 730px; display: grid; grid-template-columns: 1.65fr 1fr; gap: 30px; padding: 26px 28px; border-radius: 20px; box-shadow: 0 24px 70px rgba(29,55,82,0.18); }
.mega-main { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; align-content: start; }
.mega-link { display: flex !important; align-items: flex-start; gap: 13px; padding: 12px 10px !important; border-radius: 12px; transition: background .18s; }
.mega-link .ml-ico { flex: 0 0 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--teal); margin-top: 1px; transition: color .2s; }
.mega-link .ml-ico svg { width: 19px; height: 19px; }
.mega-link .ml-txt { min-width: 0; }
.mega-link .ml-txt b { display: block; font-family: var(--display); font-size: 13.5px; font-weight: 600; color: var(--heading); letter-spacing: -0.1px; line-height: 1.3; }
.mega-link .ml-txt span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; line-height: 1.45; }
.mega-link .ml-arrow { display: none; }
.mega-link:hover { background: var(--hover); }
.mega-link:hover .ml-ico { color: var(--aqua-deep); }
.mega-link.overview { grid-column: 1 / -1; padding-bottom: 16px !important; margin-bottom: 10px; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.mega-link.overview .ml-txt b { font-size: 14px; }
.ai-tag { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 0.8px; color: #fff; background: var(--grad); border-radius: 5px; padding: 2px 6px; margin-left: 6px; vertical-align: 1px; }
.mega-side { display: flex; flex-direction: column; gap: 1px; padding-left: 30px; border-left: 1px solid var(--line); }
.mega-side h6 { font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); padding: 7px 10px 6px; }
.mega-side h6 + a { margin-top: 0; }
.mega-side > a { padding: 7px 10px; border-radius: 8px; color: var(--nav-ink); font-size: 13px; font-weight: 500; transition: color .15s, background .15s; }
.mega-side > a:hover { color: var(--heading); background: var(--hover); }
.mega-side h6:nth-of-type(2) { margin-top: 14px; }
.mega-feature { margin-top: 18px; padding: 13px 14px !important; border: 1px solid var(--line); border-radius: 12px; background: transparent !important; transition: border-color .2s, background .2s; }
.mega-feature b { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--heading); }
.mega-feature b .dot-live { flex: 0 0 auto; }
.mega-feature span { display: block; font-size: 11.5px; color: var(--muted); margin: 4px 0 8px; line-height: 1.45; }
.mega-feature em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--teal); }
.mega-feature:hover { border-color: rgba(78,189,193,0.5); background: rgba(78,189,193,0.05) !important; }
@media (max-width: 980px) { .mega-panel { min-width: 0; grid-template-columns: 1fr; } .mega-main { grid-template-columns: 1fr; } .mega-side { padding-left: 0; border-left: none; } }
.nav-cta .btn { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; box-shadow: none; }
.nav-cta .btn:hover { transform: none; box-shadow: 0 4px 14px rgba(29,55,82,0.25); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: transform .18s, box-shadow .18s, background .18s; font-family: var(--body); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(29,55,82,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29,55,82,0.32); color: #fff; background: #24445f; }
.btn-ghost { background: var(--surface); color: var(--heading); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-lg { padding: 16px 34px; font-size: 16px; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; background:
  radial-gradient(ellipse 60% 50% at 80% 0%, rgba(78,189,193,0.14), transparent),
  radial-gradient(ellipse 45% 40% at 5% 100%, rgba(46,118,147,0.08), transparent), var(--bg); }
.hero .grid-lines { position: absolute; inset: 0; background-image:
  linear-gradient(rgba(29,55,82,0.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(29,55,82,0.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero .container { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.hero h1 { font-family: var(--display); font-size: clamp(34px, 5.2vw, 62px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; max-width: 940px; color: var(--heading); text-wrap: balance; }
.hero h1.h1-stack { font-size: clamp(26px, 3.3vw, 40px); line-height: 1.24; letter-spacing: -0.018em; max-width: 620px; text-wrap: pretty; }
.hero h1.h1-stack .grad { display: inline-block; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .subhead { font-family: var(--display); font-size: clamp(19px, 2.1vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-top: 20px; }
.rotator { display: inline-block; position: relative; color: var(--coral); min-width: 5.2ch; }
.rotator span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .45s; white-space: nowrap; }
.rotator span.on { position: relative; opacity: 1; transform: none; }
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 640px; margin: 26px 0 38px; }
.hero p.lede strong { color: var(--heading); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero.sub { padding: 150px 0 76px; }

/* ---------- Hero split + animated infographic ---------- */
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero-viz { position: relative; height: 540px; }
.viz-stage { position: absolute; inset: 0; margin: auto; width: min(440px, 100%); height: 440px; }
.viz-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--viz-line, rgba(29,55,82,0.16)); animation: ringpulse 6s ease-in-out infinite; }
.viz-ring.r2 { inset: 62px; animation-delay: 1.5s; }
.viz-ring.r3 { inset: 124px; animation-delay: 3s; }
@keyframes ringpulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.015); } }
.viz-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(78,189,193,0.3), transparent 22%); animation: sweep 6s linear infinite; }
.viz-core { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 24px rgba(78,189,193,0.8); }
.viz-core::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--aqua); animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite; }
.viz-orbit { position: absolute; inset: 28px; animation: orbit 16s linear infinite; }
.viz-orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 14px rgba(240,118,74,0.85); }
.viz-orbit.o2 { inset: 90px; animation-duration: 24s; animation-direction: reverse; display: block; }
.viz-orbit.o2 i { background: var(--aqua); box-shadow: 0 0 14px rgba(78,189,193,0.85); width: 8px; height: 8px; }
@keyframes orbit { to { transform: rotate(360deg); } }
.viz-stage .ping { z-index: 2; }
.viz-arcs { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-arcs path { fill: none; stroke: var(--aqua); stroke-width: 1.6; stroke-linecap: round; opacity: 0;
  stroke-dasharray: 260; stroke-dashoffset: 260; animation: drawarc 6s ease-in-out infinite; }
.viz-arcs path.a2 { animation-delay: 2s; stroke: var(--teal); }
.viz-arcs path.a3 { animation-delay: 4s; stroke: var(--coral); }
@keyframes drawarc { 0% { stroke-dashoffset: 260; opacity: 0; } 15% { opacity: .65; } 55% { stroke-dashoffset: 0; opacity: .65; } 85%, 100% { stroke-dashoffset: -260; opacity: 0; } }
.float-card { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line-2); border-radius: 13px; padding: 11px 15px; font-size: 12.5px; line-height: 1.45; color: var(--muted); box-shadow: var(--shadow); max-width: 235px; animation: floaty 5.5s ease-in-out infinite; }
.float-card b { display: block; font-family: var(--display); font-size: 12.5px; font-weight: 700; color: var(--heading); margin-bottom: 2px; }
.float-card.warm { border-left: 3px solid var(--coral); }
.float-card.cool { border-left: 3px solid var(--aqua); }
.float-card.f1 { top: 3%; right: -3%; animation-delay: 0s; }
.float-card.f2 { top: 44%; left: -6%; animation-delay: 1.8s; display: block; }
.float-card.f3 { bottom: 4%; right: 2%; animation-delay: 3.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Hero type refinement ---------- */
.hero-grid h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.035em; }
.hero-grid .subhead { font-size: clamp(20px, 2.2vw, 27px); margin-top: 22px; }
.hero-grid p.lede { font-size: 17.5px; max-width: 480px; margin: 18px 0 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 34px; }
.hero-points span { position: relative; font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 0.2px; color: var(--heading); padding-left: 17px; white-space: nowrap; }
.hero-points span::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-viz { height: 400px; }
  .viz-stage { width: min(330px, 100%); height: 330px; }
  .float-card.f2 { left: 0; }
  .float-card.f1 { right: 0; }
}

/* ---------- SamAI 3D voice orb + ask bar ---------- */
.samai-stage { position: relative; max-width: 860px; margin: 30px auto 0; height: 356px; }
.samai-section { padding: 68px 0 72px !important;
  background: radial-gradient(75% 100% at 50% 0%, #17395a 0%, #0e2740 52%, #0a1c2e 100%) !important;
  position: relative; overflow: hidden; }
.samai-section::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); }
.samai-section .container { position: relative; z-index: 1; }
.samai-section .eyebrow { color: var(--aqua); }
.samai-section .section-title { color: #ffffff; }
.orb { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 264px; height: 264px; border-radius: 50%;
  background: conic-gradient(from 0deg, #2e7693, #4ebdc1, #7fd8db, #f0764a, #2e7693);
  animation: orbspin 18s linear infinite; filter: blur(52px); opacity: 0.4; }
@keyframes orbspin { to { transform: translateX(-50%) rotate(360deg); } }
[data-theme="dark"] .orb { opacity: 0.34; }
/* 3D pearl sphere */
.orb3d { position: absolute; top: 12px; left: 50%; margin-left: -108px; width: 216px; height: 216px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 33% 27%, #ffffff 0%, #f4f9fb 26%, #e0eff3 52%, #bfe0e7 76%, #93c9d6 100%);
  box-shadow: inset -26px -34px 64px rgba(46,118,147,0.3), inset 14px 16px 42px rgba(255,255,255,0.95),
              0 34px 80px rgba(4,14,24,0.55), 0 0 120px rgba(78,189,193,0.4);
  animation: breathe3d 5s ease-in-out infinite; }
.orb3d::before { content: ''; position: absolute; inset: 14%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(78,189,193,0.35), rgba(240,118,74,0.18), rgba(46,118,147,0.3), rgba(78,189,193,0.35));
  filter: blur(22px); animation: orbspin2 10s linear infinite; }
.orb3d::after { content: ''; position: absolute; top: 12%; left: 18%; width: 34%; height: 22%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.95), rgba(255,255,255,0)); transform: rotate(-18deg); }
@keyframes orbspin2 { to { transform: rotate(360deg); } }
@keyframes breathe3d { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.samai-stage.speaking .orb3d { animation: speak3d 1.1s ease-in-out infinite; }
@keyframes speak3d { 0%, 100% { transform: scale(1); } 22% { transform: scale(1.05); } 40% { transform: scale(1.01); } 62% { transform: scale(1.06); } 80% { transform: scale(1.02); } }
/* voice ripples */
.voice-ring { position: absolute; top: 12px; left: 50%; margin-left: -108px; width: 216px; height: 216px; border-radius: 50%;
  border: 1.5px solid rgba(78,189,193,0.55); opacity: 0; pointer-events: none; }
.samai-stage.speaking .voice-ring { animation: voicewave 2.2s ease-out infinite; }
.voice-ring.v2 { animation-delay: .7s !important; }
.voice-ring.v3 { animation-delay: 1.4s !important; }
@keyframes voicewave { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
/* orb reflection + dust particles */
.orb-reflect { position: absolute; top: 244px; left: 50%; transform: translateX(-50%); width: 220px; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(78,189,193,0.4), transparent 70%); filter: blur(10px); animation: reflectb 5s ease-in-out infinite; }
@keyframes reflectb { 0%, 100% { opacity: .7; transform: translateX(-50%) scaleX(1); } 50% { opacity: 1; transform: translateX(-50%) scaleX(1.08); } }
.orb-dust i { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-dust i:nth-child(1) { width: 6px; height: 6px; background: var(--aqua); box-shadow: 0 0 10px rgba(78,189,193,0.9); top: 46px; left: calc(50% - 150px); animation: dust 7s ease-in-out infinite; }
.orb-dust i:nth-child(2) { width: 4px; height: 4px; background: #ffd9c6; box-shadow: 0 0 8px rgba(240,118,74,0.8); top: 30px; left: calc(50% + 128px); animation: dust 9s ease-in-out infinite 1.2s; }
.orb-dust i:nth-child(3) { width: 5px; height: 5px; background: #cfeef1; box-shadow: 0 0 9px rgba(207,238,241,0.9); top: 168px; left: calc(50% + 160px); animation: dust 8s ease-in-out infinite 2.4s; }
.orb-dust i:nth-child(4) { width: 3px; height: 3px; background: var(--aqua); box-shadow: 0 0 7px rgba(78,189,193,0.9); top: 150px; left: calc(50% - 172px); animation: dust 10s ease-in-out infinite 3.4s; }
@keyframes dust { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-16px); opacity: .45; } }

/* slim wide ask bar */
.ask-box { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: min(760px, 96%); background: #ffffff; border: 1px solid rgba(255,255,255,0.6); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(4,14,24,0.6), 0 0 0 1px rgba(78,189,193,0.15); padding: 14px 20px; text-align: left; overflow: hidden; }
.ask-box::before { content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 2px; border-radius: 2px; background: var(--grad); opacity: .8; }
.ask-row { display: flex; align-items: center; gap: 12px; }
.ask-top { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #5b7288; }
.ask-top .spark { width: 24px; height: 24px; margin-top: 0; border-radius: 8px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.ask-q { flex: 1; min-width: 0; font-family: var(--display); font-size: 15.5px; font-weight: 600; letter-spacing: -0.2px; color: #16283a; line-height: 1.35; white-space: nowrap; overflow: hidden; }
.ask-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--teal); vertical-align: -2px; margin-left: 2px; animation: caretblink 1s steps(1) infinite; }
@keyframes caretblink { 50% { opacity: 0; } }
.ask-a { border-top: 1px solid rgba(29,55,82,0.09); margin-top: 11px; padding-top: 11px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px; line-height: 1.5; color: #43586c; opacity: 0; transform: translateY(5px); transition: opacity .45s, transform .45s; }
.ask-a.show { opacity: 1; transform: none; }
.ask-a .ask-ans { flex: 1; min-width: 220px; }
.ask-a .ask-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ask-a .ask-actions span { font-size: 11.5px; font-weight: 600; color: var(--teal-deep); background: rgba(78,189,193,0.1); border: 1px solid rgba(78,189,193,0.3); border-radius: 30px; padding: 4px 11px; white-space: nowrap; }
@media (max-width: 620px) {
  .samai-stage { height: 400px; }
  .orb3d, .voice-ring { width: 180px; height: 180px; margin-left: -90px; }
  .orb { width: 220px; height: 220px; }
  .ask-q { white-space: normal; font-size: 14px; }
  .ask-top span:last-child { display: none; }
}

/* ---------- CTA platform tag ---------- */

/* ---------- Brand ribbon ---------- */
.ribbon { display: inline-flex; align-items: center; margin-top: 34px; padding: 11px 24px; border: 1px solid var(--line-2); border-radius: 40px; background: var(--surface); box-shadow: var(--shadow-sm); }
.ribbon i { font-style: normal; font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); transition: color .4s, text-shadow .4s; }
.ribbon i.lit { color: var(--teal); text-shadow: 0 0 16px rgba(78,189,193,0.5); }
.ribbon em { font-style: normal; color: var(--line-2); margin: 0 14px; font-size: 12px; }

/* ---------- Dark product panels (contrast against light page) ---------- */
.ops-panel { margin-top: 72px; border-radius: 22px; background: linear-gradient(160deg, var(--panel), var(--panel-2)); padding: 26px; position: relative; overflow: hidden; box-shadow: 0 40px 90px rgba(29,55,82,0.3); color: #e8f1f6; }
.ops-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ops-head .title { font-weight: 600; font-size: 14px; color: #cfe3ec; display: flex; align-items: center; gap: 9px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); animation: blink 1.6s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.ops-map { position: relative; height: 300px; border-radius: 14px; background:
  radial-gradient(ellipse 60% 55% at 50% 45%, rgba(78,189,193,0.1), transparent), #0b1f33;
  border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.ops-map .lat { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.06); }
.ops-map .lon { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.06); }
.ping { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--aqua); }
.ping::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--aqua); animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite; }
.ping.warn { background: var(--coral); } .ping.warn::after { border-color: var(--coral); }
.ping.p2::after { animation-delay: .5s; } .ping.p3::after { animation-delay: 1s; } .ping.p4::after { animation-delay: 1.5s; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.radar { position: absolute; inset: 0; margin: auto; width: 340px; height: 340px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(78,189,193,0.3), transparent 24%); animation: sweep 5s linear infinite; opacity: .5; }
@keyframes sweep { to { transform: rotate(360deg); } }
.ops-toast { position: absolute; right: 18px; bottom: 18px; background: rgba(11,31,51,0.95); border: 1px solid rgba(240,118,74,0.5); border-radius: 12px; padding: 12px 16px; font-size: 13px; max-width: 320px; color: #ffd9c6; animation: toast 8s ease infinite; box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
@keyframes toast { 0%, 8% { opacity: 0; transform: translateY(14px); } 16%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(78,189,193,0.1); border: 1px solid rgba(46,118,147,0.3); color: var(--teal-deep); padding: 6px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; margin: 0 8px 10px 0; }
.chip.warm { background: rgba(240,118,74,0.08); border-color: rgba(240,118,74,0.35); color: #cf5a2f; }
.ops-panel .chip, .mock .chip, .film .chip { background: rgba(78,189,193,0.12); border-color: rgba(78,189,193,0.35); color: #9ceee2; }
.ops-panel .chip.warm, .mock .chip.warm { background: rgba(240,118,74,0.12); border-color: rgba(240,118,74,0.4); color: #ffc9ad; }

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; position: relative; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; gap: 18px; width: max-content; animation: scroll 36s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.m-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 24px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.m-item b { font-family: var(--display); font-size: 22px; color: var(--teal); }
.m-item span { color: var(--muted); font-size: 14px; }

/* Client wordmark marquee (reverse direction) */
.marquee.rev { animation-direction: reverse; animation-duration: 70s; gap: 0; }
.logo-item { display: flex; align-items: center; padding: 14px 30px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.3px;
  color: var(--muted); opacity: 0.8; transition: opacity .2s, color .2s; }
.logo-item:hover { opacity: 1; color: var(--heading); }
.marquee-wrap + .marquee-wrap { margin-top: 6px; }

/* ---------- Differentiation panels ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; text-align: left; }
.diff { position: relative; overflow: hidden; border-radius: 20px; padding: 36px 26px 30px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s; }
.diff::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.diff:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(78,189,193,0.45); }
.diff:hover::before { transform: scaleX(1); }
.diff .num { position: absolute; top: 8px; right: 18px; font-family: var(--display); font-size: 68px; font-weight: 700; letter-spacing: -3px; line-height: 1; color: var(--heading); opacity: 0.06; user-select: none; }
.diff .dicon { position: relative; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(78,189,193,0.45); color: var(--icon-ink); background: rgba(78,189,193,0.07); margin-bottom: 24px; }
.diff .dicon svg { width: 24px; height: 24px; }
.diff .dicon::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(78,189,193,0.35); animation: spinslow 26s linear infinite; }
@keyframes spinslow { to { transform: rotate(360deg); } }
.diff h3 { font-family: var(--display); font-size: 18.5px; font-weight: 600; letter-spacing: -0.3px; color: var(--heading); margin-bottom: 9px; }
.diff p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 980px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .diff-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; position: relative; }
section.block.alt { background: var(--bg-2); }
h2.section-title { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.12; font-weight: 700; max-width: 720px; color: var(--heading); text-wrap: balance; }
h2.section-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
p.section-sub { font-size: 17px; color: var(--muted); max-width: 620px; margin-top: 16px; }
.center { text-align: center; }
.center h2.section-title, .center p.section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 54px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(78,189,193,0.5); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--icon-bg); border: 1px solid var(--line-2); margin-bottom: 20px; color: var(--icon-ink); transition: background .25s, border-color .25s; }
.card .icon svg { width: 24px; height: 24px; }
.card:hover .icon { background: var(--icon-bg-hover); border-color: var(--line-2); }
.card h3 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 8px; color: var(--heading); }
.card p { font-size: 14.5px; color: var(--muted); }
.card .go { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }
/* Cursor-aware spotlight */
.spot { position: relative; }
.spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(78,189,193,0.1), transparent 65%); }
.spot:hover::after { opacity: 1; }

/* ---------- Tabs ---------- */
.tabs { margin-top: 54px; }
.tab-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tab-btn { padding: 12px 26px; border-radius: 40px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; transition: all .2s; font-family: var(--body); }
.tab-btn:hover { color: var(--heading); border-color: var(--teal); }
.tab-btn.on { background: var(--navy); color: #fff; border-color: var(--heading); }
.tab-panel { display: none; margin-top: 44px; }
.tab-panel.on { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; animation: fadein .5s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-family: var(--display); font-size: 28px; letter-spacing: -0.7px; margin-bottom: 14px; color: var(--heading); }
.tab-panel p.desc { color: var(--muted); margin-bottom: 20px; }
ul.ticks { list-style: none; }
ul.ticks li { padding: 9px 0 9px 32px; position: relative; color: var(--text); font-size: 15px; border-bottom: 1px dashed var(--line); }
ul.ticks li:last-child { border-bottom: none; }
ul.ticks li::before { content: ''; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: rgba(78,189,193,0.15) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232e7693" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/11px no-repeat; border: 1px solid rgba(46,118,147,0.35); }

/* ---------- Product mock (dark panel) ---------- */
.mock { border-radius: 18px; background: linear-gradient(160deg, var(--panel), var(--panel-2)); padding: 22px; box-shadow: 0 30px 70px rgba(29,55,82,0.3); position: relative; overflow: hidden; color: #e8f1f6; }
.mock::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.mock .bar { display: flex; gap: 6px; margin-bottom: 18px; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.mock .row { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.1); margin: 12px 0; }
.mock .row.w60 { width: 60%; } .mock .row.w80 { width: 80%; } .mock .row.w40 { width: 40%; }
.mock .glow-num { font-family: var(--display); font-size: 46px; font-weight: 700; color: #ff9d73; }
.mock .alertbox { background: rgba(240,118,74,0.12); border: 1px solid rgba(240,118,74,0.45); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: #ffd9c6; margin-top: 14px; }
.mock .okbox { background: rgba(78,189,193,0.1); border: 1px solid rgba(78,189,193,0.4); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: #9ceee2; margin-top: 14px; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 16px; }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--aqua), rgba(78,189,193,0.15)); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 54px; }
.stat { text-align: center; padding: 34px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -1.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; counter-reset: step; }
.flow .f { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; box-shadow: var(--shadow-sm); }
.flow .f:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(78,189,193,0.5); }
.flow .f::before { counter-increment: step; content: '0' counter(step); font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--coral); letter-spacing: 2px; }
.flow .f h3 { font-family: var(--display); font-size: 20px; margin: 10px 0 8px; letter-spacing: -0.4px; color: var(--heading); }
.flow .f p { font-size: 14px; color: var(--muted); }
.flow .f .tagword { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--teal); }

/* ---------- Pipeline (intelligence backbone) ---------- */
.pipeline { position: relative; margin-top: 70px; }
.pipeline .track { position: absolute; top: 30px; left: 11%; right: 11%; height: 2px; z-index: 1;
  background: linear-gradient(90deg, rgba(46,118,147,0.35), rgba(78,189,193,0.5), rgba(240,118,74,0.4), rgba(29,55,82,0.35)); }
.pipeline .track::after { content: ''; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--aqua); box-shadow: 0 0 14px rgba(78,189,193,0.9), 0 0 4px rgba(78,189,193,1); animation: flowdot 4.2s linear infinite; }
@keyframes flowdot { 0% { left: 0; opacity: 0; } 7% { opacity: 1; } 93% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.pipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
.pstep { text-align: center; padding: 0 8px; }
.pstep .node { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  color: var(--icon-ink); background: var(--surface); border: 2px solid var(--teal); box-shadow: 0 8px 22px rgba(29,55,82,0.12); position: relative; transition: transform .25s, box-shadow .25s; }
.pstep .node svg { width: 26px; height: 26px; }
.pstep:hover .node { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 30px rgba(29,55,82,0.18); }
.pstep:nth-child(2) .node { border-color: var(--aqua); }
.pstep:nth-child(3) .node { border-color: var(--coral); }
.pstep:nth-child(4) .node { border-color: var(--heading); }
.pstep .stepnum { display: block; margin: 18px 0 4px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; color: var(--coral); }
.pstep h3 { font-family: var(--display); font-size: 21px; letter-spacing: -0.4px; color: var(--heading); margin-bottom: 8px; }
.pstep p { font-size: 14px; color: var(--muted); max-width: 230px; margin: 0 auto; }
.pstep .tagword { display: inline-block; margin-top: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-deep); background: rgba(78,189,193,0.12); border: 1px solid rgba(78,189,193,0.3); padding: 5px 14px; border-radius: 30px; }
.pstep:nth-child(3) .tagword { color: #cf5a2f; background: rgba(240,118,74,0.08); border-color: rgba(240,118,74,0.3); }
.pstep:nth-child(4) .tagword { color: var(--heading); background: rgba(29,55,82,0.06); border-color: rgba(29,55,82,0.2); }
@media (max-width: 980px) {
  .pipeline .track { display: none; }
  .pipe-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}
@media (max-width: 620px) { .pipe-grid { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote { max-width: 800px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.6px; line-height: 1.4; color: var(--heading); }
.quote blockquote::before { content: '“'; color: var(--aqua); font-size: 60px; display: block; line-height: .6; margin-bottom: 18px; }
.quote cite { display: block; margin-top: 22px; color: var(--muted); font-style: normal; font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; align-items: stretch; }
.plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 38px 30px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; box-shadow: var(--shadow-sm); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--teal); position: relative; background: linear-gradient(180deg, rgba(78,189,193,0.06), #fff); }
.plan .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 30px; letter-spacing: .6px; }
.plan h3 { font-family: var(--display); font-size: 24px; letter-spacing: -0.5px; color: var(--heading); }
.plan .tier-sub { color: var(--muted); font-size: 14.5px; margin: 10px 0 20px; min-height: 44px; }
.plan .price { font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 18px; letter-spacing: .4px; }
.plan ul.ticks { flex: 1; }
.plan .btn { margin-top: 28px; justify-content: center; }

/* ---------- Table ---------- */
table.simple { width: 100%; border-collapse: collapse; margin-top: 44px; font-size: 15px; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
table.simple th { text-align: left; padding: 14px 18px; background: var(--navy); color: #fff; font-weight: 600; }
table.simple td { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
table.simple tr td:first-child { color: var(--heading); font-weight: 600; }
table.simple tr:hover td { background: var(--bg-2); }

/* ---------- Forms ---------- */
form.demo-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 40px; box-shadow: var(--shadow); }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; font-size: 13.5px; color: var(--heading); margin-bottom: 7px; }
form input, form select, form textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 12px; font-family: var(--body); font-size: 15px; color: var(--text); background: var(--bg-2); transition: border-color .2s, background .2s; }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- CTA ---------- */
.cta-banner { position: relative; border-radius: 26px; padding: 72px 60px; text-align: center; overflow: hidden; background: linear-gradient(150deg, var(--navy), #24506e); color: #fff; box-shadow: var(--shadow); }
.cta-banner::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(78,189,193,0.28), transparent 65%); top: -260px; right: -140px; }
.cta-banner h2 { font-family: var(--display); font-size: 38px; letter-spacing: -1px; position: relative; }
.cta-banner p { color: #b8cfdd; margin: 14px auto 32px; max-width: 520px; position: relative; }
.cta-banner .btn-row { justify-content: center; position: relative; }
.cta-banner .btn-primary { background: var(--grad); color: #06222c; }
.cta-banner .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ---------- Resources ---------- */
.res-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; box-shadow: var(--shadow-sm); }
.res-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(78,189,193,0.5); }
.res-card .thumb { height: 140px; display: flex; align-items: center; justify-content: center; color: var(--icon-ink); background: linear-gradient(135deg, var(--bg-3), rgba(78,189,193,0.18)); border-bottom: 1px solid var(--line); }
.res-card .thumb svg { width: 42px; height: 42px; stroke-width: 1.4; }
.res-card .body { padding: 24px; }
.res-card .tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--coral); }
.res-card h3 { font-family: var(--display); font-size: 17px; margin: 10px 0 8px; letter-spacing: -0.3px; color: var(--heading); }
.res-card p { font-size: 14px; color: var(--muted); }

/* ---------- Case studies ---------- */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; transition: transform .25s, box-shadow .25s, border-color .25s; box-shadow: var(--shadow-sm); }
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(78,189,193,0.5); }
.case .sector { font-size: 11.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--coral); }
.case h3 { font-family: var(--display); font-size: 20px; letter-spacing: -0.4px; margin: 12px 0 10px; color: var(--heading); }
.case p { font-size: 14.5px; color: var(--muted); }
.case .metrics { display: flex; gap: 24px; margin: 20px 0 18px; }
.case .metrics div b { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case .metrics div span { font-size: 12.5px; color: var(--muted); }

/* ---------- Article ---------- */
.article { max-width: 740px; margin: 0 auto; }
.article .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--coral); }
.article h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.14; margin: 16px 0 10px; color: var(--heading); text-wrap: balance; }
.article .byline { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.article h2 { font-family: var(--display); font-size: 25px; letter-spacing: -0.5px; margin: 44px 0 14px; color: var(--heading); }
.article p { color: var(--text); margin-bottom: 18px; font-size: 16.5px; line-height: 1.75; }
.article .pull { border-left: 3px solid var(--aqua); padding: 6px 0 6px 24px; margin: 30px 0; font-family: var(--display); font-size: 21px; line-height: 1.5; color: var(--heading); }
.article ul { margin: 0 0 18px 22px; color: var(--text); }
.article ul li { margin-bottom: 10px; }

/* ---------- Film ---------- */
.film { position: relative; border-radius: 22px; overflow: hidden; margin-top: 54px; background:
  radial-gradient(ellipse 70% 90% at 50% 110%, rgba(78,189,193,0.25), transparent),
  linear-gradient(160deg, var(--panel), var(--panel-2)); min-height: 340px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); color: #fff; }
.film .play { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(78,189,193,0.45); animation: pulse 2.2s infinite; transition: transform .2s; }
.film:hover .play { transform: scale(1.08); }
.film .play::after { content: ''; border-left: 22px solid #06222c; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(78,189,193,0.45); } 70% { box-shadow: 0 0 0 28px rgba(78,189,193,0); } 100% { box-shadow: 0 0 0 0 rgba(78,189,193,0); } }
.film .caption { position: absolute; bottom: 22px; left: 26px; text-align: left; }
.film .caption b { display: block; font-family: var(--display); font-size: 18px; }
.film .caption span { color: #b8cfdd; font-size: 13.5px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 18px; text-align: center; transition: transform .25s, box-shadow .25s; box-shadow: var(--shadow-sm); }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person .avatar { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 21px; font-weight: 700; }
.person h4 { font-size: 15.5px; font-family: var(--display); color: var(--heading); }
.person p { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 54px; }
.split h3 { font-family: var(--display); font-size: 28px; letter-spacing: -0.7px; margin-bottom: 14px; color: var(--heading); }
.split p { color: var(--muted); }

/* ---------- Footer (dark anchor) ---------- */
footer.site-footer { position: relative; background: var(--navy); color: #9fb8c9; padding: 70px 0 36px; }
.footer-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 34px 26px; }
.footer-cols h5 { font-family: var(--display); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 16px; color: #fff; }
.footer-cols a { display: block; color: #9fb8c9; font-size: 13.6px; line-height: 1.45; margin-bottom: 11px; }
.footer-cols a:hover { color: var(--aqua); }

/* contact band (logo · phone · email · socials) */
.footer-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 26px 44px; margin-top: 52px; padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-contact .logo { margin-right: auto; }
.footer-contact .logo-chip { background: #ffffff; border-radius: 12px; padding: 11px 18px; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.footer-contact .logo-chip img { height: 26px; }
.footer-contact .fc-item span { display: block; font-size: 12.5px; letter-spacing: .4px; color: #8ba6b9; margin-bottom: 4px; }
.footer-contact .fc-item a { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: #fff; }
.footer-contact .fc-item a:hover { color: var(--aqua); }
.footer-contact .socials { margin-top: 0; }

/* back to top */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 200; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--grad); color: #06222c; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 10px 26px rgba(29,55,82,0.28); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 1080px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 780px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-contact { gap: 22px 30px; } .footer-contact .logo { margin-right: 0; flex: 1 0 100%; } }
.footer-brand p { font-size: 14px; color: #9fb8c9; max-width: 300px; margin-top: 14px; }
.footer-brand .logo-chip { background: var(--surface); border-radius: 10px; padding: 8px 14px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: #9fb8c9; transition: all .2s; }
.socials a:hover { color: #06222c; background: var(--grad); border-color: transparent; transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.footer-certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.footer-certs .cert { font-size: 12px; font-weight: 600; color: #b8cfdd; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 30px; padding: 6px 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 26px; padding-top: 26px; display: flex; justify-content: space-between; font-size: 13px; color: #9fb8c9; flex-wrap: wrap; gap: 12px; }
.footer-bottom .legal a { color: #9fb8c9; }
.footer-bottom .legal a:hover { color: var(--aqua); }

/* ---------- Sub-page hero ---------- */
.hero.sub h1 { font-size: clamp(30px, 4.4vw, 50px); }

/* ---------- API band (DIY) ---------- */
.api-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.02fr .98fr; gap: 38px; align-items: center;
  text-align: left; margin-top: 58px; padding: 38px 40px; border-radius: 24px;
  background: linear-gradient(140deg, var(--panel), var(--panel-2)); box-shadow: var(--shadow); }
.api-band::before { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; top: -240px; right: -160px;
  background: radial-gradient(circle, rgba(78,189,193,0.26), transparent 65%); pointer-events: none; }
.api-band > * { position: relative; }
.api-band .eyebrow { color: var(--aqua); margin-bottom: 14px; }
.api-band h3 { font-family: var(--display); font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; letter-spacing: -0.6px; line-height: 1.25; color: #fff; }
.api-band p { color: #b6cfdd; font-size: 15.5px; line-height: 1.65; margin-top: 12px; max-width: 460px; }
.api-band .api-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.api-band .api-tags span { font-size: 12.5px; font-weight: 600; letter-spacing: .2px; color: #d8ecf3;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 30px; padding: 5px 13px; }
.api-code { background: rgba(3,17,28,0.5); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 20px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.8px; line-height: 1.85; color: #cfe6ef; overflow-x: auto; }
.api-code .c { color: #6f8ba0; }
.api-code .k { color: var(--aqua); }
.api-code .s { color: #f0a07a; }
.api-band .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.3); }
.api-band .btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }
@media (max-width: 900px) { .api-band { grid-template-columns: 1fr; padding: 32px 26px; } .api-band p { max-width: none; } }

/* ---------- API endpoint list ---------- */
.api-h3 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.4px; color: var(--heading); margin-top: 56px; }
.ep-list { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.ep { display: grid; grid-template-columns: 96px 210px 1fr; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 15px 20px; transition: border-color .2s, background .2s; }
.ep:hover { border-color: rgba(78,189,193,0.5); background: var(--hover); }
.ep-m { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--teal); background: rgba(78,189,193,0.12); border-radius: 6px; padding: 4px 8px; text-align: center; white-space: nowrap; }
.ep code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; font-weight: 600; color: var(--heading); }
.ep p { font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 780px) { .ep { grid-template-columns: auto 1fr; gap: 10px 14px; } .ep p { grid-column: 1 / -1; } }

/* ---------- Timeline (escalation ladder) ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 38px; text-align: left; }
.timeline .tl-item { padding: 24px 20px; }
@media (max-width: 1080px) { .timeline { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr !important; } }

/* ---------- Legal documents ---------- */
.legal-doc { max-width: 800px; margin: 0 auto; }
.legal-doc .doc-meta { font-size: 13px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted);
  padding-bottom: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-doc h2 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.3;
  color: var(--heading); margin: 46px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 40px; }
.legal-doc h3 { font-family: var(--display); font-size: 16.5px; font-weight: 600; letter-spacing: -0.2px;
  color: var(--heading); margin: 28px 0 10px; }
.legal-doc p { font-size: 15.5px; line-height: 1.75; color: var(--text); margin-bottom: 16px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 18px 22px; }
.legal-doc li { font-size: 15.5px; line-height: 1.72; color: var(--text); margin-bottom: 9px; padding-left: 4px; }
.legal-doc ul li::marker { color: var(--aqua); }
.legal-doc ol li::marker { color: var(--teal); font-weight: 600; }
.legal-doc strong { color: var(--heading); font-weight: 600; }
.legal-doc a { font-weight: 500; border-bottom: 1px solid rgba(78,189,193,0.45); }
.legal-doc .legal-caps { font-size: 14.5px; color: var(--muted); background: var(--bg-2); border-left: 3px solid var(--aqua);
  border-radius: 0 10px 10px 0; padding: 16px 20px; }
.legal-doc .legal-box { margin-top: 40px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.legal-doc .legal-box strong { display: block; font-family: var(--display); font-size: 16.5px; margin-bottom: 4px; }

/* ---------- Offices ---------- */
.office-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 52px; text-align: left; }
.office { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.office:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(78,189,193,0.5); }
.office .o-pin { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--icon-bg); border: 1px solid var(--line-2); color: var(--teal); margin-bottom: 18px; }
.office .o-pin svg { width: 20px; height: 20px; }
.office h3 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.3px; color: var(--heading); }
.office .o-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--teal); margin: 6px 0 12px; }
.office p { font-size: 13.6px; line-height: 1.6; color: var(--muted); }
@media (max-width: 1080px) { .office-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .office-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .office-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.tcat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal);
  background: rgba(78,189,193,0.1); border: 1px solid rgba(46,118,147,0.28); border-radius: 30px; padding: 5px 13px; margin-bottom: 20px; }

/* slider (home) */
.tslider-wrap { max-width: 880px; margin: 52px auto 0; text-align: left; }
.tslider { position: relative; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.tslider::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.tslide { display: none; padding: 44px 50px 40px; }
.tslide.on { display: block; animation: tfade .45s cubic-bezier(.2,.7,.3,1); }
@keyframes tfade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tslide blockquote { position: relative; font-family: var(--display); font-size: clamp(16.5px, 1.7vw, 20px); font-weight: 600;
  line-height: 1.58; letter-spacing: -0.3px; color: var(--heading); padding-left: 30px; }
.tslide blockquote::before { content: '\201C'; position: absolute; left: -2px; top: -6px; font-size: 54px; line-height: 1; color: var(--aqua); }
.tslide cite { display: block; margin-top: 24px; padding-left: 30px; font-style: normal; font-size: 14.5px; color: var(--muted); }
.tslide cite b { display: block; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--heading); }
.tnav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.tdots { display: flex; flex-wrap: wrap; gap: 7px; }
.tdot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--muted); opacity: .45; cursor: pointer; transition: width .25s, background .25s, border-radius .25s; }
.tdot.on { width: 24px; border-radius: 5px; background: var(--grad); opacity: 1; }
.tdot:hover { opacity: .8; }
.tarrows { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tcount { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.tcount b { color: var(--heading); font-weight: 600; }
.tarrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--heading);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.tarrow:hover { border-color: var(--aqua); color: var(--teal); background: var(--hover); }
.tarrow svg { width: 18px; height: 18px; }

@media (max-width: 980px) { .tslide { padding: 36px 30px 32px; } }
@media (max-width: 620px) { .tnav { flex-direction: column-reverse; align-items: flex-start; } }

/* ---------- Grid modifiers (replace inline grid-template-columns) ---------- */
.stats.st-3 { grid-template-columns: repeat(3, 1fr); }
.stats.st-2 { grid-template-columns: repeat(2, 1fr); }
.pipe-grid.pg-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .stats.st-3 { grid-template-columns: repeat(2, 1fr); } .pipe-grid.pg-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .stats.st-3, .stats.st-2, .pipe-grid.pg-3 { grid-template-columns: 1fr; } }

/* ---------- Mobile navigation ---------- */
.nav-burger { display: none; width: 40px; height: 38px; margin-left: 2px; padding: 0; border: 1px solid var(--line-2);
  border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; }
.nav-burger span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--nav-ink); transition: transform .25s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; pointer-events: auto; margin: 10px 0 0; max-height: calc(100vh - 110px); overflow-y: auto;
  -webkit-overflow-scrolling: touch; }
.mobile-nav .container { background: var(--drop-bg); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(29,55,82,0.18); padding: 20px 22px 24px; }
.mobile-nav h6 { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--teal); margin: 18px 0 8px; }
.mobile-nav h6:first-child { margin-top: 0; }
.mobile-nav a { display: block; padding: 9px 2px; font-size: 15px; font-weight: 500; color: var(--nav-ink);
  border-bottom: 1px solid var(--line); }
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav a.btn { border-bottom: 0; color: #06222c; }
.mobile-nav.open { display: block; animation: fadein .22s ease; }
body.nav-locked { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cols-3, .cols-4, .stats, .flow, .pricing-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .tab-panel.on { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 620px) {
  .cols-2, .cols-3, .cols-4, .stats, .flow, .pricing-grid, .team-grid, .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 28px; }
  .container { padding: 0 18px; }
  .nav-wrap { height: 54px; padding: 0 8px 0 14px; }
  .nav-cta .btn { padding: 8px 13px; font-size: 12.5px; }
  .logo-chip img { height: 18px; }
  .block { padding: 56px 0; }
  /* stop the decorative hero cards colliding with the ring on phones */
  .hero-viz { height: 300px; }
  .viz-stage { width: min(250px, 82%); height: 250px; }
  .float-card { display: none; }
  /* the process ribbon must wrap rather than overflow */
  .ribbon { flex-wrap: wrap; justify-content: center; padding: 10px 16px; border-radius: 22px; row-gap: 4px; }
  .ribbon i { font-size: 11px; letter-spacing: 1.4px; }
  .ribbon em { margin: 0 8px; }
  .cta-banner h2 { font-size: 27px; }
  .quote blockquote { font-size: 20px; }
  .tslide { padding: 28px 22px 26px; }
  .tslide blockquote { padding-left: 22px; }
  .tslide cite { padding-left: 22px; }
  .legal-doc h2 { font-size: 19px; }
  /* wide tables scroll instead of squashing */
  table.simple { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 430px) {
  /* the wordmark + demo button + burger no longer fit — the drawer carries the CTA */
  .nav-cta .btn { display: none; }
}
@media (max-width: 400px) {
  h2.section-title { font-size: 24px; }
  .stat b { font-size: 34px; }
  .m-item { padding: 12px 16px; }
  .logo-item { padding: 12px 20px; }
  .footer-contact .fc-item a { font-size: 15.5px; }
}


/* ============================================================
   Dark theme
   ============================================================ */
[data-theme="dark"] {
  --bg: #071322;
  --bg-2: #0b1c2e;
  --bg-3: #102539;
  --panel: #0d2135;
  --panel-2: #143049;
  --card: #0e2032;
  --surface: #0e2032;
  --line: rgba(255,255,255,0.1);
  --line-2: rgba(255,255,255,0.18);
  --text: #dcebf3;
  --muted: #8fa6b8;
  --heading: #eef6fa;
  --hover: rgba(255,255,255,0.07);
  --nav-ink: #a9bfd0;
  --nav-bg: rgba(13,30,49,0.92);
  --nav-border: rgba(255,255,255,0.14);
  --nav-inset: rgba(255,255,255,0.05);
  --nav-shadow: 0 10px 34px rgba(0,0,0,0.5);
  --nav-shadow-scrolled: 0 14px 40px rgba(0,0,0,0.6);
  --drop-bg: rgba(12,28,46,0.98);
  --icon-bg: rgba(255,255,255,0.06);
  --icon-bg-hover: rgba(255,255,255,0.1);
  --icon-ink: #dcebf3;
  --viz-line: rgba(255,255,255,0.14);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.3);
  --shadow: 0 16px 44px rgba(0,0,0,0.45);
}
[data-theme="dark"] {
  --teal: #7cc3da;
  --teal-deep: #9ad7e8;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .tcat { border-color: rgba(124,195,218,0.35); background: rgba(78,189,193,0.14); }
[data-theme="dark"] .ep-m { background: rgba(78,189,193,0.16); }
[data-theme="dark"] .office .o-pin { color: var(--aqua); }
[data-theme="dark"] .hero .grid-lines { background-image:
  linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); }
[data-theme="dark"] .btn-primary { background: var(--grad); color: #04222c; box-shadow: 0 8px 22px rgba(78,189,193,0.25); }
[data-theme="dark"] .btn-primary:hover { background: var(--grad); color: #04222c; box-shadow: 0 12px 30px rgba(78,189,193,0.4); }
[data-theme="dark"] .btn-ghost { background: rgba(255,255,255,0.05); color: var(--heading); border-color: var(--line-2); }
[data-theme="dark"] .logo-chip { background: #fff; padding: 6px 11px; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.45); }
[data-theme="dark"] .chip { color: #9ceee2; background: rgba(78,189,193,0.12); border-color: rgba(78,189,193,0.35); }
[data-theme="dark"] .chip.warm { color: #ffc9ad; background: rgba(240,118,74,0.12); border-color: rgba(240,118,74,0.4); }
[data-theme="dark"] .tab-btn.on { background: var(--grad); color: #04222c; border-color: transparent; }
[data-theme="dark"] .plan.featured { background: linear-gradient(180deg, rgba(78,189,193,0.1), var(--surface)); }
[data-theme="dark"] .mega-link.overview { background: rgba(78,189,193,0.12); }
[data-theme="dark"] table.simple th { background: #143049; color: var(--aqua); }
[data-theme="dark"] .res-card .thumb { background: linear-gradient(135deg, #102539, rgba(78,189,193,0.15)); }
[data-theme="dark"] .plan .flag { background: var(--grad); color: #04222c; }
[data-theme="dark"] .quote blockquote::before { color: var(--aqua); }
[data-theme="dark"] .m-item b { color: var(--aqua); }
[data-theme="dark"] .ribbon i.lit { color: var(--aqua); }
[data-theme="dark"] form input, [data-theme="dark"] form select, [data-theme="dark"] form textarea { background: rgba(255,255,255,0.05); }
[data-theme="dark"] form input:focus, [data-theme="dark"] form select:focus, [data-theme="dark"] form textarea:focus { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .dropdown { border-color: rgba(255,255,255,0.14); box-shadow: 0 18px 50px rgba(0,0,0,0.6); }
[data-theme="dark"] .mega-main { border-right-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .logo-chip img { height: 19px; }
[data-theme="dark"] .footer-contact .logo-chip { padding: 11px 18px; border-radius: 12px; }
[data-theme="dark"] .footer-contact .logo-chip img { height: 26px; }

/* ---------- Theme toggle ---------- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--nav-ink);
  cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.theme-toggle:hover { color: var(--heading); border-color: var(--teal); background: var(--hover); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
