/* =========================================================================
   Elite Medical Clinic AI — elitemedclinic.ai
   Design system + site styles
   ELITE MEDICAL CLINIC LIMITED (Hong Kong)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Ink / neutrals */
  --ink-900: #08172c;
  --ink-800: #0d2340;
  --ink-700: #16304f;
  --ink-600: #2c4a6e;
  --ink-500: #48607f;
  --ink-400: #6d8299;
  --ink-300: #9aabbf;

  /* Surfaces */
  --white: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f5f8fc;
  --surface-tint: #eef4ff;
  --surface-deep: #061426;
  --surface-deep-2: #0a2039;

  /* Lines */
  --line: #e3ebf4;
  --line-soft: #eef3f9;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Brand */
  --brand-700: #0846c4;
  --brand-600: #0b5cff;
  --brand-500: #2a74ff;
  --brand-300: #93baff;
  --brand-100: #dfeaff;

  /* Secondary accent */
  --cyan-600: #12a8bd;
  --cyan-500: #1fc7db;
  --cyan-300: #86e4ef;
  --cyan-100: #ddf6fa;

  /* Semantic */
  --ok-500: #17a97f;
  --ok-100: #ddf6ee;
  --warn-500: #d98a12;
  --warn-100: #fdf0da;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows (blue-tinted, layered) */
  --sh-xs: 0 1px 2px rgba(8, 23, 44, 0.05);
  --sh-sm: 0 1px 2px rgba(8, 23, 44, 0.05), 0 4px 12px -4px rgba(8, 23, 44, 0.07);
  --sh-md: 0 1px 2px rgba(8, 23, 44, 0.04), 0 12px 28px -12px rgba(8, 23, 44, 0.14);
  --sh-lg: 0 2px 4px rgba(8, 23, 44, 0.04), 0 28px 60px -24px rgba(8, 23, 44, 0.22);
  --sh-brand: 0 10px 30px -12px rgba(11, 92, 255, 0.5);

  /* Type */
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 8.5vw, 132px);
  --nav-h: 72px;
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink-500);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.35rem + 3.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.4vw, 1.3rem); letter-spacing: -0.02em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--brand-700); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

strong { color: var(--ink-800); font-weight: 600; }

small { font-size: 0.8125rem; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--brand-100); color: var(--ink-900); }

/* CJK optical adjustment */
[lang="zh-Hant"] {
  font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", var(--font-body);
  letter-spacing: 0.01em;
}

/* -------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: clamp(52px, 6vw, 88px); }

[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

.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;
}

/* -------------------------------------------------------------------------
   4. Shared bits: eyebrow, lede, badges, buttons
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--brand-600), var(--cyan-500));
}
.eyebrow--light { color: var(--cyan-300); }
.eyebrow--light::before { background: linear-gradient(90deg, var(--cyan-300), transparent); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.lede {
  font-size: clamp(1.02rem, 0.97rem + 0.25vw, 1.16rem);
  line-height: 1.7;
  color: var(--ink-500);
}

.zh {
  display: block;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-400);
  margin-top: 0.9em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-600);
  white-space: nowrap;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(31, 199, 219, 0.18);
  flex: none;
}
.badge--beta { background: var(--surface-tint); border-color: var(--brand-100); color: var(--brand-700); }
.badge--beta .badge__dot { background: var(--brand-600); box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.16); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill--done { background: var(--ok-100); color: #0d7a5b; }
.pill--progress { background: var(--warn-100); color: #9a6209; }
.pill--review { background: var(--surface-tint); color: var(--brand-700); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(11, 92, 255, 0.62); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--white);
  color: var(--ink-800);
  border-color: var(--line);
  box-shadow: var(--sh-xs);
}
.btn--ghost:hover { color: var(--ink-900); border-color: var(--brand-300); transform: translateY(-2px); box-shadow: var(--sh-sm); }

.btn--light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; transform: translateY(-2px); }

.btn--sm { padding: 10px 18px; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.94rem;
}
.link-arrow svg { transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1); }
.link-arrow:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   5. Header / navigation
   ------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 20px -8px rgba(8, 23, 44, 0.16); }
.header.is-stuck::before { opacity: 1; }

.nav {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  flex: none;
}
.brand:hover { color: var(--ink-900); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text b { font-weight: 700; }
.brand__text span {
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav__links li { margin: 0; }
.nav__links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-600);
  transition: color 0.16s ease, background 0.16s ease;
}
.nav__links a:hover { color: var(--ink-900); background: rgba(11, 92, 255, 0.06); }
.nav__links a.is-active { color: var(--brand-700); background: rgba(11, 92, 255, 0.08); }

.nav__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.nav__cta-m { display: none; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 17px; height: 1.6px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 1.6px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.nav__toggle span::before { top: -5.5px; }
.nav__toggle span::after { top: 5.5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 92px));
  padding-bottom: clamp(64px, 8vw, 110px);
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7fe 46%, #ffffff 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero__bg::before {
  width: 620px; height: 620px;
  top: -230px; right: -140px;
  background: radial-gradient(circle, rgba(11, 92, 255, 0.20) 0%, rgba(11, 92, 255, 0) 68%);
}
.hero__bg::after {
  width: 520px; height: 520px;
  bottom: -220px; left: -160px;
  background: radial-gradient(circle, rgba(31, 199, 219, 0.20) 0%, rgba(31, 199, 219, 0) 68%);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 23, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 23, 44, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 22%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 22%, #000 0%, transparent 78%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-600);
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.hero__eyebrow .badge__dot { animation: pulse 2.6s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11, 92, 255, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(11, 92, 255, 0); }
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 1.4rem + 2.5vw, 3.45rem);
  letter-spacing: -0.032em;
  line-height: 1.08;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-600) 0%, var(--cyan-500) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(1.04rem, 0.98rem + 0.32vw, 1.2rem);
  line-height: 1.66;
  color: var(--ink-500);
  max-width: 40ch;
  margin-bottom: 8px;
}
.hero__zh { max-width: 38ch; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--ink-400);
  font-weight: 500;
}
.hero__note svg { color: var(--ink-300); flex: none; }

/* Hero device */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  perspective: 1400px;
}
.hero__glow {
  position: absolute;
  width: 92%; height: 78%;
  background: radial-gradient(ellipse at center, rgba(11, 92, 255, 0.16) 0%, rgba(11, 92, 255, 0) 70%);
  filter: blur(30px);
}

.device {
  position: relative;
  z-index: 2;
  width: 290px;
  flex: none;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(155deg, #1b3453 0%, #08172c 46%, #16304f 100%);
  box-shadow:
    0 2px 3px rgba(255, 255, 255, 0.35) inset,
    0 40px 80px -30px rgba(8, 23, 44, 0.55),
    0 12px 28px -14px rgba(8, 23, 44, 0.35);
  transform: rotateY(-9deg) rotateX(3deg) rotate(0.6deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.hero__visual:hover .device { transform: rotateY(-4deg) rotateX(1deg); }

.device__screen {
  position: relative;
  border-radius: 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
  overflow: hidden;
  padding: 14px 15px 66px;
  min-height: 576px;
}
.device__notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 24px;
  background: #08172c;
  border-radius: var(--r-pill);
  z-index: 3;
}

.scr__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-800);
  letter-spacing: -0.01em;
}
.scr__status-icons { display: flex; gap: 4px; align-items: center; opacity: 0.8; }

.scr__hello { padding: 0 4px 14px; }
.scr__hello span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); }
.scr__hello h3 { font-size: 1.06rem; margin: 3px 0 0; letter-spacing: -0.025em; }

.scr__card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: 0 6px 18px -12px rgba(8, 23, 44, 0.24);
  margin-bottom: 11px;
}

.scr__ring {
  display: flex;
  align-items: center;
  gap: 15px;
}
.scr__ring-svg { width: 78px; height: 78px; flex: none; }
.scr__ring-svg circle { fill: none; stroke-linecap: round; }
.scr__ring-track { stroke: #eaf0f8; stroke-width: 8; }
.scr__ring-value {
  stroke: url(#ringGrad);
  stroke-width: 8;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: ringFill 1.6s cubic-bezier(0.3, 0.8, 0.35, 1) 0.5s forwards;
}
@keyframes ringFill { to { stroke-dashoffset: 52; } }

.scr__ring-label { min-width: 0; }
.scr__ring-label b { display: block; font-family: var(--font-display); font-size: 1.32rem; color: var(--ink-900); letter-spacing: -0.03em; line-height: 1.1; }
.scr__ring-label em { font-style: normal; font-size: 0.72rem; color: var(--ink-400); font-weight: 500; display: block; margin-top: 2px; }
.scr__ring-label .scr__delta {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 7px; padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--ok-100); color: #0d7a5b;
  font-size: 0.66rem; font-weight: 700;
}

.scr__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 11px; }
.scr__metric {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 11px 11px 10px;
  box-shadow: 0 4px 14px -12px rgba(8, 23, 44, 0.3);
}
.scr__metric-top { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.scr__metric-icon {
  width: 21px; height: 21px;
  border-radius: 7px;
  display: grid; place-items: center;
  flex: none;
}
.scr__metric-icon svg { width: 12px; height: 12px; }
.scr__metric-top span { font-size: 0.6rem; font-weight: 600; color: var(--ink-400); letter-spacing: 0.01em; white-space: nowrap; }
.scr__metric b { font-family: var(--font-display); font-size: 0.98rem; color: var(--ink-900); letter-spacing: -0.02em; }
.scr__metric b i { font-style: normal; font-size: 0.66rem; font-weight: 600; color: var(--ink-400); margin-left: 2px; }
.scr__spark { margin-top: 6px; height: 18px; width: 100%; }

.scr__ai {
  background: linear-gradient(140deg, #0b5cff 0%, #0846c4 100%);
  border-radius: var(--r-md);
  padding: 13px 14px;
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(11, 92, 255, 0.85);
}
.scr__ai-top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.scr__ai-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  padding: 3px 8px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.scr__ai p { font-size: 0.75rem; line-height: 1.55; margin: 0; color: rgba(255, 255, 255, 0.94); }
.scr__ai small { display: block; margin-top: 8px; font-size: 0.6rem; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.01em; }

.scr__tabs {
  position: absolute;
  left: 15px; right: 15px; bottom: 12px;
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 22px -14px rgba(8, 23, 44, 0.4);
}
.scr__tabs span { width: 17px; height: 17px; color: var(--ink-300); }
.scr__tabs span.is-on { color: var(--brand-600); }

/* Floating cards next to device */
.float-card {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 206px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card__icon {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex: none;
}
.float-card b { display: block; font-family: var(--font-display); font-size: 0.79rem; color: var(--ink-900); letter-spacing: -0.015em; line-height: 1.3; }
.float-card span { display: block; font-size: 0.68rem; color: var(--ink-400); margin-top: 2px; line-height: 1.38; }

.float-card--a { top: 3%; left: -6%; animation-delay: -1.4s; }
.float-card--b { bottom: 12%; right: -6%; animation-delay: -4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

.hero__caption {
  position: relative;
  z-index: 2;
  margin: 22px 0 0;
  font-size: 0.72rem;
  color: var(--ink-400);
  text-align: center;
  max-width: 46ch;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* -------------------------------------------------------------------------
   7. Trust strip
   ------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--white);
  padding-block: 26px;
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: -0.005em;
}
.trust__item svg { color: var(--brand-600); flex: none; }
.trust__item strong { font-weight: 600; color: var(--ink-700); }

/* -------------------------------------------------------------------------
   8. Feature cards
   ------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr));
  gap: clamp(16px, 1.6vw, 22px);
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.3vw, 30px);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--cyan-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #d5e2f2; }
.card:hover::after { transform: scaleX(1); }

.card__icon {
  width: 48px; height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(140deg, var(--surface-tint) 0%, #e6f7fa 100%);
  border: 1px solid rgba(11, 92, 255, 0.09);
  color: var(--brand-600);
}
.card__icon svg { width: 23px; height: 23px; }

.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.94rem; line-height: 1.65; margin-bottom: 0; color: var(--ink-500); }
.card__meta {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-400);
  letter-spacing: 0.01em;
}
.card__meta::before {
  content: "";
  flex: none;
  margin-top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan-500);
}

/* Roadmap strip (marketplace) */
.strip {
  margin-top: clamp(18px, 2vw, 24px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 20px clamp(22px, 2.4vw, 30px);
  border: 1px dashed #cfdcee;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(238, 244, 255, 0.6) 0%, rgba(221, 246, 250, 0.5) 100%);
}
.strip__icon {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--cyan-600);
  flex: none;
}
.strip__body { flex: 1 1 320px; min-width: 0; }
.strip__body b { display: block; font-family: var(--font-display); font-size: 0.98rem; color: var(--ink-900); letter-spacing: -0.02em; }
.strip__body p { font-size: 0.88rem; margin: 3px 0 0; color: var(--ink-500); }

/* -------------------------------------------------------------------------
   9. How it works
   ------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(224px, 100%), 1fr));
  gap: clamp(22px, 2.4vw, 32px);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 26px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfdcee 12%, #cfdcee 88%, transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step__num {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.step:hover .step__num { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--sh-md); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; line-height: 1.65; margin: 0; }

/* -------------------------------------------------------------------------
   10. AI & safety (dark)
   ------------------------------------------------------------------------- */
.dark {
  position: relative;
  background: var(--surface-deep);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark::before {
  content: "";
  position: absolute;
  width: 900px; height: 700px;
  top: -280px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(11, 92, 255, 0.32) 0%, rgba(11, 92, 255, 0) 66%);
  pointer-events: none;
}
.dark::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  bottom: -320px; right: -180px;
  background: radial-gradient(circle, rgba(31, 199, 219, 0.18) 0%, rgba(31, 199, 219, 0) 68%);
  pointer-events: none;
}
.dark .container { position: relative; z-index: 1; }
.dark .lede { color: rgba(255, 255, 255, 0.72); }

.safety__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  margin-bottom: clamp(28px, 3vw, 40px);
}
.safety__col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 28px);
  backdrop-filter: blur(6px);
}
.safety__col h3 {
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.safety__col h3 svg { flex: none; }
.safety__col ul { list-style: none; padding: 0; margin: 0; }
.safety__col li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.74);
}
.safety__col li:last-child { margin-bottom: 0; }
.safety__col li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-500);
  opacity: 0.85;
}
.safety__col--no li::before { background: var(--ink-400); }

.disclaimer {
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--cyan-500);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  padding: clamp(20px, 2.2vw, 28px) clamp(20px, 2.4vw, 30px);
}
.disclaimer h4 {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 12px;
}
.disclaimer p { font-size: 0.92rem; line-height: 1.7; color: rgba(255, 255, 255, 0.75); margin: 0; }
.disclaimer p + p { margin-top: 0.9em; }

.safety__actions { margin-top: clamp(26px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------------------
   11. Privacy
   ------------------------------------------------------------------------- */
.privacy__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 4.5vw, 68px);
  align-items: center;
}

.privacy__list { display: grid; gap: 12px; }
.priv-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.24s ease;
}
.priv-item:hover { transform: translateX(4px); box-shadow: var(--sh-sm); }
.priv-item__icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-tint);
  color: var(--brand-600);
  flex: none;
}
.priv-item__icon svg { width: 18px; height: 18px; }
.priv-item b { display: block; font-family: var(--font-display); font-size: 0.97rem; color: var(--ink-900); letter-spacing: -0.02em; margin-bottom: 3px; }
.priv-item p { font-size: 0.885rem; line-height: 1.6; margin: 0; }

.note {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 0.845rem;
  line-height: 1.65;
  color: var(--ink-400);
}

/* Region card */
.region-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  background: linear-gradient(155deg, #0d2340 0%, #061426 60%, #0a2039 100%);
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.region-card::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  top: -180px; right: -140px;
  background: radial-gradient(circle, rgba(31, 199, 219, 0.24) 0%, rgba(31, 199, 219, 0) 66%);
}
.region-card > * { position: relative; }
.region-card h3 { color: #fff; font-size: 1.18rem; margin-bottom: 10px; }
.region-card p { font-size: 0.92rem; line-height: 1.66; color: rgba(255, 255, 255, 0.7); }
.region-card__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 20px;
}
.region-card__list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
}
.region-card__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; margin: 0;
  color: rgba(255, 255, 255, 0.78);
}
.region-card__list svg { color: var(--cyan-500); flex: none; }

/* -------------------------------------------------------------------------
   12. Status timeline
   ------------------------------------------------------------------------- */
.timeline { display: grid; gap: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 0; }
.tl-dot {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  margin-top: 2px;
}
.tl-dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-600);
}
.tl-item--progress .tl-dot::after { background: var(--warn-500); }
.tl-item--review .tl-dot::after { background: var(--ink-300); }
.tl-body b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink-900); letter-spacing: -0.02em; margin-bottom: 3px; }
.tl-body p { font-size: 0.895rem; margin: 0; line-height: 1.6; }
.tl-item > .pill { margin-top: 3px; }

/* -------------------------------------------------------------------------
   13. About + facts
   ------------------------------------------------------------------------- */
.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 4.5vw, 64px);
  align-items: center;
}
.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.fact {
  background: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.fact dt { font-size: 0.79rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-400); margin: 0; }
.fact dd { margin: 0; font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--ink-900); letter-spacing: -0.02em; text-align: right; }

/* -------------------------------------------------------------------------
   14. CTA band + form
   ------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(34px, 4.5vw, 60px);
  background: linear-gradient(140deg, #0b5cff 0%, #0846c4 52%, #0a2f7d 100%);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(11, 92, 255, 0.7);
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  top: -260px; right: -120px;
  background: radial-gradient(circle, rgba(31, 199, 219, 0.4) 0%, rgba(31, 199, 219, 0) 66%);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000, transparent 72%);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.cta-band p { color: rgba(255, 255, 255, 0.82); font-size: 1rem; margin: 0; }

.form { display: grid; gap: 12px; }
.form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 15px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.6); }
.form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}
.form__submit {
  background: #fff;
  color: var(--brand-700);
  border: 0;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
.form__submit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.55); }
.form__hint { font-size: 0.78rem; color: rgba(255, 255, 255, 0.66); line-height: 1.55; margin: 0; }
.form__hint a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form__status {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: none;
}
.form__status.is-visible { display: block; }
.form__hp { position: absolute; left: -9999px; opacity: 0; }

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */
.footer {
  background: var(--surface-deep);
  color: rgba(255, 255, 255, 0.6);
  padding-block: clamp(52px, 6vw, 76px) 32px;
  font-size: 0.9rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--line-dark);
}
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand:hover { color: #fff; }
.footer .brand__text span { color: rgba(255, 255, 255, 0.42); }
.footer__about { font-size: 0.875rem; line-height: 1.66; max-width: 36ch; color: rgba(255, 255, 255, 0.56); }
.footer__company {
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}
.footer__company b { display: block; color: rgba(255, 255, 255, 0.8); font-weight: 600; letter-spacing: 0.02em; }

.footer h4 {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255, 255, 255, 0.62); font-size: 0.895rem; }
.footer a:hover { color: #fff; }

.footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.56);
}
.footer__legal-note {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.025);
}

/* -------------------------------------------------------------------------
   16. Legal pages
   ------------------------------------------------------------------------- */
.legal-hero {
  padding-top: calc(var(--nav-h) + clamp(44px, 6vw, 76px));
  padding-bottom: clamp(30px, 4vw, 48px);
  background: linear-gradient(180deg, #f7fafe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.05rem); margin-bottom: 14px; }
.legal-hero .lede { max-width: 62ch; }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 24px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(44px, 5vw, 72px);
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.toc h4 {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin-bottom: 2px; }
.toc a {
  display: block;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: var(--r-xs);
  font-size: 0.845rem;
  line-height: 1.45;
  color: var(--ink-500);
  font-weight: 500;
}
.toc a:hover { color: var(--ink-900); background: var(--surface-alt); }
.toc a.is-active { color: var(--brand-700); background: var(--surface-tint); font-weight: 600; }

.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.28rem, 1.1rem + 0.7vw, 1.62rem);
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  padding-top: 0.2em;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.9em; margin-bottom: 0.45em; }
.prose p, .prose li { font-size: 0.975rem; line-height: 1.78; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--brand-300); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-600);
  background: var(--surface-alt);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 1.8em 0;
}
.callout p { margin-bottom: 0.8em; font-size: 0.94rem; }
.callout p:last-child { margin-bottom: 0; }
.callout b { color: var(--ink-900); }
.callout--warn { border-left-color: var(--warn-500); background: #fffaf1; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.92rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}
.legal-table th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-600);
  background: var(--surface-alt);
  border-bottom-color: var(--line);
}
.legal-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.table-wrap .legal-table { margin: 0; }

/* -------------------------------------------------------------------------
   17. 404
   ------------------------------------------------------------------------- */
.notfound {
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: var(--nav-h);
}
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-600), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

/* -------------------------------------------------------------------------
   18. Scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }

/* -------------------------------------------------------------------------
   19. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub, .hero__zh { max-width: 52ch; margin-inline: auto; }
  .hero__cta, .hero__note { justify-content: center; }
  .hero__visual { min-height: 0; margin-top: 20px; }
  .float-card--a { left: -2%; top: 6%; }
  .float-card--b { right: -2%; bottom: 10%; }
  .privacy__layout, .about__layout, .cta-band__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); margin-left: 0; }
}

@media (max-width: 900px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 12px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.99);
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0.24s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 14px; font-size: 0.96rem; border-radius: var(--r-sm); }
  .nav__toggle { display: flex; }
  .nav { justify-content: space-between; }
  .nav__actions .btn { display: none; }
  .steps::before { display: none; }

  .nav__cta-m { display: block; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
  .nav__cta-m a {
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
    font-weight: 600;
    box-shadow: var(--sh-brand);
  }
  .nav__cta-m a:hover, .nav__cta-m a.is-active { color: #fff; background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%); }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .trust__inner { gap: 14px 22px; }
  .trust__item { font-size: 0.8rem; }
  .float-card { display: none; }
  .device { width: min(292px, 88vw); }
  .footer__top { grid-template-columns: 1fr; }
  .fact { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fact dd { text-align: left; }
  .tl-item { grid-template-columns: 26px minmax(0, 1fr); }
  .tl-item > .pill { grid-column: 2; justify-self: start; }
  .hero__note { font-size: 0.8rem; }
  .form__row { flex-direction: column; }
  .form__submit { width: 100%; }
}

/* -------------------------------------------------------------------------
   20. Motion / print preferences
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scr__ring-value { stroke-dashoffset: 52; }
}

@media print {
  .header, .footer, .cta-band, .hero__visual, .nav__toggle { display: none !important; }
  body { color: #000; }
  .prose { max-width: none; }
}

/* =========================================================================
   21. Illustrations & diagrams
   ========================================================================= */

figure { margin: 0; }

figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-400);
  text-align: center;
}
.dark figcaption { color: rgba(255, 255, 255, 0.5); }

.ill {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.ill-panel {
  background: linear-gradient(140deg, #f3f8ff 0%, #ecf8fa 100%);
  border: 1px solid #e5eef8;
  border-radius: var(--r-md);
  padding: 16px;
}

/* ---- feature cards with illustrations ---- */
.card--ill { padding: clamp(16px, 1.5vw, 20px); display: flex; flex-direction: column; }
.card--ill .card__text { padding: 20px 8px 4px; }
.card--ill h3 { margin-bottom: 7px; }
.card--ill p { font-size: 0.92rem; }

/* ---- flow diagram ---- */
.container--wide { max-width: 1340px; }

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr) auto) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
  margin-bottom: 46px;
}
/* explicit placement: child 1 is the zone, then node/arrow alternating */
.flow > *:nth-child(2)  { grid-area: 1 / 1; }
.flow > *:nth-child(3)  { grid-area: 1 / 2; }
.flow > *:nth-child(4)  { grid-area: 1 / 3; }
.flow > *:nth-child(5)  { grid-area: 1 / 4; }
.flow > *:nth-child(6)  { grid-area: 1 / 5; }
.flow > *:nth-child(7)  { grid-area: 1 / 6; }
.flow > *:nth-child(8)  { grid-area: 1 / 7; }
.flow > *:nth-child(9)  { grid-area: 1 / 8; }
.flow > *:nth-child(10) { grid-area: 1 / 9; }

.flow__zone {
  grid-area: 1 / 1 / 2 / 8;
  border: 1.5px dashed #b9cdea;
  border-radius: var(--r-lg);
  margin: -24px -16px -34px;
  background: rgba(238, 244, 255, 0.5);
  position: relative;
}
.flow__zone span {
  position: absolute;
  left: 22px; bottom: -10px;
  background: var(--surface-alt);
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-700);
  white-space: nowrap;
}

.flow__icon {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-tint);
  border: 1px solid rgba(11, 92, 255, 0.1);
  color: var(--brand-600);
  flex: none;
}
.flow__icon svg { width: 17px; height: 17px; }

.flow__node {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 16px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.flow__node b {
  font-family: var(--font-display);
  font-size: 0.93rem;
  color: var(--ink-900);
  letter-spacing: -0.022em;
  line-height: 1.3;
}
.flow__node p { font-size: 0.79rem; line-height: 1.5; margin: 0; color: var(--ink-500); }
.flow__step { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; color: var(--brand-600); text-transform: uppercase; }

.flow__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.flow__chips span {
  font-size: 0.67rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink-500);
}

/* the node that sits outside the app boundary */
.flow__node--out {
  background: linear-gradient(155deg, #0d2340 0%, #061426 100%);
  border-color: transparent;
  box-shadow: var(--sh-md);
}
.flow__node--out b { color: #fff; }
.flow__node--out p { color: rgba(255, 255, 255, 0.68); }
.flow__node--out .flow__step { color: var(--cyan-300); }
.flow__node--out .flow__icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan-300);
  border-color: rgba(255, 255, 255, 0.16);
}

.flow__arrow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  min-width: 74px;
}
.flow__arrow svg { color: #9fb8d8; flex: none; }
.flow__arrow span {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.35;
}

/* ---- AI capability split ---- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}
.split__card {
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 28px);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
}
.split__card--pro {
  background: linear-gradient(150deg, rgba(31, 199, 219, 0.14) 0%, rgba(11, 92, 255, 0.05) 100%);
  border-color: rgba(31, 199, 219, 0.32);
}
.split__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.split__head b { font-family: var(--font-display); font-size: 1.02rem; color: #fff; letter-spacing: -0.02em; }
.split__head small { display: block; font-size: 0.74rem; color: rgba(255, 255, 255, 0.55); margin-top: 2px; letter-spacing: 0.02em; }
.split__badge {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid; place-items: center;
  flex: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
}
.split__card--pro .split__badge { background: rgba(31, 199, 219, 0.18); border-color: rgba(31, 199, 219, 0.4); color: var(--cyan-300); }

.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 11px;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
}
.chipset svg { flex: none; opacity: 0.85; }
.chipset--yes span { border-color: rgba(31, 199, 219, 0.3); }
.chipset--yes svg { color: var(--cyan-500); }
.chipset--no svg { color: #8fa4bd; }

.emergency {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(20px, 2.2vw, 26px);
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 176, 96, 0.34);
  background: rgba(255, 160, 60, 0.09);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.55;
}
.emergency svg { color: #ffb45e; flex: none; }
.emergency b { color: #fff; }

/* ---- architecture diagram ---- */
.arch { max-width: 500px; margin-inline: auto; }

/* ---- roadmap phases ---- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.phase {
  position: relative;
  padding: 18px 20px 18px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.phase::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--line);
}
.phase--done::before { background: linear-gradient(90deg, var(--ok-500), #4fd3ac); }
.phase--now::before { background: linear-gradient(90deg, var(--brand-600), var(--cyan-500)); }
.phase--now { border-color: var(--brand-300); box-shadow: var(--sh-md); }
.phase__label { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 8px; }
.phase--done .phase__label { color: #0d7a5b; }
.phase--now .phase__label { color: var(--brand-700); }
.phase b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink-900); letter-spacing: -0.02em; margin-bottom: 4px; }
.phase p { font-size: 0.85rem; margin: 0; line-height: 1.55; }

/* ---- market reach graphic ---- */
.reach { max-width: 420px; }

@media (max-width: 980px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow > *:nth-child(2)  { grid-area: 1 / 1; }
  .flow > *:nth-child(3)  { grid-area: 2 / 1; }
  .flow > *:nth-child(4)  { grid-area: 3 / 1; }
  .flow > *:nth-child(5)  { grid-area: 4 / 1; }
  .flow > *:nth-child(6)  { grid-area: 5 / 1; }
  .flow > *:nth-child(7)  { grid-area: 6 / 1; }
  .flow > *:nth-child(8)  { grid-area: 7 / 1; }
  .flow > *:nth-child(9)  { grid-area: 8 / 1; }
  .flow > *:nth-child(10) { grid-area: 9 / 1; }
  .flow__zone { grid-area: 1 / 1 / 8 / 2; margin: -16px -14px; }
  .flow__zone span { left: 18px; bottom: -10px; font-size: 0.63rem; }
  .flow__arrow { min-width: 0; padding: 12px 0; flex-direction: row; gap: 10px; }
  .flow__arrow svg { transform: rotate(90deg); }
}

@media (max-width: 620px) {
  .flow__node { padding: 16px 14px; }
  .emergency { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* very narrow phones: keep the header from overflowing */
@media (max-width: 400px) {
  :root { --nav-h: 66px; }
  .nav__actions .badge--beta { display: none; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__text b { font-size: 0.92rem; }
  .brand__text span { font-size: 0.58rem; letter-spacing: 0.12em; }
  .nav__toggle { width: 38px; height: 38px; }
}

/* =========================================================================
   22. Legal pages: language switch + Traditional Chinese typography
   ========================================================================= */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  padding: 5px 5px 5px 13px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-xs);
  max-width: 100%;
  flex-wrap: wrap;
}
.lang-switch > svg {
  width: 15px; height: 15px;
  color: var(--ink-400);
  margin-right: 5px;
  flex: none;
}
.lang-switch a {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-switch a:hover { color: var(--ink-900); background: var(--surface-alt); }
.lang-switch a.is-active {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(11, 92, 255, 0.75);
}
.lang-switch a.is-active:hover { color: #fff; background: var(--brand-700); }

body.is-zh {
  font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", var(--font-body);
}
body.is-zh h1,
body.is-zh h2,
body.is-zh h3,
body.is-zh h4 {
  font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", var(--font-display);
  letter-spacing: -0.005em;
  line-height: 1.35;
}
body.is-zh h1 { line-height: 1.25; }
body.is-zh .prose { max-width: 40em; }
body.is-zh .prose p,
body.is-zh .prose li { line-height: 1.95; letter-spacing: 0.015em; }
body.is-zh .lede { line-height: 1.9; letter-spacing: 0.01em; }
body.is-zh .toc a { line-height: 1.6; letter-spacing: 0.01em; }
body.is-zh .callout p { line-height: 1.9; }
body.is-zh .eyebrow { letter-spacing: 0.16em; }

@media (max-width: 620px) {
  .lang-switch { padding-left: 10px; }
  .lang-switch a { padding: 7px 13px; font-size: 0.83rem; }
}
