/* =========================================================
   Baidu AI Cloud International — Design System
   ========================================================= */

:root {
  --bg: #05080f;
  --bg-2: #0a1020;
  --bg-3: #0e1628;
  --ink: #0a1220;
  --ink-2: #1b2740;
  --slate: #5a6b85;
  --slate-2: #7b8aa3;
  --line: #e3e9f4;
  --line-2: #eef2f9;
  --mist: #f4f7fd;
  --white: #ffffff;
  --blue: #2f6bff;
  --blue-2: #6ea8ff;
  --blue-3: #eaf0ff;
  --cyan: #5fe3ff;
  --amber: #ffb020;
  --green: #14b87a;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 32, 0.04), 0 8px 24px rgba(10, 18, 32, 0.05);
  --shadow-md: 0 24px 60px -24px rgba(10, 18, 32, 0.22);
  --shadow-blue: 0 22px 60px -24px rgba(47, 107, 255, 0.55);
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); }

::selection { background: rgba(47, 107, 255, 0.18); }

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

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-dark { background: var(--bg); color: var(--white); }
.section-mist { background: var(--mist); }
.section-tight-top { padding-top: 56px; }

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

.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-dark .eyebrow { color: var(--blue-2); }

.display {
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 660;
  letter-spacing: -0.04em;
  line-height: 0.99;
}
.h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.h4 { font-size: 20px; letter-spacing: -0.02em; }

.lede {
  font-size: clamp(17px, 1.55vw, 19.5px);
  line-height: 1.6;
  color: var(--slate);
  max-width: 62ch;
  margin-top: 22px;
}
.section-dark .lede { color: #a9b6cc; }
.muted { color: var(--slate); }
.small { font-size: 13.5px; line-height: 1.6; }
.mono { font-family: var(--mono); }
.grad-text {
  background: linear-gradient(100deg, #ffffff 10%, #9ec3ff 55%, #5fe3ff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blue-text { color: var(--blue); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 52px;
}
.section-head .lede { margin-top: 16px; }
.section-head .head-action { flex: none; padding-bottom: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s,
    box-shadow 0.25s, color 0.25s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #2f6bff, #1a48d8);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { box-shadow: 0 26px 66px -22px rgba(47, 107, 255, 0.7); }

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.35);
}
.btn-light:hover { background: #f4f7ff; }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.4); }

.btn-outline {
  border-color: #ccd7ea;
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover { border-color: var(--ink); background: var(--mist); }

.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--blue);
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover { gap: 13px; }
.link-arrow svg { width: 15px; height: 15px; }
.section-dark .link-arrow { color: var(--blue-2); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
}
.pill .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #d6e1f5;
  backdrop-filter: blur(10px);
}
.pill-dark .tag { background: rgba(95, 227, 255, 0.16); color: #a8efff; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled { background: rgba(5, 8, 15, 0.92); }
.header-inner {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 28px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: flex; align-items: center; color: #fff; flex: none; }
.brand-logo {
  height: 28px;
  width: auto;
  color: #fff;
  flex: none;
  display: block;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 520;
  color: #c3cee4;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-link .caret { width: 10px; height: 10px; opacity: 0.6; transition: transform 0.25s; }
.nav-item { position: relative; }
.nav-item:hover .caret { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: -24px;
  width: 620px;
  padding: 18px;
  border-radius: 20px;
  background: #0b1324;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega-link {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.18s;
}
.mega-link:hover { background: rgba(255, 255, 255, 0.06); }
.mega-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(47, 107, 255, 0.16);
  color: var(--blue-2);
  flex: none;
}
.mega-ico svg { width: 17px; height: 17px; }
.mega-link > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mega-title { display: block; font-size: 13.5px; font-weight: 600; color: #fff; }
.mega-desc { display: block; font-size: 11.5px; color: #8396b5; line-height: 1.45; margin-top: 2px; }
.mega-foot {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 14px 12px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #93a5c2;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #cdd8ea;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.lang-btn svg { width: 14px; height: 14px; }
.header-cta { height: 40px; padding: 0 18px; font-size: 13.5px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-open .burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: #070c16;
  padding: 28px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 6px;
}
.menu-open .mobile-menu { display: flex; }
.mobile-menu a {
  padding: 15px 4px;
  font-size: 19px;
  font-weight: 550;
  color: #e8eefb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu .mm-group {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7386a5;
  margin: 22px 4px 6px;
}
.mobile-menu .btn { margin-top: 22px; width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  color: #fff;
  padding: calc(var(--header-h) + 84px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(47, 107, 255, 0.3), transparent 62%),
    radial-gradient(700px 460px at 8% 92%, rgba(95, 227, 255, 0.09), transparent 65%),
    radial-gradient(1200px 700px at 50% -10%, rgba(30, 61, 143, 0.35), transparent 70%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 520px at 62% 28%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 520px at 62% 28%, #000 25%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-top: 26px; }
/* CJK display type runs denser: size it so the two hero lines do not orphan. */
@media (min-width: 901px) {
  html[lang="zh-CN"] .hero h1 { font-size: clamp(40px, 4.4vw, 58px); }
}
.hero .lede { color: #a9b7d0; max-width: 30em; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-note {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #7f92b3;
}
.hero-note svg { width: 15px; height: 15px; color: var(--green); flex: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 34px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: start;
}
.hero-stat .n {
  font-size: 24px;
  font-weight: 640;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stat .l { font-size: 11.5px; color: #8296b8; margin-top: 3px; letter-spacing: 0.02em; }

/* terminal */
.hero-visual { position: relative; min-width: 0; }
.terminal {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(17, 26, 45, 0.92), rgba(8, 13, 24, 0.96));
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.terminal-bar span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #7f92b2;
  margin-left: 8px;
  letter-spacing: 0.02em;
}
.terminal-tabs { margin-left: auto; display: flex; gap: 6px; }
.terminal-tabs b {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6f83a4;
  padding: 3px 8px;
  border-radius: 5px;
}
.terminal-tabs b.on { background: rgba(47, 107, 255, 0.2); color: #a9c6ff; }
.terminal pre {
  margin: 0;
  padding: 22px 20px 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #c8d5ea;
  overflow-x: auto;
  white-space: pre;
}
.tk-key { color: #7aa2ff; }
.tk-str { color: #8ce3b8; }
.tk-com { color: #5c6f8f; }
.tk-fn { color: #e7c68a; }
.tk-num { color: #f3a6c8; }
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 12px;
  background: rgba(13, 21, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  font-size: 12px;
  color: #dbe6f8;
  white-space: nowrap;
  animation: floaty 7s ease-in-out infinite;
}
.float-card .fc-ico {
  width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(47, 107, 255, 0.2);
  color: var(--blue-2);
}
.float-card .fc-ico svg { width: 14px; height: 14px; }
.float-card b { font-weight: 620; }
.float-card small { display: block; font-size: 10px; color: #7f93b4; margin-top: 1px; }
.float-a { right: -16px; top: -26px; animation-delay: -1s; }
.float-b { left: -26px; bottom: -84px; animation-delay: -3.5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- page hero ---------- */
.page-hero {
  position: relative;
  background: var(--bg);
  color: #fff;
  padding: calc(var(--header-h) + 74px) 0 78px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 82% 0%, rgba(47, 107, 255, 0.26), transparent 65%),
    radial-gradient(520px 340px at 4% 100%, rgba(95, 227, 255, 0.07), transparent 70%);
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  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);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  z-index: -1;
  opacity: 0.5;
}
.page-hero .lede { color: #a9b7d0; max-width: 58ch; }
.page-hero .hero-actions { margin-top: 28px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: end;
}
.page-hero-aside {
  display: grid;
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}
.page-hero-aside div {
  background: rgba(9, 15, 27, 0.86);
  padding: 15px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.page-hero-aside b { font-size: 21px; font-weight: 630; letter-spacing: -0.02em; }
.page-hero-aside span { font-size: 11.5px; color: #879ab9; text-align: right; }

/* ---------- marquee ---------- */
.logos {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 26px 0;
  background: #fff;
  overflow: hidden;
}
.logos-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #93a1b8;
  margin-bottom: 18px;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 54px;
  animation: marquee 46s linear infinite;
}
.logos:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #b3bed0;
  white-space: nowrap;
  transition: color 0.2s;
}
.marquee-track span:hover { color: var(--ink-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #cfdaf0;
  box-shadow: var(--shadow-md);
}
.card-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-3);
  color: var(--blue);
  margin-bottom: 22px;
}
.card-ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--slate); line-height: 1.62; margin-bottom: 18px; }
.card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.card-stat {
  font-size: 12px;
  color: var(--slate-2);
  font-variant-numeric: tabular-nums;
}
.card-stat b { color: var(--ink); font-weight: 650; }

.product-card { display: flex; flex-direction: column; min-height: 268px; }
.product-card .card-ico {
  background: linear-gradient(135deg, #eef4ff, #e2ecff);
  color: #2453d8;
}
.product-card .mini-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.mini-tags span {
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: #5a6f92;
  background: var(--mist);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 9px;
}
.product-card .badge-rate {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0b5c42;
  background: #e2f8ef;
  border: 1px solid #bcecd9;
  padding: 4px 9px;
  border-radius: 999px;
}

.card-dark {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.card-dark:hover { border-color: rgba(255, 255, 255, 0.24); box-shadow: none; background: rgba(255, 255, 255, 0.055); }
.card-dark p { color: #9dafc9; }
.card-dark .card-ico { background: rgba(47, 107, 255, 0.18); color: var(--blue-2); }

/* ---------- architecture ---------- */
.arch {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.arch-row {
  display: grid;
  grid-template-columns: 212px 1fr 190px;
  gap: 24px;
  padding: 22px 28px;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  transition: background 0.25s;
}
.arch-row:last-child { border-bottom: 0; }
.arch-row:hover { background: #f9fbff; }
.arch-label { display: flex; align-items: center; gap: 12px; }
.arch-label .num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #9aa9c0;
}
.arch-label h3 { font-size: 15px; letter-spacing: 0.01em; font-weight: 650; }
.arch-label .arch-ico {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--blue-3); color: var(--blue);
  display: grid; place-items: center; flex: none;
}
.arch-label .arch-ico svg { width: 16px; height: 16px; }
.arch-body { display: flex; flex-wrap: wrap; gap: 7px; }
.arch-body span {
  font-size: 11.5px;
  color: #3f5170;
  background: var(--mist);
  border: 1px solid var(--line-2);
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.arch-value { font-size: 12px; color: var(--slate-2); text-align: right; line-height: 1.45; }
.arch-value b { display: block; font-size: 14px; color: var(--ink); font-weight: 640; }
.arch-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #f7faff;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--slate);
}
.arch-note svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

/* ---------- split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy .h3 { margin-bottom: 14px; }
.split-copy .lede { margin-top: 0; margin-bottom: 26px; }
.split-points { display: grid; gap: 0; margin-bottom: 28px; }
.split-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px;
  color: var(--ink-2);
}
.split-points li:last-child { border-bottom: 1px solid var(--line-2); }
.split-points .pt {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-3);
  color: var(--blue);
  display: grid; place-items: center;
  margin-top: 2px;
}
.split-points .pt svg { width: 11px; height: 11px; }
.split-points b { color: var(--ink); font-weight: 620; }

.split-media { position: relative; min-width: 0; }
.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #f8fbff, #eef4ff);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.panel-dark {
  background: linear-gradient(160deg, #0d1526, #070c16);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 40px 80px -30px rgba(5, 10, 20, 0.6);
}
.panel-dark::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.34), transparent 65%);
  pointer-events: none;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 22px;
}
.panel-dark .panel-head { color: #7f93b4; }
.dot-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.08em; color: #62d6a4;
}
.dot-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #35c98c; box-shadow: 0 0 0 4px rgba(53, 201, 140, 0.15);
}

.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.model-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #d3dff2;
}
.model-chip > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.model-chip b { font-weight: 600; font-size: 12px; color: #e6eefc; white-space: nowrap; }
.model-chip > span:last-child { font-size: 10.5px; color: #6fd6a8; font-weight: 650; flex: 0 0 auto; }
.model-chip.wide { grid-column: 1 / -1; }
.model-chip .mc-sub { font-size: 10px; color: #7e92b3; font-weight: 500; }

.pipeline { display: grid; gap: 10px; }
.pipe-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-2);
}
.pipe-step .n {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--blue-3);
  color: var(--blue);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.pipe-step b { display: block; font-size: 13px; font-weight: 620; }
.pipe-step small { display: block; font-size: 11px; color: var(--slate-2); margin-top: 1px; }
.pipe-step em {
  font-style: normal;
  font-size: 10px;
  color: #8b9ab0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.panel-dark .pipe-step { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.panel-dark .pipe-step b { color: #e7eefb; }
.panel-dark .pipe-step small { color: #8195b6; }
.panel-dark .pipe-step em { color: #6b7f9f; }
.panel-dark .pipe-step .n { background: rgba(47, 107, 255, 0.18); color: #9dbdff; }

.map-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0a1222; border: 1px solid rgba(255,255,255,.1); }
.map-visual svg { width: 100%; height: auto; display: block; }
.map-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-top: 1px solid rgba(255,255,255,.1); }
.map-stats div { background: #0a1222; padding: 16px 10px; text-align: center; }
.map-stats b { display: block; font-size: 17px; font-weight: 640; color: #fff; letter-spacing: -0.02em; }
.map-stats span { font-size: 9.5px; color: #8195b6; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- stats band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-band > div { background: #fff; padding: 28px 24px; }
.stat-band .n {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 640;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-band .l { font-size: 12px; color: var(--slate); margin-top: 7px; line-height: 1.45; }
.section-dark .stat-band { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
.section-dark .stat-band > div { background: #070c16; }
.section-dark .stat-band .l { color: #8b9db8; }

/* ---------- globe / infra ---------- */
.infra {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}
.globe-wrap { position: relative; }
.globe-wrap svg { width: 100%; height: auto; }
.region-list { display: grid; gap: 12px; }
.region {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s, border-color 0.2s;
}
.region:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.region .flag {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(47, 107, 255, 0.16);
  color: #9dbdff;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
}
.region b { display: block; font-size: 14px; font-weight: 600; }
.region small { display: block; font-size: 11.5px; color: #8397b7; margin-top: 1px; }
.region .reg-meta { font-size: 10.5px; color: #6fd6a8; letter-spacing: 0.04em; text-align: right; }

/* ---------- case cards ---------- */
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-brand { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.case-tag { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #8a99b0; }
.case-card p { font-size: 14px; color: var(--slate); line-height: 1.62; margin: 0; flex: 1; }
.case-metric { display: flex; align-items: baseline; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.case-metric b { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; color: var(--blue); }
.case-metric span { font-size: 11.5px; color: var(--slate); }

/* ---------- commercial ---------- */
.commercial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.commercial-item { background: #fff; padding: 26px; }
.commercial-item .ci-ico { width: 30px; height: 30px; color: var(--blue); margin-bottom: 14px; }
.commercial-item h4 { font-size: 14.5px; font-weight: 650; margin-bottom: 6px; }
.commercial-item p { font-size: 12.5px; color: var(--slate); line-height: 1.58; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: linear-gradient(120deg, #0a1120, #0b1a3c 55%, #0a1120);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 320px at 82% 10%, rgba(47, 107, 255, 0.4), transparent 65%),
    radial-gradient(400px 260px at 12% 92%, rgba(95, 227, 255, 0.12), transparent 70%);
  z-index: -1;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(500px 300px at 80% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(500px 300px at 80% 20%, #000, transparent 75%);
  z-index: -1;
  opacity: .6;
}
.cta-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(30px, 3.8vw, 46px); }
.cta p { color: #a6b5cd; margin-top: 16px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 12px; color: #7e91b1; }
.cta-foot a { color: #a9c3f5; }

/* ---------- pricing ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.offer {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px 24px;
  overflow: hidden;
}
.offer::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -60px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,.12), transparent 68%);
}
.offer .rate {
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.offer .rate small { font-size: 0.4em; font-weight: 600; color: var(--slate-2); letter-spacing: 0; margin-left: 4px; }
.offer .model { font-size: 14px; font-weight: 620; margin-top: 10px; }
.offer .desc { font-size: 11.5px; color: var(--slate); margin-top: 4px; line-height: 1.5; min-height: 34px; }
.offer .save {
  display: inline-block;
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #0b6b4e;
  background: #e4f8f0;
  border-radius: 999px;
  padding: 3px 9px;
}

.rate-note {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 26px 28px;
  border: 1px dashed #c9d6ec;
  border-radius: var(--radius);
  background: #f8fbff;
  margin-top: 26px;
}
.rate-note h4 { font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.rate-note p { font-size: 12.5px; color: var(--slate); margin: 0; line-height: 1.62; }
.rate-note .calc {
  font-family: var(--mono);
  font-size: 12px;
  color: #2b3a55;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  line-height: 1.8;
}
.rate-note .calc b { color: var(--blue); }

/* Compact rate block embedded in product sections */
.rate-mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px 24px 20px;
}
.rm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rm-kicker {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8494ac;
  font-weight: 650;
  margin-bottom: 5px;
}
.rm-head b { font-size: 15px; color: var(--ink); font-weight: 620; letter-spacing: -0.01em; }
.rm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: baseline;
  padding: 12px 14px;
  background: #f7f9fd;
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.rm-m { font-size: 12px; font-weight: 620; color: var(--ink); }
.rm-b {
  font-size: 15px;
  font-weight: 680;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rm-d { grid-column: 1 / -1; font-size: 11px; color: var(--slate); line-height: 1.45; }
.rm-note { font-size: 11.5px; color: var(--slate); line-height: 1.6; margin: 14px 0 0; }
.section-dark .rate-mini { background: #070c16; border-color: rgba(255, 255, 255, 0.12); }
.section-dark .rm-kicker { color: #7c8ca6; }
.section-dark .rm-head b { color: #e6eefc; }
.section-dark .rm-row { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.section-dark .rm-m { color: #dfe9fa; }
.section-dark .rm-b { color: #74a6ff; }
.section-dark .rm-d { color: #8b9db8; }
.section-dark .rm-note { color: #8b9db8; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tab {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 550;
  color: var(--slate);
  transition: all 0.2s;
}
.tab:hover { border-color: #b9c8e3; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
table.rate-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rate-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8494ac;
  background: #f8fafd;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rate-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: top;
}
.rate-table tr:last-child td { border-bottom: 0; }
.rate-table tbody tr:hover { background: #fafcff; }
.rate-table .m { font-weight: 620; color: var(--ink); }
.rate-table .basis { color: var(--slate); font-size: 12px; }
.rate-table .pct { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-table .pct.hot { color: var(--blue); }
.rate-table .best { color: var(--slate); font-size: 12px; line-height: 1.5; }
.rate-table .pill-tiny {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef3ff;
  color: #3a5fae;
  margin-left: 6px;
  vertical-align: 1px;
}
.table-scroll { overflow-x: auto; }
.table-hint { display: none; }
/* The rate card only overflows below ~600px, so only hint there. */
@media (max-width: 600px) {
  .table-hint { display: block; font-size: 11.5px; color: var(--slate); margin: 14px 0 10px; }
}

.calc-box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.calc-form { padding: 34px; }
.calc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.calc-head h3 { font-size: 20px; }
.calc-head span { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #92a1b7; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: #45566f; margin-bottom: 7px; }
.field .hint { font-size: 11px; color: #93a1b6; font-weight: 400; margin-left: 6px; }
.input, .select {
  width: 100%;
  height: 46px;
  border: 1px solid #d8e1f0;
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b85' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 38px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-out {
  background: linear-gradient(165deg, #0a1220, #0b1730);
  color: #fff;
  padding: 34px;
  display: flex;
  flex-direction: column;
}
.calc-out .co-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #8195b6; }
.calc-out .co-big {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 650;
  letter-spacing: -0.04em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.calc-out .co-big small { font-size: 14px; color: #93a8c8; font-weight: 500; letter-spacing: 0; }
.calc-out .co-sub { font-size: 11.5px; color: #8fa3c2; margin-top: 5px; }
.calc-lines { margin-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.calc-lines div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
  color: #a7b8d2;
}
.calc-lines b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-lines .save b { color: #6fe0b0; }
.calc-note { margin-top: auto; padding-top: 22px; font-size: 10.5px; line-height: 1.6; color: #6f84a4; }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.media-item { background: #fff; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.media-item span { font-size: 13px; color: var(--ink-2); }
.media-item b { font-size: 13px; color: var(--blue); font-weight: 650; letter-spacing: -0.01em; }
.media-grid.media-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- solutions ---------- */
.solution-block { padding: 88px 0; border-top: 1px solid var(--line-2); }
.solution-block:first-of-type { border-top: 0; }
.solution-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; margin-bottom: 44px; align-items: end; }
.solution-head .lede { margin-top: 14px; }
.sol-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line-2);
}
.step:last-child { border-bottom: 1px solid var(--line-2); }
.step .sn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid #c9d8f2;
  color: var(--blue);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}
.step h4 { font-size: 15px; font-weight: 620; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--slate); margin: 0; line-height: 1.58; }
.step .step-kpi { display: inline-block; font-size: 10.5px; color: var(--blue); background: #eef4ff; padding: 2px 8px; border-radius: 999px; margin-top: 7px; }

.mini-cases { display: grid; gap: 10px; }
.mini-case {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.mini-case b { font-size: 13px; font-weight: 620; display: block; }
.mini-case p { font-size: 11.5px; color: var(--slate); margin: 4px 0 0; line-height: 1.55; }

.matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.matrix th, .matrix td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.matrix th { background: #f8fafd; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #8494ac; font-weight: 650; white-space: nowrap; }
.matrix td b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.matrix td span { display: block; font-size: 11px; color: var(--slate); margin-top: 2px; line-height: 1.45; }

.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 40px; }
.tl-item { border-top: 2px solid var(--line); padding-top: 16px; position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #e9f0ff;
}
.tl-item .y { font-size: 11px; color: var(--blue); font-weight: 650; font-variant-numeric: tabular-nums; }
.tl-item b { display: block; font-size: 13px; font-weight: 620; margin: 5px 0 3px; }
.tl-item p { font-size: 11px; color: var(--slate); line-height: 1.5; margin: 0; }

.engage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: eng; }
.engage-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
}
.engage-item .en {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.08em;
}
.engage-item h4 { font-size: 14.5px; font-weight: 620; margin: 9px 0 6px; color: var(--ink); }
.engage-item p { font-size: 11.5px; color: var(--slate); line-height: 1.55; margin: 0; }
.engage-item .dur { display: inline-block; margin-top: 12px; font-size: 10px; color: #6d7f99; background: var(--mist); border-radius: 999px; padding: 3px 8px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.register-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #0c1730, #080e1b);
  color: #fff;
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.register-card::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.4), transparent 65%);
}
.register-card h3 { font-size: 22px; margin-bottom: 8px; }
.register-card > p { color: #a3b4cd; font-size: 13.5px; }
.reg-steps { display: grid; gap: 14px; margin: 24px 0; }
.reg-step { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 12.5px; color: #c2cfe3; }
.reg-step .rn {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(47, 107, 255, 0.2);
  color: #a9c8ff;
  display: grid; place-items: center;
  font-size: 10px; font-family: var(--mono);
}
.reg-step b { color: #fff; font-weight: 600; }
.reg-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 10.5px;
  color: #9db2d2;
  margin-bottom: 16px;
  overflow: hidden;
}
.reg-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-link svg { width: 14px; height: 14px; flex: none; color: #7d93b5; }
.register-card .btn { width: 100%; }

.message-card {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 24px;
}
.message-card .mc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.message-card .mc-head h4 { font-size: 12px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: #6b7f99; }
.message-card blockquote { margin: 0; font-size: 13.5px; line-height: 1.7; color: #36465e; }
.message-card blockquote a { color: var(--blue); word-break: break-all; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid #d5e0f1;
  background: #fff;
  font-size: 11px;
  font-weight: 550;
  color: #4c5f7a;
  transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--blue); color: var(--blue); }
.copy-btn svg { width: 12px; height: 12px; }

.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 34px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 21px; margin-bottom: 6px; }
.form-card > p { font-size: 12.5px; color: var(--slate); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
textarea.input { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.form-fine { font-size: 10.5px; color: #93a1b6; line-height: 1.55; margin-top: 14px; }
.form-fine a { color: var(--blue); }
.form-error { color: #d33a3a; font-size: 11px; margin-top: 4px; display: none; }
.field.invalid .input, .field.invalid .select { border-color: #e87b7b; }
.field.invalid .form-error { display: block; }

.form-success {
  display: none;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid #bfe9d7;
  background: #f2fdf8;
}
.form-success.on { display: block; }
.form-success .fs-ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: #d8f6e9; color: #0e8a5f;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.form-success .fs-ico svg { width: 20px; height: 20px; }
.form-success h4 { font-size: 18px; margin-bottom: 6px; }
.form-success p { font-size: 12.5px; color: #3f5e52; }
.form-success .fs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.contact-aside { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.contact-aside a, .contact-aside div { background: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; transition: background 0.2s; }
.contact-aside a:hover { background: var(--mist); }
.contact-aside span { font-size: 12px; color: var(--slate); }
.contact-aside b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.contact-aside svg { width: 15px; height: 15px; color: var(--slate-2); }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--slate-2);
  transition: transform 0.25s;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { font-size: 13.5px; color: var(--slate); max-width: 78ch; padding-bottom: 22px; margin: -4px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: #05080f; color: #96a8c4; padding: 70px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-top { display: grid; grid-template-columns: 1.45fr repeat(4, 0.8fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 12.5px; line-height: 1.65; max-width: 30ch; color: #7f92b1; }
.footer-col h5 { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #6e82a1; font-weight: 650; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 12.5px; padding: 5px 0; color: #a9b8ce; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 10.5px; color: #62748f; }
.footer-bottom .fb-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #c7d5e9; }
.footer-disc { font-size: 10px; color: #4f6079; line-height: 1.6; margin-top: 14px; max-width: 90ch; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track, .float-card, .cursor { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- helpers ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { max-width: 640px; }
  .float-a { right: 0; }
  .float-b { left: 0; }
  .hero-stats { gap: 28px; }
  .infra { grid-template-columns: 1fr; gap: 40px; }
  .globe-wrap { max-width: 520px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-media { order: 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-actions { justify-content: flex-start; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .page-hero-aside { max-width: 560px; }
  .solution-head { grid-template-columns: 1fr; gap: 14px; }
  .sol-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .calc-box { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1.4fr repeat(2, 1fr); row-gap: 36px; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .engage { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .nav { display: none; }
  .burger { display: flex; }
  .header-cta { display: none; }
  .commercial-grid { grid-template-columns: repeat(2, 1fr); }
  .rm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .section { padding: 76px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 36px; }
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
  .arch-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 22px; }
  .arch-value { text-align: left; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .media-grid.media-grid-4 { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .engage { grid-template-columns: repeat(2, 1fr); }
  .rate-note { grid-template-columns: 1fr; }
  .cta { padding: 42px 28px; }
  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 72px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .matrix th:nth-child(4), .matrix td:nth-child(4) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .section { padding: 62px 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .header-inner { padding-inline: 20px; gap: 12px; }
  .brand-logo { height: 22px; }
  .header-actions { gap: 8px; }
  .lang-btn { height: 36px; padding: 0 11px; }
  .hero-stats { margin-top: 40px; }
  .hero-stat .n { font-size: 21px; }
  .terminal pre { font-size: 10.5px; padding: 18px 14px 20px; line-height: 1.8; }
  .float-card { display: none; }
  .offer-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .media-grid.media-grid-4 { grid-template-columns: 1fr 1fr; }
  .media-grid-4 .media-item { padding: 16px 14px; gap: 8px; }
  .media-grid-4 .media-item b { white-space: nowrap; }
  .commercial-grid { grid-template-columns: 1fr; }
  .engage { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat-band > div { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .cta-actions .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .page-hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 56px); }
  .calc-form, .calc-out, .form-card, .register-card { padding: 24px; }
  .rate-table th, .rate-table td { padding: 12px 14px; }
  .rm-grid { grid-template-columns: 1fr; }
  .rate-mini { padding: 18px 16px 16px; }
  .message-card .mc-head { flex-wrap: wrap; }
  .message-card .mc-head h4 { flex: 1 1 100%; }
  .matrix th:nth-child(3), .matrix td:nth-child(3) { display: none; }
  .contact-aside a, .contact-aside div { padding: 14px 16px; }
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  z-index: 300;
  background: #0b1220;
  color: #fff;
  font-size: 12.5px;
  font-weight: 550;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* anchor sub-nav */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.anchor-nav .container {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.anchor-nav .container::-webkit-scrollbar { display: none; }
.anchor-nav a {
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--slate);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.anchor-nav a:hover { background: var(--mist); color: var(--ink); }

/* product / solution page switcher (first element on a standalone page) */
.product-switch,
.solution-switch { margin-top: var(--header-h); }
.product-switch .ps-home,
.solution-switch .ps-home { font-weight: 620; color: var(--ink); }
.product-switch .ps-sep,
.solution-switch .ps-sep { flex: none; align-self: center; width: 1px; height: 18px; background: var(--line); margin: 0 8px; }
.product-switch a[aria-current="page"],
.product-switch a[aria-current="page"]:hover,
.solution-switch a[aria-current="page"],
.solution-switch a[aria-current="page"]:hover { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .product-switch .ps-sep,
  .solution-switch .ps-sep { margin: 0 4px; }
  .product-switch a,
  .solution-switch a { padding: 7px 11px; font-size: 12px; }
}

/* spec list */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.spec b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.spec span { display: block; font-size: 11.5px; color: var(--slate); margin-top: 3px; line-height: 1.5; }
.section-dark .spec { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .spec b { color: #fff; }
.section-dark .spec span { color: #8d9fbb; }

/* mode cards */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.mode h4 { font-size: 13.5px; font-weight: 620; margin-bottom: 4px; }
.mode p { font-size: 11.5px; color: var(--slate); margin: 0; line-height: 1.55; }
.mode .mk { font-family: var(--mono); font-size: 9.5px; color: var(--blue); letter-spacing: .06em; display: block; margin-bottom: 7px; }

.note-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 24px;
}
.note-line svg { width: 17px; height: 17px; color: var(--blue); flex: none; margin-top: 2px; }

/* Wizstar */
.wiz-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
  margin-top: 42px;
}
.wiz-quote {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.wiz-copy { font-size: 13.5px; color: var(--slate); line-height: 1.7; margin: 0; }
.wiz-agent {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafd;
}
.wiz-agent + .wiz-agent { margin-top: 12px; }
.wa-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 650;
  color: var(--blue);
  padding-top: 2px;
  flex: none;
}
.wiz-agent h4 { font-size: 13.5px; font-weight: 650; margin-bottom: 4px; color: var(--ink); }
.wiz-agent p { font-size: 12px; color: var(--slate); margin: 0; line-height: 1.6; }
.wiz-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 12px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.wiz-stats > div { background: #fff; padding: 16px 18px; }
.wiz-stats b { display: block; font-size: 22px; font-weight: 680; letter-spacing: -0.03em; color: var(--ink); }
.wiz-stats span { display: block; font-size: 11px; color: var(--slate); margin-top: 3px; line-height: 1.45; }

.wiz-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.wiz-cap { border-top: 2px solid var(--ink); padding-top: 18px; }
.wc-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.wiz-cap h3 { font-size: 16px; font-weight: 640; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--ink); }
.wiz-cap p { font-size: 12.5px; color: var(--slate); line-height: 1.65; margin: 0; }

.wiz-cases { margin-top: 58px; }
.wiz-cases-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.wiz-cases-note { font-size: 11.5px; color: var(--slate); max-width: 42ch; line-height: 1.6; margin: 0; }
.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.reel { margin: 0; }
.reel-media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #070c16;
  border: 1px solid #16233a;
  isolation: isolate;
}
.reel-media.has-poster::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--poster) center / cover no-repeat;
  filter: blur(24px) brightness(0.26) saturate(1.05);
  opacity: 0.9;
  transform: scale(1.06);
  z-index: 0;
}
.reel video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.reel-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #eaf2ff;
  background: rgba(6, 12, 22, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 3px 9px;
}
.reel figcaption { padding: 10px 2px 0; }
.reel figcaption b { display: block; font-size: 13px; font-weight: 620; color: var(--ink); letter-spacing: -0.01em; }
.reel figcaption span { display: block; font-size: 11px; color: var(--slate); margin-top: 2px; line-height: 1.45; }
.wiz-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wiz-bottom .note-line { margin-top: 20px; }

@media (max-width: 860px) {
  .mode-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .wiz-intro { grid-template-columns: 1fr; gap: 34px; }
  .wiz-caps { grid-template-columns: 1fr; gap: 22px; }
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiz-bottom { grid-template-columns: 1fr; }
  .wiz-bottom .note-line { margin-top: 0; }
  .wiz-cases { margin-top: 44px; }
}
@media (max-width: 640px) {
  .anchor-nav { top: var(--header-h); }
  .spec-grid { grid-template-columns: 1fr; }
  .wiz-cases-note { max-width: none; }
  .reel-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .reel-grid::-webkit-scrollbar { height: 4px; }
  .reel { flex: 0 0 68%; scroll-snap-align: start; }
  .wiz-stats b { font-size: 19px; }
}

/* =========================================================
   Interactive demo page
   ========================================================= */
.demo-stamp {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f82a0;
}
.demo-tabs .section-head { align-items: flex-end; margin-bottom: 30px; }
.demo-tabs .tabs { margin-bottom: 0; }
.demo-intro { max-width: 760px; margin-bottom: 26px; }
.demo-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px;
}
.demo-lede { font-size: 14px; color: var(--slate); margin: 0; max-width: 80ch; text-wrap: pretty; }
.demo-grid {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.demo-console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
  padding: 18px;
  min-width: 0;
}
.demo-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.demo-console-head code {
  font-family: var(--mono);
  font-size: 9px;
  color: #8796ad;
  letter-spacing: 0.01em;
  text-align: right;
}
.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f9168;
}
.demo-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12b981;
  box-shadow: 0 0 0 4px rgba(18, 185, 129, 0.14);
}
.demo-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--slate);
  margin-bottom: 8px;
}
.demo-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 5px 5px 5px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-search:focus-within {
  border-color: #b8cbf3;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.09);
}
.demo-search > svg { width: 16px; height: 16px; color: #8b9ab1; flex: none; }
.demo-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  height: 36px;
  width: 100%;
  min-width: 0;
  appearance: none;
}
.demo-search input::-webkit-search-cancel-button { appearance: none; }
.demo-search .btn { height: 36px; padding: 0 14px; font-size: 12.5px; flex: none; }

/* Live search: term + city + submit */
.demo-search-live {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) auto;
  gap: 6px;
  padding: 5px;
  align-items: center;
}
.ds-field {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--mist);
}
.ds-field > svg { width: 15px; height: 15px; color: #8b9ab1; flex: none; }
.demo-search-live .ds-field input { height: 34px; font-size: 12.5px; }
.demo-search-live .btn { height: 38px; }
.demo-search-live .ds-field-region input { font-size: 12px; }
.ds-live-note { font-size: 10.5px; color: var(--slate); margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }

.lg-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12b981;
  box-shadow: 0 0 0 3px rgba(18, 185, 129, 0.16);
}

.demo-spinner {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid #dbe5f5;
  border-top-color: var(--blue);
  animation: demo-spin 0.8s linear infinite;
}
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo-error { border-radius: 10px; background: #fffaf3; border: 1px solid #f3dcc0; }
.demo-error p { color: #7a5a2e; }
.demo-error .btn { margin-top: 2px; }
.demo-output.is-loading .poi-list { opacity: 0.35; pointer-events: none; }
.demo-output.is-loading { cursor: progress; }

.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11.5px;
  color: var(--slate);
  transition: all 0.18s;
}
.chip-btn:hover { border-color: #b9c8e3; color: var(--ink); }
.chip-btn b {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: #8b9ab1;
  background: var(--mist);
  padding: 1px 5px;
  border-radius: 999px;
}
.chip-btn.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip-btn.on b { background: rgba(255, 255, 255, 0.16); color: #fff; }

.map-plot {
  position: relative;
  height: 286px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #13203a;
  background-color: #07101f;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 45% 42%, rgba(47, 107, 255, 0.2), transparent 62%);
  background-size: 28px 28px, 28px 28px, auto;
}
.map-river {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(95, 227, 255, 0.22);
  stroke-width: 16;
}
.map-river .river-edge {
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
}
.map-pins { position: absolute; inset: 0; }
.map-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #dbe7ff;
  background: #2f6bff;
  color: #fff;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.2);
  transition: transform 0.16s, box-shadow 0.16s;
  z-index: 2;
}
.map-pin:hover, .map-pin.hot {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 0 7px rgba(47, 107, 255, 0.24);
  z-index: 4;
}
.map-pin.dup {
  background: #ffb020;
  border-color: #ffe6b3;
  color: #3a2400;
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.2);
}
.map-pin.dup:hover, .map-pin.dup.hot { box-shadow: 0 0 0 7px rgba(255, 176, 32, 0.24); }
.map-axis {
  position: absolute;
  z-index: 1;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: #5d7190;
}
.map-axis.top { top: 8px; left: 10px; }
.map-axis.bottom { bottom: 8px; left: 10px; }
.map-axis.left { left: 10px; top: 50%; }
.map-axis.right { right: 10px; top: 50%; }
.map-tag {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7d90ad;
  background: rgba(7, 16, 31, 0.72);
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--slate);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-pin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
}
.lg-pin.dup { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.16); }
.lg-river { width: 12px; height: 2px; border-radius: 2px; background: rgba(95, 227, 255, 0.5); }

.demo-output {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.demo-output-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.demo-output-head h3 { font-size: 16px; letter-spacing: -0.02em; }
.demo-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--slate);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.poi-list {
  max-height: 556px;
  overflow: auto;
  margin: 0 -8px;
  padding: 0 8px;
  scrollbar-width: thin;
}
.poi-list::-webkit-scrollbar { width: 6px; }
.poi-list::-webkit-scrollbar-thumb { background: #d8e1f0; border-radius: 99px; }
.scroll-hint {
  margin: 7px 0 0;
  text-align: center;
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.01em;
}
.scroll-hint[hidden] { display: none; }
.poi {
  display: flex;
  gap: 12px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line-2);
  border-radius: 10px;
  transition: background 0.16s;
}
.poi:last-child { border-bottom: 0; }
.poi.is-active { background: #f2f7ff; }
.poi-rank {
  font-family: var(--mono);
  font-size: 9.5px;
  color: #93a2b8;
  padding-top: 2px;
  flex: none;
  width: 18px;
}
.poi-main { min-width: 0; flex: 1; }
.poi-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.poi-top h4 { font-size: 13.5px; font-weight: 620; letter-spacing: -0.01em; line-height: 1.35; }
.poi-tag {
  font-size: 9.5px;
  color: var(--slate);
  background: var(--mist);
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.4;
}
.poi-addr { font-size: 11.5px; color: var(--slate); margin-top: 3px; line-height: 1.45; }
.poi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--slate-2);
  font-variant-numeric: tabular-nums;
}
.poi-rate b { color: var(--ink-2); font-weight: 600; }
.poi-rate.muted { color: #9aa8bd; }
.poi-price { color: var(--blue); font-weight: 600; }
.poi-phone { color: var(--blue); text-decoration: none; }
.poi-phone:hover { text-decoration: underline; }
.poi-flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.poi-flag {
  font-size: 9px;
  line-height: 1.4;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
}
.poi-flag.warn { background: #fff7e8; border-color: #ffe2ad; color: #9a6300; }
.demo-footnote {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--slate);
}
.demo-empty { padding: 34px 18px; text-align: center; }
.demo-empty[hidden] { display: none; }
.demo-empty b { display: block; font-size: 14px; margin-bottom: 6px; }
.demo-empty p { font-size: 12px; color: var(--slate); max-width: 42ch; margin: 0 auto 14px; }
.demo-empty .link-arrow { font-size: 12px; }
.demo-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.demo-facts b { display: block; font-size: 22px; font-weight: 630; letter-spacing: -0.03em; }
.demo-facts span { display: block; font-size: 11px; color: var(--slate); margin-top: 3px; line-height: 1.5; }

/* AI search panel */
.demo-grid-search { grid-template-columns: 400px minmax(0, 1fr); }
.demo-grid-search .demo-output {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.case-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 566px;
  overflow: auto;
  margin: 0 -6px;
  padding: 0 6px;
  scrollbar-width: thin;
}
.case-list::-webkit-scrollbar { width: 6px; }
.case-list::-webkit-scrollbar-thumb { background: #d8e1f0; border-radius: 99px; }
.case-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--slate);
  transition: background 0.16s, border-color 0.16s;
}
.case-btn:hover { background: #fff; border-color: var(--line); }
.case-btn.on { background: #fff; border-color: #cddbff; box-shadow: 0 2px 10px rgba(47, 107, 255, 0.07); }
.cb-num {
  font-family: var(--mono);
  font-size: 9px;
  color: #9aa8bd;
  flex: none;
  width: 16px;
}
.case-btn.on .cb-num { color: var(--blue); }
.cb-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cb-text b { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.case-btn.on .cb-text b { color: var(--blue); }
.cb-text small {
  font-size: 9.5px;
  color: #8b9ab1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.cb-route {
  flex: none;
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--slate);
  background: #fff;
}
.cb-route.r-both { color: var(--blue); border-color: #cddbff; background: var(--blue-3); }
.cb-route.r-vertical { color: #9a6300; border-color: #ffe2ad; background: #fff7e8; }
.cb-route.r-either { color: #0c8a5c; border-color: #c4ecdb; background: #e8f8f1; }
.cb-route.r-google { color: #3d4a5e; border-color: #d7dfeb; background: #eef2f8; }
.console-note { font-size: 10px; line-height: 1.5; color: var(--slate); margin: 12px 0 0; }

.bench-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.bc-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.bc-head h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.3; margin: 8px 0 6px; }
.bc-test { font-size: 12.5px; color: var(--slate); margin: 0 0 18px; }
.bc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bc-side {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  background: #fbfcff;
  min-width: 0;
}
.bc-side.bd { border-color: #cddbff; background: linear-gradient(180deg, #f5f8ff, #fff); }
.bc-side.gg { background: #fafafa; }
.bc-side-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}
.bc-side-head i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.bc-side.gg .bc-side-head i { background: #8d9bb0; }
.bc-metric { display: flex; align-items: baseline; gap: 6px; margin: 9px 0 6px; }
.bc-metric b { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bc-metric span { font-size: 10px; color: var(--slate); }
.bc-meter { height: 5px; border-radius: 999px; background: #e9eefa; overflow: hidden; }
.bc-meter i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.bc-side.gg .bc-meter i { background: #8d9bb0; }
.bc-sub { font-size: 10.5px; color: var(--slate); margin-top: 8px; font-variant-numeric: tabular-nums; }
.bc-sub b { color: var(--ink); font-weight: 600; }
.bc-side p { font-size: 10.5px; line-height: 1.5; color: var(--slate); margin: 8px 0 0; }
.bc-overlap {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--line);
}
.bc-overlap-head { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--slate); }
.bc-overlap-head b { color: var(--ink); font-family: var(--mono); font-size: 11px; }
.bc-overlap-bar { height: 4px; border-radius: 999px; background: #e5ebf6; overflow: hidden; margin: 7px 0 6px; }
.bc-overlap-bar i { display: block; height: 100%; border-radius: 999px; background: var(--amber); }
.bc-overlap p { margin: 0; font-size: 10px; color: var(--slate); line-height: 1.5; }
.bc-route { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.route-pill {
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
  white-space: nowrap;
}
.route-pill.r-both { color: var(--blue); border-color: #cddbff; background: var(--blue-3); }
.route-pill.r-google { color: #3d4a5e; border-color: #d7dfeb; background: #eef2f8; }
.route-pill.r-vertical { color: #9a6300; border-color: #ffe2ad; background: #fff7e8; }
.route-pill.r-either { color: #0c8a5c; border-color: #c4ecdb; background: #e8f8f1; }
.bc-route b, .bc-guard b {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 2px;
}
.bc-route p, .bc-guard p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.bc-guard { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.finding-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
}
.finding-strip b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; color: var(--blue); }
.finding-strip span { display: block; font-size: 9.5px; color: var(--slate); line-height: 1.45; margin-top: 2px; }

.cost-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 28px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0a1120, #0b1a3c 58%, #0a1120);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cost-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 300px at 88% 8%, rgba(47, 107, 255, 0.34), transparent 65%);
  z-index: -1;
}
.cost-panel .eyebrow { color: #8fb5ff; }
.cost-copy h3 { font-size: 26px; letter-spacing: -0.025em; margin: 6px 0 10px; }
.cost-copy > p { font-size: 12.5px; line-height: 1.6; color: #9fb0ca; margin: 0; max-width: 46ch; }
.cost-range-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 20px;
  font-size: 11.5px;
  color: #c3d0e6;
}
.cost-range-row output { font-family: var(--mono); font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.cost-panel input[type="range"] {
  width: 100%;
  margin: 10px 0 6px;
  accent-color: #6ea8ff;
  cursor: pointer;
}
.cost-note { font-size: 10px; line-height: 1.55; color: #7e91b1; margin: 6px 0 0; }
.cost-bars { display: flex; flex-direction: column; gap: 15px; justify-content: center; }
.cost-row-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: #a9b7cc; margin-bottom: 6px; }
.cost-row-head b { color: #fff; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.cost-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cost-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f6bff, #6ea8ff); transition: width 0.25s var(--ease); }
.cost-row.list .cost-track i { background: #4b5e80; }
.cost-row.gg .cost-track i { background: linear-gradient(90deg, #d98b00, #ffb020); }
.cost-delta { font-size: 11.5px; line-height: 1.5; color: #9fb0ca; margin: 2px 0 0; }
.cost-delta b { color: #5fe3ff; font-weight: 600; }
.demo-method {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid #cddbff;
  font-size: 11px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 88ch;
}
.demo-caveat {
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--slate);
}

@media (max-width: 1080px) {
  .demo-grid, .demo-grid-search { grid-template-columns: 340px minmax(0, 1fr); }
  .case-list { max-height: 420px; }
}
@media (max-width: 900px) {
  .demo-grid, .demo-grid-search { grid-template-columns: 1fr; }
  .demo-grid .demo-output { order: 2; }
  .map-plot { height: 250px; }
  .case-list { max-height: 330px; }
  .cost-panel { grid-template-columns: 1fr; gap: 26px; padding: 28px; }
  .demo-facts { grid-template-columns: 1fr 1fr; gap: 20px; }
  .finding-strip { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .demo-tabs .section-head { align-items: flex-start; }
  .demo-tabs .tabs { margin-top: 16px; }
  .demo-console { padding: 14px; }
  .demo-search {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 8px 8px 8px 12px;
  }
  .demo-search input { height: 32px; width: 100%; }
  .demo-search .btn { grid-column: 1 / -1; width: 100%; }
  .demo-search-live { grid-template-columns: 1fr; padding: 5px; }
  .demo-search-live .ds-field { width: 100%; height: 36px; }
  .demo-search-live .btn { grid-column: auto; height: 36px; }
  .map-plot { height: 220px; }
  .demo-output { padding: 14px; }
  .poi-list { max-height: 430px; }
  .bc-head h3 { font-size: 18px; }
  .bc-compare { grid-template-columns: 1fr; }
  .bench-card { padding: 18px; }
  .bc-route { flex-direction: column; gap: 6px; }
  .cost-panel { padding: 22px; }
  .cost-copy h3 { font-size: 22px; }
  .case-list {
    flex-direction: row;
    max-height: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 0 0 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .case-list::-webkit-scrollbar { height: 4px; width: 0; }
  .case-btn {
    flex: 0 0 200px;
    scroll-snap-align: start;
    padding: 9px 10px;
    border-color: var(--line);
    background: #fff;
  }
  .cb-text small { max-width: 140px; }
  .cb-route { display: none; }
  .demo-facts { grid-template-columns: 1fr 1fr; gap: 16px; }
  .demo-facts b { font-size: 19px; }
  .finding-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .finding-strip b { font-size: 17px; }
}

/* ---------- Keyue live chat ---------- */
.ky-jump { margin: 18px 0 0; }
#live-demo { scroll-margin-top: 56px; }
.ky-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 28px;
  align-items: start;
}
.ky-chat {
  display: flex;
  flex-direction: column;
  height: 580px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ky-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
  flex: none;
}
.ky-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, #2f6bff, #1a48d8);
  color: #fff;
  font-size: 18px;
  font-weight: 650;
}
.ky-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ky-id strong { font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; }
.ky-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--slate); line-height: 1.4; }
.ky-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 184, 122, 0.14);
  flex: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.ky-dot.is-busy { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.16); }
.ky-dot.is-down { background: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14); }
.ky-reset {
  margin-left: auto;
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}
.ky-reset:hover { border-color: var(--ink); }
.ky-reset:disabled { opacity: 0.45; cursor: not-allowed; }

.ky-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 10px;
  background:
    radial-gradient(120% 80% at 0% 0%, #f2f6ff 0%, rgba(242, 246, 255, 0) 55%),
    linear-gradient(180deg, #f8faff 0%, #f4f7fd 100%);
  scrollbar-width: thin;
}
.ky-log::-webkit-scrollbar { width: 6px; }
.ky-log::-webkit-scrollbar-thumb { background: #d8e1f0; border-radius: 99px; }

.ky-note-line {
  align-self: center;
  max-width: 92%;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.5;
  color: #8b9ab1;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-2);
  padding: 4px 12px;
  border-radius: 999px;
}

.ky-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.ky-msg.user { justify-content: flex-end; }
.ky-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #eaf0ff, #dbe7ff);
  color: #2453d8;
  font-size: 12px;
  font-weight: 650;
}
.ky-bubble-wrap { display: flex; flex-direction: column; gap: 6px; max-width: 80%; min-width: 0; }
.ky-msg.user .ky-bubble-wrap { align-items: flex-end; }
.ky-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.03);
  overflow-wrap: anywhere;
}
.ky-msg.bot .ky-bubble { border-bottom-left-radius: 5px; }
.ky-msg.user .ky-bubble {
  background: linear-gradient(135deg, #2f6bff, #1a48d8);
  border-color: transparent;
  color: #fff;
  white-space: pre-wrap;
  border-bottom-right-radius: 5px;
  box-shadow: 0 8px 20px -12px rgba(47, 107, 255, 0.6);
}
.ky-bubble p { margin: 0 0 0.55em; }
.ky-bubble p:last-child { margin-bottom: 0; }
.ky-bubble ul, .ky-bubble ol { margin: 0.3em 0 0.6em; padding-left: 1.15em; }
.ky-bubble ul { list-style: disc; }
.ky-bubble ol { list-style: decimal; }
.ky-bubble li { margin: 2px 0; }
.ky-bubble strong { font-weight: 650; color: var(--ink); }
.ky-bubble a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.ky-bubble code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--mist);
  padding: 1px 5px;
  border-radius: 5px;
}
.ky-bubble pre {
  margin: 0.4em 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b1220;
  color: #dbe7ff;
  font-size: 12px;
  overflow-x: auto;
}
.ky-bubble h4, .ky-bubble h5, .ky-bubble h6 { font-size: 13.5px; margin: 0.5em 0 0.3em; line-height: 1.35; }
.ky-bubble hr { margin: 0.6em 0; border-top-color: var(--line-2); }
.ky-bubble blockquote {
  margin: 0.4em 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  color: var(--slate);
}
.ky-gallery { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ky-gallery img {
  width: 132px;
  max-width: 100%;
  border-radius: 9px;
  border: 1px solid var(--line-2);
}

.ky-typing { align-items: flex-end; }
.ky-dots { display: inline-flex; gap: 4px; padding: 12px 14px; }
.ky-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fb1cc;
  animation: kyPulse 1.1s infinite ease-in-out;
}
.ky-dots i:nth-child(2) { animation-delay: 0.18s; }
.ky-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes kyPulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(-3px); }
}

.ky-starters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ky-starters-label { flex-basis: 100%; font-size: 10.5px; line-height: 1.5; color: #8b9ab1; letter-spacing: 0.02em; }
.ky-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #cddbff;
  background: #fff;
  color: #2453d8;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: left;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.ky-chip:hover { background: var(--blue-3); border-color: #a9c2ff; transform: translateY(-1px); }
.ky-chip:disabled { opacity: 0.5; cursor: not-allowed; }
.ky-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ky-retry { align-self: flex-start; border-color: var(--line); color: var(--ink); }

.ky-bottom {
  flex: none;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line-2);
  background: #fff;
}
.ky-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 2px 10px; }
.ky-suggest[hidden] { display: none; }
.ky-suggest-label { font-size: 10.5px; color: #8b9ab1; }
.ky-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mist);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ky-form:focus-within {
  border-color: #a9c2ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.09);
}
.ky-input {
  flex: 1;
  min-width: 0;
  min-height: 24px;
  max-height: 120px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}
.ky-input::placeholder { color: #93a1b6; }
.ky-send {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f6bff, #1a48d8);
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}
.ky-send svg { width: 17px; height: 17px; transform: rotate(-45deg); }
.ky-send:hover:not(:disabled) { transform: translateY(-1px); }
.ky-send:disabled { opacity: 0.4; cursor: not-allowed; }
.ky-foot { margin: 9px 2px 0; font-size: 10px; line-height: 1.5; color: #93a1b6; }

.ky-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ky-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.ky-num {
  flex: none;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.ky-point h3 { font-size: 15.5px; letter-spacing: -0.015em; margin-bottom: 6px; line-height: 1.3; }
.ky-point p { margin: 0; font-size: 12.5px; line-height: 1.62; color: var(--slate); }
.ky-note {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--blue-2);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--slate);
}

@media (max-width: 960px) {
  .ky-stage { grid-template-columns: 1fr; }
  .ky-chat { height: 600px; max-height: 70vh; min-height: 520px; }
  .ky-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .ky-point { flex-direction: column; gap: 8px; padding: 18px; }
  .ky-note { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ky-chat { height: min(72vh, 600px); min-height: 470px; }
  .ky-side { grid-template-columns: 1fr; }
  .ky-head { padding: 12px 14px; }
  .ky-avatar { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
  .ky-log { padding: 18px 14px 6px; }
  .ky-bubble-wrap { max-width: 86%; }
  .ky-bottom { padding: 10px 12px 12px; }
  .ky-chip { padding: 6px 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ky-dots i { animation: none; opacity: 0.7; }
  .ky-chip, .ky-send { transition: none; }
}
