/* ==========================================================================
   奇域世纪科技 — site template v2 (2026)
   Vanilla CSS. No frameworks. Tokens at :root, layout, components, pages.
   ========================================================================== */

:root {
  --navy-950: #070e1f;
  --navy-900: #0b1630;
  --navy-800: #101f45;
  --navy-700: #1a3164;
  --blue-600: #164072;
  --cyan-600: #11809f;
  --cyan-400: #17c3f7;
  --gold-500: #ffc502;

  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1f2933;
  --text-muted: #5b6b7a;
  --line: #e3e8ee;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1160px;
  --gutter: 20px;
  --header-h: 72px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 48, 0.06), 0 2px 8px rgba(11, 22, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 22, 48, 0.12);
  --shadow-lg: 0 20px 50px rgba(11, 22, 48, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Alfa Slab One (SIL Open Font License), same face as the "Rust" heading on rust-lang.org */
@font-face {
  font-family: "Alfa Slab One";
  src: url("AlfaSlabOne-Regular.latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Typography ---------- */
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; font-weight: 700; letter-spacing: 0.01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.25; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin-bottom: 12px;
}
.on-dark .eyebrow { color: var(--cyan-400); }
.lead { font-size: 19px; color: var(--text-muted); }
.on-dark .lead { color: var(--on-dark-muted); }
.sep {
  width: 56px; height: 3px; border-radius: 2px;
  background: var(--gold-500);
  margin: 20px 0 24px;
}
.center { text-align: center; }
.center .sep { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 18px rgba(255, 197, 2, 0.35); }
.btn-primary:hover { background: #ffd23f; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-outline { border: 1.5px solid var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .3s var(--ease);
}
/* The blur lives on a pseudo-layer: backdrop-filter on the header itself would
   trap the fixed-position phone menu inside the header's 72px box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 22, 48, 0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .3s;
}
.site-header.is-scrolled::before { background: rgba(11, 22, 48, 0.94); }
.site-header.is-solid::before { background: var(--navy-900); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 22px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  display: flex; align-items: center; gap: 6px;
  height: var(--header-h); padding: 0 16px;
  color: #fff; font-size: 16px; font-weight: 500;
  opacity: .88; transition: opacity .2s;
}
.nav > li > a:hover, .nav > li > button:hover, .nav > li.is-open > button { opacity: 1; }
.nav > li > a::after, .nav > li > button::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 16px;
  height: 2px; background: var(--gold-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav > li:hover > a::after, .nav > li:hover > button::after, .nav > li.is-open > button::after,
.nav > li > a[aria-current="page"]::after, .nav > li.is-current > button::after { transform: scaleX(1); }
.nav .chev { width: 14px; height: 14px; transition: transform .25s; }
.nav > li.is-open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% - 8px); left: 50%;
  min-width: 280px; padding: 10px;
  background: #fff; color: var(--text);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.dropdown::before {
  content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px;
  width: 12px; height: 12px; background: #fff; transform: rotate(45deg);
  border-radius: 2px;
}
.nav > li:hover > .dropdown, .nav > li.is-open > .dropdown, .nav > li:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
.dropdown a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: 15px; white-space: nowrap; transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--bg); color: var(--navy-700); }
.dropdown a[aria-current="page"] { background: var(--navy-700); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  color: #fff; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Language switch pill */
.nav > li.lang > a.lang-switch {
  height: auto; margin-left: 10px; padding: 6px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; opacity: 1;
  transition: background .2s, border-color .2s;
}
.nav > li.lang > a.lang-switch::after { display: none; }
.nav > li.lang > a.lang-switch:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--navy-900) center / cover no-repeat;
  padding: calc(var(--header-h) + 96px) 0 96px;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 22, 48, 0.92) 0%, rgba(11, 22, 48, 0.72) 55%, rgba(11, 22, 48, 0.45) 100%),
    linear-gradient(180deg, rgba(11, 22, 48, 0.35) 0%, rgba(11, 22, 48, 0.85) 100%);
}
.hero .container { max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-home { min-height: min(92vh, 860px); display: flex; align-items: center; text-align: center; }
.hero-home .container { max-width: 960px; }
.hero-home h1 { font-size: clamp(30px, 5.6vw, 64px); letter-spacing: 0.04em; text-wrap: balance; }
:lang(en) .hero-home h1 { font-size: clamp(28px, 4.4vw, 54px); letter-spacing: 0; }
.hero-home .lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.85; max-width: 820px; margin: 0 auto; color: rgba(255, 255, 255, 0.82); }
.hero-home .sep { margin: 28px auto; }
.hero-home .partner-logos { display: flex; justify-content: center; align-items: baseline; gap: 40px; margin-top: 32px; }
.hero-home .partner-divider { display: inline-block; width: 1px; height: 56px; background: rgba(255, 255, 255, 0.25); }
.hero-home .partner-logo { height: 64px; width: auto; }
.hero-home .partner-logo.rust-word { height: auto; font-family: "Alfa Slab One", serif; font-size: 52px; line-height: 1; letter-spacing: 1px; font-weight: 400; color: #fff; }
@media (max-width: 600px) {
  .hero-home .partner-logos { gap: 24px; margin-top: 24px; }
  .hero-home .partner-logo { height: 52px; }
  .hero-home .partner-logo.rust-word { height: auto; font-size: 40px; }
  .hero-home .partner-divider { height: 44px; }
}
.hero-inner h1 { margin-top: 12px; }
.hero-inner .lead { color: rgba(255, 255, 255, 0.85); font-size: 18px; max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--on-dark-muted); }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--navy-900); color: #fff; }
.section-tint { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-muted); font-size: 18px; }
.on-dark .section-head p, .section-dark .section-head p { color: var(--on-dark-muted); }

/* Section with the banner photo background */
.section-photo {
  position: relative; isolation: isolate; color: #fff;
  background: var(--navy-900) center / cover no-repeat;
}
.section-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 22, 48, 0.92) 0%, rgba(11, 22, 48, 0.72) 55%, rgba(11, 22, 48, 0.45) 100%),
    linear-gradient(180deg, rgba(11, 22, 48, 0.35) 0%, rgba(11, 22, 48, 0.85) 100%);
}
.section-photo .about-grid > div > p { color: rgba(255, 255, 255, 0.85); }
.section-photo .pillar { color: var(--text); }

/* ---------- Tech cards (white icons on navy) ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-tight { grid-template-columns: 1fr 1fr; gap: 16px; }

.tech-card {
  position: relative; display: block; overflow: hidden;
  padding: 32px 28px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: #fff; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.tech-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(23, 195, 247, 0.35), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.tech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(23, 195, 247, 0.5); }
.tech-card:hover::after { opacity: 1; }
.tech-card .icon { width: 96px; height: 74px; object-fit: contain; margin-bottom: 18px; }
.tech-card svg.icon { display: block; color: #fff; padding: 6px 10px; }
.tech-card h3 { font-size: 21px; margin-bottom: 8px; }
.tech-card p { color: var(--on-dark-muted); font-size: 15px; line-height: 1.65; }
.tech-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--cyan-400); font-weight: 600; }
.tech-card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.tech-card:hover .more svg { transform: translateX(4px); }

/* ---------- Product cards (light) ---------- */
.prod-card {
  display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--cyan-600); }
.prod-card .ic {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: var(--cyan-400);
}
.prod-card .ic svg { width: 28px; height: 28px; }
.prod-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--navy-900); }
.prod-card p { font-size: 15px; line-height: 1.65; color: var(--text-muted); flex: 1; }
.prod-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--cyan-600); }
.prod-card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.prod-card:hover .more svg { transform: translateX(4px); }

/* Third-party product logos */
.prod-logo { height: 56px; width: auto; margin-bottom: 20px; object-fit: contain; object-position: left center; }
.hero-logo { height: 44px; width: auto; margin: 18px 0 4px; }

/* ---------- Solution cards (photo tiles) ---------- */
.sol-card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: var(--navy-800) center / cover no-repeat;
  color: #fff; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sol-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sol-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 48, 0) 30%, rgba(11, 22, 48, 0.88) 100%);
}
.sol-card .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 24px; }
.sol-card h3 { font-size: 22px; }
.sol-card p { font-size: 14px; color: var(--on-dark-muted); margin-top: 4px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sol-card:hover img { transform: scale(1.06); }
.sol-card:hover p { max-height: 80px; opacity: 1; }

/* ---------- Platform strip ---------- */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.platforms img { height: 56px; width: auto; opacity: .85; filter: grayscale(1) brightness(1.6); transition: opacity .2s, filter .3s; }
.platforms img:hover { opacity: 1; filter: none; }

/* ---------- Stats / value strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.stat .num { font-size: 40px; font-weight: 700; color: var(--gold-500); line-height: 1.1; }
.stat .num small { font-size: 18px; font-weight: 600; margin-left: 2px; }
.stat .label { color: var(--on-dark-muted); font-size: 15px; margin-top: 8px; }

/* ---------- Inner page layout ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.detail-main h2 { font-size: 26px; margin-bottom: 20px; }
.detail-main .block + .block { margin-top: 48px; }
.feature-list { display: grid; gap: 12px; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.feature-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--cyan-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.link-list { display: grid; gap: 10px; }
.link-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); font-weight: 500;
  transition: border-color .2s, transform .25s var(--ease);
}
.link-list a:hover { border-color: var(--cyan-600); transform: translateX(4px); color: var(--navy-700); }
.link-list svg { width: 18px; height: 18px; flex: none; color: var(--cyan-600); }
.link-list .ll-title { display: block; font-weight: 600; color: var(--navy-900); }
.link-list .ll-blurb { display: block; font-size: 14px; font-weight: 400; color: var(--text-muted); line-height: 1.6; margin-top: 2px; }

.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.panel { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.panel .spec-label { font-size: 14px; color: var(--text-muted); margin: 0 0 10px; }
.panel .chips + .spec-label { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: #e8f4f8; color: var(--cyan-600);
}
.chip.alt { background: #edf0f7; color: var(--navy-700); }
.panel-dark { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; border: 0; }
.panel-dark h3 { color: var(--on-dark-muted); }
.panel-dark p { font-size: 15px; color: var(--on-dark-muted); margin-bottom: 18px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.pager a:hover { border-color: var(--cyan-600); }
.pager .dir { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.pager .next { text-align: right; }
.pager strong { font-weight: 600; color: var(--navy-700); }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid p + p { margin-top: 16px; }
.pillars { display: grid; gap: 16px; }
.pillar { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; gap: 18px; }
.pillar .n { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-700); color: var(--gold-500); font-weight: 700; }
.pillar h3 { font-size: 18px; margin-bottom: 4px; }
.pillar p { font-size: 15px; color: var(--text-muted); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(23,195,247,.15); color: var(--cyan-400); margin-bottom: 18px; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-card p, .contact-card a { color: var(--on-dark-muted); font-size: 15px; line-height: 1.7; display: block; }
.contact-card a:hover { color: #fff; }

.page-top { padding-top: calc(var(--header-h) + 72px); }
.contact-band .eyebrow { margin-bottom: 8px; }
.contact-note { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 28px; }

.qr-card { text-align: center; }
.qr-box {
  width: 200px; height: 200px; margin: 4px auto 20px; padding: 12px;
  background: #fff; border-radius: 12px; display: grid; place-items: center;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-missing {
  width: 100%; height: 100%; display: grid; place-items: center;
  border: 2px dashed #c9d2dd; border-radius: 6px; color: #8a97a6; font-size: 14px;
}
.qr-card h3 { font-size: 18px; }
.qr-grid { display: flex; justify-content: center; }
.qr-poster { width: 100%; max-width: 300px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); background: #fff; }
.qr-poster img { display: block; width: 100%; height: auto; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-700), var(--cyan-600)); color: #fff; padding: 72px 0; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; z-index: 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta h2 { font-size: 30px; }
.cta p { color: var(--on-dark-muted); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: 15px; }
.footer-top { padding: 64px 0 48px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 20px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; letter-spacing: .04em; }
.site-footer li + li { margin-top: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; order: 3; margin-right: -10px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    display: block; overflow-y: auto;
    background: var(--navy-900); padding: 12px var(--gutter) 40px;
    transform: translateX(100%); transition: transform .35s var(--ease);
  }
  body.nav-open .nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav > li > a, .nav > li > button { width: 100%; height: 56px; padding: 0 4px; font-size: 18px; justify-content: space-between; }
  .nav > li > a::after, .nav > li > button::after { display: none; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; padding: 0 0 12px; background: transparent; box-shadow: none;
    display: none;
  }
  .dropdown::before { display: none; }
  .nav > li.is-open > .dropdown { display: block; }
  .nav > li:hover > .dropdown, .nav > li.is-open > .dropdown, .nav > li:focus-within > .dropdown { transform: none; }
  .dropdown a { color: var(--on-dark-muted); padding: 10px 12px; }
  .dropdown a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .site-header.is-hidden { transform: none; }
  .nav > li.lang { border-bottom: 0; padding-top: 16px; }
  .nav > li.lang > a.lang-switch { display: inline-flex; width: auto; height: auto; margin: 0; padding: 10px 22px; font-size: 14px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-h) + 64px) 0 64px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand img { height: 17px; }
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-home { min-height: 80vh; padding-bottom: 110px; }
  .platforms { gap: 20px 32px; }
  .platforms img { height: 40px; }
  .section { padding: 56px 0; }
}

/* Pages without a banner: keep the first section clear of the fixed header on all screen sizes */
@media (max-width: 960px) { .page-top { padding-top: calc(var(--header-h) + 56px); } }
@media (max-width: 600px) { .page-top { padding-top: calc(var(--header-h) + 40px); } }
