/* =========================================================================
   电报官网 · telegram7.com — design system
   Official-style (telegram.org aesthetic) · third-party download navigation
   ========================================================================= */

:root {
  /* Brand blues (verified official values) */
  --tg-top: #2aabee;          /* icon gradient top */
  --tg-bottom: #229ed9;       /* icon gradient bottom + theme-color */
  --tg-link: #0072ab;         /* link/accent — AA-contrast on white & tinted bg */
  --tg-btn: #2481cc;          /* light-theme primary button */
  --tg-btn-hover: #1c7cc4;
  --tg-accent: #179cde;       /* nav underline / border */
  --tg-soft: #eaf6fd;         /* tinted surface */
  --tg-grad: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f5f9fc;
  --bg-deep: #eef4f9;
  --surface: #ffffff;
  --text: #1f2a37;
  --heading: #0f1b27;
  --muted: #5d6e7e;
  --line: #e4ecf3;
  --line-soft: #eef3f8;

  /* Status */
  --ok: #1f9d57;
  --ok-soft: #eafaf0;
  --ok-line: #bce8cf;
  --warn-text: #8a5a12;
  --warn-soft: #fff6e6;
  --warn-line: #f3d9a4;

  /* Shape */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 6px 18px rgba(15, 27, 39, 0.06);
  --shadow: 0 16px 40px rgba(34, 158, 217, 0.12);
  --shadow-lg: 0 30px 70px rgba(34, 158, 217, 0.18);
  --wrap: 1140px;
  --gap: clamp(14px, 2vw, 20px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", Monaco, Menlo, Consolas, "Courier New", monospace;
}

/* Light theme only — always a white background (no dark mode). */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--tg-link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--tg-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--heading);
  line-height: 1.22;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(24px, 3.4vw, 33px); font-weight: 800; letter-spacing: -0.3px; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; overflow-wrap: anywhere; }

.wrap { width: min(var(--wrap), calc(100% - 36px)); margin-inline: auto; }

/* each symbol in icons.svg declares its own fill/stroke (filled glyphs use
   fill=currentColor, line icons use stroke=currentColor) — don't override here */
.ico { width: 1.4em; height: 1.4em; flex: none; vertical-align: -0.3em; }
.ico--lg { width: 28px; height: 28px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 60;
  padding: 10px 16px; color: #fff; background: var(--heading);
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(14px);
}
.nav {
  width: min(var(--wrap), calc(100% - 36px));
  margin-inline: auto; min-height: 66px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--heading); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__plane {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: var(--tg-grad);
  box-shadow: 0 6px 16px rgba(34, 158, 217, 0.4);
}
.brand__plane .ico { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 17px; }
.brand__tag { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  min-height: 38px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; color: var(--muted); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--tg-link); background: var(--tg-soft); text-decoration: none;
}
.nav-cta {
  color: #fff !important; background: var(--tg-btn);
  box-shadow: 0 8px 18px rgba(36, 129, 204, 0.32);
}
.nav-cta:hover { background: var(--tg-btn-hover) !important; }

/* ---------- buttons ---------- */
.btn {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; text-align: center; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .ico { width: 19px; height: 19px; }
.btn--primary { color: #fff; background: var(--tg-btn); box-shadow: 0 12px 26px rgba(36, 129, 204, 0.3); }
.btn--primary:hover { color: #fff; background: var(--tg-btn-hover); }
.btn--ghost { color: var(--tg-link); background: var(--surface); border-color: color-mix(in srgb, var(--tg-accent) 35%, var(--line)); }
.btn--ghost:hover { color: var(--tg-link); border-color: var(--tg-accent); }
.btn--light { color: var(--heading); background: var(--tg-soft); border-color: color-mix(in srgb, var(--tg-accent) 18%, var(--line)); }
.btn--light:hover { color: var(--tg-link); border-color: var(--tg-accent); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 80% -10%, rgba(42, 171, 238, 0.16), transparent 60%),
    radial-gradient(60% 50% at 0% 0%, rgba(23, 156, 222, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero__inner {
  width: min(var(--wrap), calc(100% - 36px)); margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 56px); align-items: center;
}
.hero--center .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero__col { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--tg-soft); color: var(--tg-link);
  font-size: 13px; font-weight: 700;
}
.eyebrow .ico { width: 15px; height: 15px; }
.eyebrow--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.hero__title { max-width: 16ch; }
.hero--center .hero__title { max-width: 22ch; }
.hero__lead { margin-top: 18px; max-width: 60ch; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }

.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero--center .dl-buttons { justify-content: center; }

.source-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.source-note .ico { width: 15px; height: 15px; color: var(--ok); }
.source-note code { font-family: var(--mono); color: var(--tg-link); font-size: 12px; }

/* trust chips under hero */
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero--center .trust-row { justify-content: center; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.trust-chip .ico { width: 16px; height: 16px; color: var(--tg-link); }

/* ---------- phone mockup (hero art) ---------- */
.hero__art { display: grid; place-items: center; min-width: 0; }
.phone {
  position: relative; width: min(290px, 78vw); aspect-ratio: 9 / 18.5;
  background: #0e1621; border-radius: 38px; padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.08);
}
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: #0e1621; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  height: 100%; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #cfe6f7 0%, #d7eaf6 100%);
}
.phone__bar {
  display: flex; align-items: center; gap: 9px; padding: 26px 14px 11px;
  background: var(--tg-grad); color: #fff;
}
.phone__avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); display: grid; place-items: center; }
.phone__avatar .ico { width: 17px; height: 17px; color: #fff; }
.phone__peer { font-size: 13px; font-weight: 700; line-height: 1.2; }
.phone__peer span { display: block; font-size: 10px; font-weight: 500; opacity: 0.85; }
.phone__chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.bubble {
  max-width: 80%; padding: 8px 11px; font-size: 12px; line-height: 1.45;
  border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); color: #1f2a37;
}
.bubble--in { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.bubble--out { align-self: flex-end; background: #d2f0c0; border-bottom-right-radius: 5px; }
.bubble time { display: block; margin-top: 2px; font-size: 9px; color: #8a98a5; text-align: right; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone { animation: floaty 6s ease-in-out infinite; }

/* ---------- subpage hero (tighter, left-aligned, smaller headline) ---------- */
.page-hero .hero__inner { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(24px, 3vw, 40px); align-items: start; }
.page-hero .hero__title { font-size: clamp(26px, 4vw, 40px); max-width: 22ch; }
.page-hero .hero__lead { font-size: clamp(15px, 1.8vw, 17px); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 78px) 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: clamp(28px, 4vw, 44px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(26px, 4vw, 40px); text-align: center; }
.section-head .eyebrow { margin-inline: auto; }
.section-head p { margin-top: 12px; color: var(--muted); }
.section-head--left { margin-inline: 0; text-align: left; }

.notice {
  width: min(var(--wrap), calc(100% - 36px)); margin: 14px auto 0;
  color: var(--muted); font-size: 13.5px;
}

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card--hover:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tg-accent) 40%, var(--line)); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.card p, .card li { color: var(--muted); }
.card__ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  display: grid; place-items: center; color: var(--tg-link); background: var(--tg-soft);
}
.card__ico .ico { width: 24px; height: 24px; }
.card .btn-row { margin-top: 18px; }

/* ---------- platform cards ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.platform-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.platform-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tg-accent) 40%, var(--line)); box-shadow: var(--shadow); text-decoration: none; }
.platform-card__head { display: flex; align-items: center; gap: 12px; }
.platform-card__ico {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff; background: var(--tg-grad);
}
.platform-card__ico .ico { width: 24px; height: 24px; }
.platform-card__name { font-weight: 800; color: var(--heading); font-size: 17px; }
.platform-card__meta { color: var(--muted); font-size: 13px; }
.platform-card__body { color: var(--muted); font-size: 14px; flex: 1; }
.platform-card__src {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-family: var(--mono); font-size: 11.5px; color: var(--tg-link); word-break: break-all;
}
.platform-card__src .ico { width: 13px; height: 13px; flex: none; }
.platform-card .btn { margin-top: 6px; }

/* ---------- features ---------- */
.feature { padding: 22px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface); }
.feature__ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--tg-link); background: var(--tg-soft); margin-bottom: 13px; }
.feature__ico .ico { width: 23px; height: 23px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stat { padding: 22px; text-align: center; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat__num { font-size: 30px; font-weight: 800; color: var(--tg-link); line-height: 1.1; }
.stat__label { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* ---------- steps ---------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps--num li { padding-left: 64px; }
.steps li {
  position: relative; padding: 20px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.steps--num li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 18px; width: 32px; height: 32px;
  display: grid; place-items: center; color: #fff; background: var(--tg-btn);
  border-radius: 50%; font-weight: 800; font-size: 15px;
}
.steps strong, .steps h3 { display: block; color: var(--heading); margin-bottom: 4px; font-size: 17px; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--heading); background: var(--tg-soft); font-size: 14px; font-weight: 700; }
td { color: var(--muted); font-size: 14.5px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--tg-soft) 45%, transparent); }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 11px;
  color: var(--tg-link); background: var(--tg-soft); border: 1px solid color-mix(in srgb, var(--tg-accent) 20%, var(--line));
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700;
}
.tag .ico { width: 13px; height: 13px; }

/* ---------- check lists (inline-icon, accessible) ---------- */
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.checklist .ico { width: 20px; height: 20px; margin-top: 2px; }
.checklist--ok .ico { color: var(--ok); }
.checklist--no .ico { color: var(--warn-text); }

/* ---------- callouts ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface);
}
.callout__ico { width: 26px; height: 26px; color: var(--tg-link); }
.callout strong { display: block; margin-bottom: 4px; color: var(--heading); }
.callout p { color: var(--muted); }
.callout--info { background: var(--tg-soft); border-color: color-mix(in srgb, var(--tg-accent) 25%, var(--line)); }
.callout--official { background: var(--ok-soft); border-color: var(--ok-line); }
.callout--official .callout__ico { color: var(--ok); }
.callout--warn { background: var(--warn-soft); border-color: var(--warn-line); }
.callout--warn .callout__ico { color: var(--warn-text); }
.callout--warn strong, .callout--warn p { color: var(--warn-text); }

.answer {
  max-width: 100%; padding: 22px; text-align: left; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--tg-accent) 28%, var(--line));
  border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.answer__label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--tg-link); font-weight: 800; font-size: 13px; }
.answer__label .ico { width: 16px; height: 16px; }
.answer p { color: var(--muted); }
.answer time { color: var(--text); font-weight: 600; }

/* ---------- meta bar (byline / updated) ---------- */
.meta-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px;
  color: var(--muted); font-size: 13.5px;
}
.meta-bar__item { display: inline-flex; align-items: center; gap: 6px; }
.meta-bar__item .ico { width: 15px; height: 15px; color: var(--tg-link); }
.meta-bar a { color: var(--tg-link); font-weight: 600; }

/* ---------- keyword block ---------- */
.kw-block { padding: 20px 22px; border: 1px dashed color-mix(in srgb, var(--tg-accent) 35%, var(--line)); border-radius: var(--r); background: var(--tg-soft); }
.kw-block h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 12px; color: var(--heading); }
.kw-block h3 .ico { width: 17px; height: 17px; color: var(--tg-link); }
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kw { display: inline-flex; align-items: center; padding: 5px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 13px; color: var(--text); }
.kw--primary { background: var(--tg-btn); color: #fff; border-color: var(--tg-btn); font-weight: 700; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; color: var(--muted); font-size: 13.5px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--tg-link); }
.crumbs .sep { opacity: 0.5; }
.crumbs [aria-current="page"] { color: var(--heading); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; color: var(--heading); font-weight: 700; padding: 14px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--tg-link); line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { padding-bottom: 16px; color: var(--muted); }

/* ---------- mini panel (subpage hero side) ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.panel__top { display: flex; align-items: center; gap: 14px; padding: 22px; border-bottom: 1px solid var(--line); }
.panel__top .brand__plane { width: 52px; height: 52px; border-radius: 15px; }
.panel__top .brand__plane .ico { width: 28px; height: 28px; }
.panel__top strong { display: block; color: var(--heading); font-size: 16px; }
.panel__top span { color: var(--muted); font-size: 13px; }
.panel__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.panel__grid div { padding: 18px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.panel__grid div:nth-child(3n) { border-right: 0; }
.panel__grid strong { display: block; color: var(--heading); font-size: 15px; }
.panel__grid span { color: var(--muted); font-size: 12.5px; }

/* ---------- prose (trust pages) ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin: 36px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose p { margin: 12px 0; color: var(--text); }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; color: var(--text); }
.prose li { margin: 7px 0; }
.prose a { font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--tg-soft); padding: 2px 6px; border-radius: 6px; color: var(--tg-link); }

/* ---------- related ---------- */
.related .card h3 { font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { background: #131c26; color: #c9d6e0; border-top: 1px solid #1f2a36; }
.foot { width: min(var(--wrap), calc(100% - 36px)); margin-inline: auto; padding: clamp(38px, 5vw, 56px) 0 24px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot__brand .brand { color: #fff; margin-bottom: 12px; }
.foot__brand .brand__tag { color: #8ba0b2; }
.foot__brand p { color: #93a7b8; font-size: 13.5px; max-width: 38ch; }
.foot__col h4 { color: #fff; font-size: 13px; letter-spacing: 0.5px; margin-bottom: 12px; text-transform: uppercase; }
.foot__col a { display: block; color: #c0cedb; padding: 5px 0; font-size: 14px; }
.foot__col a:hover { color: #fff; }
.foot__disclaimer {
  margin-top: 30px; padding: 16px 18px; border: 1px solid #25323f; border-radius: var(--r);
  background: #0e1621; color: #9fb1c1; font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
}
.foot__disclaimer .ico { width: 20px; height: 20px; color: #f3c878; margin-top: 2px; }
.foot__bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid #25323f; display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: space-between; color: #879aab; font-size: 12.5px; }
.foot__bottom a { color: #aebecd; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__title, .hero__lead { max-width: none; }
  /* only intentionally-centered heroes (home/404/about) center; subpages stay left */
  .hero--center .hero__inner { text-align: center; justify-items: center; }
  .hero--center .dl-buttons, .hero--center .trust-row, .hero--center .meta-bar { justify-content: center; }
  .grid-3, .grid-4, .platforms, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; min-height: 56px; }
  .nav-links { width: 100%; margin-left: 0; justify-content: flex-start; gap: 4px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; padding: 6px 11px; flex: 0 0 auto; }
  .grid-2, .grid-3, .grid-4, .platforms, .stats { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .callout__ico { width: 24px; height: 24px; }
  .foot__top { grid-template-columns: 1fr; }
  .dl-buttons .btn { flex: 1 1 100%; }
  .section-head { text-align: left; }
  .section-head .eyebrow { margin-inline: 0; }
}

/* page-load reveal (motion-safe) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 0.6s ease forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
