/* ==========================================================================
   TOROKING — single-page site stylesheet
   Mobile first. Breakpoints: 640px, 1024px.
   ========================================================================== */

@font-face {
  font-family: "TK Display";
  src: local("Segoe UI Variable Display"), local("Segoe UI"), local("SF Pro Display"),
       local("Inter"), local("Helvetica Neue");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* palette */
  --bg-0: #050B16;
  --bg-1: #0A1830;
  --bg-2: #0D1F3A;
  --ink: #EAF0F7;
  --muted: #A9B7C9;
  --muted-2: #8B9CB2;
  --gold: #D8BE8A;
  --gold-strong: #EBD7AC;
  --gold-line: rgba(216, 190, 138, 0.26);
  --gold-line-strong: rgba(216, 190, 138, 0.52);
  --cyan: #5FE3F0;
  --cyan-soft: rgba(95, 227, 240, 0.16);
  --glass: rgba(11, 24, 45, 0.6);
  --glass-2: rgba(7, 16, 32, 0.78);

  /* metrics */
  --shell: 1180px;
  --gutter: clamp(1.15rem, 4.2vw, 2.75rem);
  --section-y: clamp(3.4rem, 8vw, 6.5rem);
  --header-h: 64px;
  --radius-xl: 28px;
  --radius: 18px;
  --radius-sm: 12px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;

  /* elevation */
  --shadow-card: 0 26px 60px -36px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 30px 70px -34px rgba(95, 227, 240, 0.45);
  --shadow-gold: 0 22px 48px -26px rgba(216, 190, 138, 0.6);

  /* type */
  --font-sans: "TK Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "Segoe UI Mono", Consolas,
    "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1100px 620px at 80% -8%, rgba(95, 227, 240, 0.1), transparent 62%),
    radial-gradient(900px 520px at 2% 14%, rgba(216, 190, 138, 0.08), transparent 60%),
    linear-gradient(178deg, var(--bg-0) 0%, #071021 44%, var(--bg-1) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Balanced wrapping breaks CJK headings mid-word, so keep natural wrapping.
   h1 is excluded: the hero tagline stays in English for every language. */
:lang(zh) h2,
:lang(zh) h3,
:lang(zh) h4 {
  text-wrap: pretty;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(216, 190, 138, 0.3);
  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;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--gold);
  color: #08111f;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-head {
  max-width: 64ch;
  margin-bottom: clamp(1.7rem, 4vw, 2.9rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.62rem, 4.4vw, 2.7rem);
  letter-spacing: -0.022em;
}

.mini-title {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.09rem);
}

.caption {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn-gold {
  background: linear-gradient(135deg, #F2E0B7 0%, var(--gold) 46%, #C2A369 100%);
  color: #08111f;
  box-shadow: 0 16px 34px -18px rgba(216, 190, 138, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px -18px rgba(216, 190, 138, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn-lg {
  padding: 0.95rem 2.1rem;
  font-size: 1rem;
}

.btn-nav {
  padding: 0.52rem 1.1rem;
  font-size: 0.82rem;
}

/* -------------------------------------------------------------------- cards */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background:
    linear-gradient(158deg, rgba(18, 36, 66, 0.72) 0%, rgba(7, 16, 32, 0.72) 100%);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 50% -10%, rgba(95, 227, 240, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold-line-strong);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card:hover::after,
.card:focus-within::after {
  opacity: 1;
}

.card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.card-title {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.card-text {
  color: var(--muted);
  font-size: 0.94rem;
}

.card-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid rgba(216, 190, 138, 0.16);
}

.card-media--wide {
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 0.9s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.figure-block {
  margin: 0;
}

.figure-frame {
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--glass-2);
  box-shadow: var(--shadow-card);
}

.figure-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------- scroll reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 22, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 11, 22, 0.94);
  border-bottom-color: var(--gold-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(216, 190, 138, 0.3), rgba(95, 227, 240, 0.12));
  color: var(--gold-strong);
  font-size: 0.88rem;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.18rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(9, 20, 38, 0.65);
}

.lang-link {
  padding: 0.26rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.lang-link:hover {
  color: var(--gold-strong);
}

.lang-link.is-active {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #08111f;
  box-shadow: 0 4px 14px -6px rgba(216, 190, 138, 0.85);
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--gold-line-strong);
  background: rgba(216, 190, 138, 0.08);
}

.nav-toggle-bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}

.nav-open .nav-toggle-bars span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-open .nav-toggle-bars span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* mobile navigation panel */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem var(--gutter) 1.4rem;
  background: #040912;
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.nav-open .primary-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.nav-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.7rem;
}

.nav-link {
  display: block;
  padding: 0.72rem 0.1rem;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(234, 240, 247, 0.07);
  transition: color 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--gold-strong);
}

.primary-nav .btn-nav {
  align-self: flex-start;
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(2.1rem, 6vw, 3.6rem);
  padding-bottom: clamp(2.8rem, 7vw, 5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(180deg, rgba(5, 11, 22, 0.86) 0%, rgba(5, 11, 22, 0.72) 40%,
      rgba(7, 16, 32, 0.92) 78%, var(--bg-1) 100%),
    url("../../img/bg-gba.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 62%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 78% 26%, rgba(95, 227, 240, 0.16), transparent 66%),
    radial-gradient(60% 50% at 18% 82%, rgba(216, 190, 138, 0.12), transparent 70%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.hero-inner {
  display: grid;
  gap: clamp(1.9rem, 5vw, 3.2rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kicker {
  margin-bottom: 0.9rem;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  margin-bottom: calc(1.05rem - 0.16em);
  /* the gradient below is clipped to the padding box, so a little extra
     padding keeps descenders (the "g" in King) inside the painted area */
  padding-bottom: 0.16em;
  font-size: clamp(2.4rem, 8.6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--ink);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title {
    background-image: linear-gradient(112deg, #FFFFFF 4%, #E6EEF9 32%,
      var(--gold-strong) 74%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-sub {
  max-width: 40ch;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.14rem);
}

.hero-actions {
  margin-bottom: 1.15rem;
}

.hero-tagline {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.badge {
  padding: 0.34rem 0.75rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(216, 190, 138, 0.06);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.hero-figure {
  position: relative;
  margin: 0;
  max-width: 30rem;
  width: 100%;
  justify-self: center;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: -10% -12% auto;
  height: 64%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(95, 227, 240, 0.24), transparent 76%);
  filter: blur(16px);
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 190, 138, 0.38);
  border-radius: var(--radius-xl);
  background: radial-gradient(90% 70% at 50% 0%, rgba(95, 227, 240, 0.18), transparent 62%), #061021;
  box-shadow: 0 44px 90px -46px rgba(95, 227, 240, 0.65), var(--shadow-card),
    inset 0 0 0 1px rgba(216, 190, 138, 0.1);
}

.hero-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 20%;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(to top, rgba(5, 11, 22, 0.96), rgba(5, 11, 22, 0.5) 45%, transparent);
  pointer-events: none;
}

/* --------------------------------------------------------------- philosophy */

.philosophy-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
}

.philosophy .lede {
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  color: #C6D1E0;
}

.keyword-row {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
}

.keyword {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 1.4rem;
  border: 1px solid rgba(216, 190, 138, 0.18);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(18, 36, 66, 0.5), rgba(7, 16, 32, 0.5));
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.keyword:hover {
  border-color: var(--gold-line-strong);
  box-shadow: var(--shadow-gold);
}

.keyword-mark {
  position: absolute;
  top: 1.5rem;
  left: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(95, 227, 240, 0.9);
}

.keyword-name {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--gold-strong);
}

.keyword-text {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ----------------------------------------------------------------- features */

.features-grid {
  display: grid;
  gap: 1rem;
}

.feature-card.has-media .card-body {
  padding-top: 1.35rem;
}

/* ---------------------------------------------------------------------- sdk */

.sdk-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold-line-strong);
  background: radial-gradient(circle at 35% 30%, var(--cyan), rgba(95, 227, 240, 0.15));
  box-shadow: 0 0 10px rgba(95, 227, 240, 0.5);
}

.code-panel {
  margin-top: clamp(1.8rem, 4.5vw, 2.8rem);
  overflow: hidden;
  border: 1px solid rgba(95, 227, 240, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(170deg, #071426 0%, #040C18 100%);
  box-shadow: var(--shadow-card), 0 0 60px -30px rgba(95, 227, 240, 0.5);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid rgba(95, 227, 240, 0.16);
  background: rgba(95, 227, 240, 0.05);
}

.code-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.code-dots {
  display: inline-flex;
  gap: 6px;
}

.code-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(234, 240, 247, 0.22);
}

.code-dots i:first-child {
  background: rgba(216, 190, 138, 0.7);
}

.code-dots i:nth-child(2) {
  background: rgba(95, 227, 240, 0.6);
}

.code-block {
  margin: 0;
  padding: 1.1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: #CFE2F2;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

.code-block code {
  font: inherit;
  white-space: pre;
}

.code-caption {
  padding: 0 1.1rem 1rem;
  font-size: 0.76rem;
  color: var(--muted-2);
}

.sdk-steps {
  margin-top: clamp(1.9rem, 4.5vw, 2.8rem);
}

.step-flow {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
  padding: 1.15rem 1.2rem 1.15rem 3.5rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(18, 36, 66, 0.52), rgba(7, 16, 32, 0.52));
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.05rem;
  left: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.step-title {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.step-text {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------- map */

.map-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.4rem);
  align-items: start;
}

.map-list {
  display: grid;
  gap: 0.85rem;
}

.map-item {
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(216, 190, 138, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(9, 20, 38, 0.5);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.map-item:hover {
  border-color: var(--gold-line-strong);
  background: rgba(18, 36, 66, 0.55);
}

.map-item-title {
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
  color: var(--gold-strong);
  letter-spacing: 0.01em;
}

.map-item-text {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ product */

.product-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: start;
}

.product-body .mini-title + .pill-list {
  margin-bottom: 1.6rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-list li {
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(216, 190, 138, 0.07);
  font-size: 0.78rem;
  color: var(--gold-strong);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  padding: 0.72rem 0.2rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(234, 240, 247, 0.09);
}

.spec-table th {
  width: 42%;
  padding-right: 1rem;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.spec-table td {
  color: var(--ink);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

/* ------------------------------------------------------------------ journey */

.journey {
  display: grid;
  gap: 0;
  counter-reset: journey;
}

.journey-step {
  position: relative;
  counter-increment: journey;
  padding: 0 0 1.9rem 2.6rem;
  border-left: 1px solid rgba(216, 190, 138, 0.22);
}

.journey-step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.journey-step::before {
  content: counter(journey, decimal-leading-zero);
  position: absolute;
  top: -0.15rem;
  left: -1.05rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--gold-line-strong);
  background: #071021;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  box-shadow: 0 0 0 6px rgba(5, 11, 22, 0.9);
}

.journey-title {
  margin-bottom: 0.3rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.journey-text {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------- solutions */

.solutions-grid {
  display: grid;
  gap: 1rem;
}

/* ---------------------------------------------------------------------- why */

.why-grid {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: start;
}

.why-list {
  display: grid;
  gap: 0.7rem;
}

.why-item {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.5rem;
  border: 1px solid rgba(216, 190, 138, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(9, 20, 38, 0.48);
  font-size: 0.93rem;
  color: #CFDAE7;
}

.why-item::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 0.95rem;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(216, 190, 138, 0.6);
}

/* ---------------------------------------------------------------- note card */

.note-card {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(95, 227, 240, 0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(95, 227, 240, 0.12), transparent 58%),
    linear-gradient(150deg, rgba(18, 36, 66, 0.72), rgba(7, 16, 32, 0.8));
  box-shadow: var(--shadow-card);
}

.note-card h2 {
  font-size: clamp(1.4rem, 3.4vw, 2.05rem);
}

.note-text {
  max-width: 74ch;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------- models */

.models-grid {
  display: grid;
  gap: 1rem;
}

/* -------------------------------------------------------------------- about */

.about-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.8rem);
  align-items: start;
}

.pillars {
  display: grid;
  gap: 0.9rem;
}

.pillar {
  padding: 1.15rem 1.25rem;
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(96deg, rgba(216, 190, 138, 0.1), rgba(7, 16, 32, 0) 72%);
}

.pillar-label {
  margin-bottom: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.pillar-text {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ------------------------------------------------------------------ contact */

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 5vw, 3.2rem);
  border: 1px solid var(--gold-line-strong);
  border-radius: var(--radius-xl);
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(216, 190, 138, 0.2), transparent 62%),
    linear-gradient(160deg, rgba(18, 36, 66, 0.82), rgba(7, 16, 32, 0.9));
  box-shadow: var(--shadow-card), 0 0 90px -50px rgba(216, 190, 138, 0.7);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 60% at 50% 120%, rgba(95, 227, 240, 0.16), transparent 70%);
}

.contact-card .eyebrow {
  justify-content: center;
}

.contact-card h2 {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
}

.contact-text {
  max-width: 52ch;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(1rem, 4vw, 3rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(5, 11, 22, 0) 0%, rgba(3, 8, 16, 0.92) 68%);
}

.footer-inner {
  display: grid;
  gap: 1.6rem;
  padding-bottom: clamp(1.5rem, 4vw, 2.4rem);
}

.footer-brand .brand {
  margin-bottom: 0.55rem;
}

.footer-tagline {
  max-width: 34ch;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--muted-2);
}

.footer-side {
  display: grid;
  gap: 0.9rem;
}

.footer-email {
  display: grid;
  gap: 0.25rem;
}

.footer-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-email a {
  font-size: 1rem;
  color: var(--gold-strong);
  text-decoration: underline;
  text-decoration-color: rgba(216, 190, 138, 0.4);
  text-underline-offset: 4px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

.footer-email a:hover {
  color: #fff;
  text-decoration-color: var(--gold);
}

.lang-switch--footer {
  justify-self: start;
  padding: 0.24rem;
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch--footer .lang-link {
  padding: 0.34rem 0.7rem;
  font-size: 0.74rem;
}

.footer-base {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.1rem 1.6rem;
  border-top: 1px solid rgba(234, 240, 247, 0.08);
}

.footer-copy,
.footer-note {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted-2);
}

/* ============================================================ >= 640px === */

@media (min-width: 640px) {
  .features-grid,
  .step-flow,
  .solutions-grid,
  .models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* keep text cards at their natural height so they do not stretch
     against the taller image cards in the same row */
  .features-grid {
    align-items: start;
  }

  .keyword-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1.2fr auto;
    align-items: start;
  }

  .footer-side {
    justify-items: end;
    text-align: right;
  }

  .footer-email {
    justify-items: end;
  }

  .lang-switch--footer {
    justify-self: end;
  }

  .hero-figure {
    max-width: 26rem;
  }
}

/* ========================================================= 640px - 1023px === */

@media (min-width: 640px) and (max-width: 1023px) {
  /* with two columns the odd text card takes the full row so the two image
     cards can sit next to each other instead of leaving a hole */
  .features-grid > .feature-card:nth-child(3):not(.has-media) {
    grid-column: span 2;
  }
}

/* =========================================================== >= 1024px === */

@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  /* header becomes a single inline row */
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    margin-left: 1rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0;
  }

  .nav-link {
    padding: 0.45rem 0.7rem;
    font-size: 0.83rem;
    letter-spacing: 0.03em;
    color: var(--muted);
    border-bottom: 0;
    border-radius: 999px;
  }

  .nav-link:hover {
    background: rgba(216, 190, 138, 0.1);
    color: var(--gold-strong);
  }

  .primary-nav .btn-nav {
    display: none;
  }

  .header-tools {
    gap: 0.75rem;
  }

  .lang-link {
    padding: 0.3rem 0.62rem;
    font-size: 0.72rem;
  }

  body.nav-open {
    overflow: visible;
  }

  /* hero */
  .hero {
    padding-top: clamp(2.6rem, 4.5vw, 4.2rem);
    padding-bottom: clamp(3.4rem, 6vw, 5.6rem);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.6rem);
  }

  .hero-figure {
    max-width: 34rem;
    justify-self: end;
  }

  /* section layouts */
  .philosophy-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
  }

  .keyword-row {
    grid-template-columns: 1fr;
  }

  .features-grid {
    /* six tracks: three text cards take two tracks each on the first row,
       the two image cards take three each on the second row - three up, then
       two up, with no empty cell */
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.15rem;
  }

  .features-grid > .feature-card {
    grid-column: span 2;
  }

  .features-grid > .feature-card.has-media {
    grid-column: span 3;
  }

  .sdk-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .step-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .step {
    padding: 1.1rem 1rem 1.2rem;
  }

  .step::before {
    position: static;
    display: block;
    margin-bottom: 0.55rem;
    color: var(--cyan);
  }

  .map-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .product-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3rem);
  }

  .journey {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.3rem;
  }

  .journey-step {
    padding: 3rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(216, 190, 138, 0.22);
  }

  .journey-step:last-child {
    padding-bottom: 0;
    border-top-color: transparent;
  }

  .journey-step::before {
    top: -1.05rem;
    left: 0;
    box-shadow: none;
  }

  .solutions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .why-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
  }

  .why-list {
    gap: 0.8rem;
  }

  .models-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }

  /* keep card copy aligned when a title wraps onto a second line */
  .model-card .card-title {
    min-height: 2.5em;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.4rem);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-base {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
  }
}

/* =========================================================== >= 1200px === */

@media (min-width: 1200px) {
  .primary-nav .btn-nav {
    display: inline-flex;
    margin-left: 0.4rem;
  }

  .hero-title {
    font-size: 4.5rem;
  }
}

/* ============================================================ preferences == */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-canvas {
    display: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .hero-canvas,
  .hero-bg,
  .site-footer .lang-switch,
  .nav-toggle {
    display: none !important;
  }
}
