/* ==========================================================================
   HoTo Trading Co., Limited — Global Design System
   --------------------------------------------------------------------------
   Single stylesheet for the entire site (reuse-A).
   No inline styles, no framework, no third-party asset.

   Visual direction: premium automotive — a carbon-dark structural base,
   paper-light content surfaces, precision grid alignment, sharp geometry,
   a single warm "signal" accent used sparingly, and motion that feels
   mechanical rather than bouncy. All tokens below are original to this
   project; no external brand palette is reproduced.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Carbon (structural dark surfaces) --- */
  --c-carbon-900: #07090C;
  --c-carbon-800: #0D1116;
  --c-carbon-700: #131820;
  --c-carbon-600: #1B222C;
  --c-carbon-500: #262F3B;

  /* --- Paper (light content surfaces) --- */
  --c-paper: #FFFFFF;
  --c-paper-2: #F4F5F7;
  --c-paper-3: #E8EAEE;
  --c-paper-4: #DCDFE5;

  /* --- Text --- */
  --t-strong: #0B0F14;
  --t-body: #48525F;
  --t-muted: #7B8593;
  --t-invert: #F3F5F8;
  --t-invert-2: #A9B3C0;
  --t-invert-3: #6E7986;

  /* --- Signal accent (warm) --- */
  --a-700: #A8410F;
  --a-600: #C4561F;
  --a-500: #E4743B;
  --a-400: #F1955F;
  --a-200: #FBD9C3;
  --a-100: #FDEEE4;
  --a-glow: rgba(228, 116, 59, 0.30);
  --a-glow-soft: rgba(228, 116, 59, 0.12);

  /* --- Secondary accent (cool) --- */
  --g-700: #2F5E70;
  --g-500: #4E8FA8;
  --g-300: #9CC7D8;
  --g-100: #E4F0F4;

  /* --- Semantic --- */
  --c-success: #2F7D5B;
  --c-success-soft: #E2F1E9;
  --c-warning: #A8761B;
  --c-warning-soft: #FBF0DC;
  --c-danger: #A32B2B;
  --c-danger-soft: #F8E4E4;

  /* --- Lines --- */
  --line-soft: rgba(11, 15, 20, 0.08);
  --line-mid: rgba(11, 15, 20, 0.14);
  --line-strong: rgba(11, 15, 20, 0.24);
  --line-invert: rgba(255, 255, 255, 0.10);
  --line-invert-strong: rgba(255, 255, 255, 0.20);

  /* --- Spacing scale (4px base) --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 48px;
  --sp-9: 64px;
  --sp-10: 80px;
  --sp-11: 96px;
  --sp-12: 128px;

  /* --- Radii (automotive precision: tight) --- */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* --- Shadows --- */
  --sh-1: 0 1px 2px rgba(8, 11, 16, 0.06), 0 1px 3px rgba(8, 11, 16, 0.05);
  --sh-2: 0 12px 26px -16px rgba(8, 11, 16, 0.28);
  --sh-3: 0 28px 56px -30px rgba(8, 11, 16, 0.38);
  --sh-4: 0 44px 88px -40px rgba(8, 11, 16, 0.48);
  --sh-accent: 0 18px 44px -20px rgba(228, 116, 59, 0.55);

  /* --- Typography --- */
  --ff-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ff-display: "Inter", "Segoe UI Semibold", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --ff-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.55rem, 5.6vw, 4.35rem);
  --fs-h1: clamp(2.05rem, 4.2vw, 3.15rem);
  --fs-h2: clamp(1.65rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 1.7vw, 1.45rem);
  --fs-h4: clamp(1.02rem, 1.3vw, 1.12rem);
  --fs-lead: clamp(1.02rem, 1.35vw, 1.16rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;
  --fs-micro: 0.72rem;

  --lh-tight: 1.06;
  --lh-snug: 1.22;
  --lh-normal: 1.62;
  --lh-relaxed: 1.78;

  --ls-display: -0.03em;
  --ls-tight: -0.018em;
  --ls-normal: 0;
  --ls-wide: 0.06em;
  --ls-wider: 0.16em;

  /* Horizontal reveal travel must stay inside the container gutter, otherwise
     the pre-reveal start state pushes the initial containing block wider than
     the viewport and every position:fixed element sizes itself to that. */
  --slide-x: clamp(12px, 3.8vw, 38px);

  /* --- Layout --- */
  --container: 1200px;
  --container-wide: 1380px;
  --gutter: clamp(20px, 4.2vw, 40px);
  --section-y: clamp(56px, 8vw, 112px);
  --header-h: 76px;

  /* --- Motion --- */
  --dur-xs: 120ms;
  --dur-fast: 200ms;
  --dur-med: 340ms;
  --dur-slow: 560ms;
  --dur-reveal: 780ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layering --- */
  --z-base: 1;
  --z-sticky: 40;
  --z-header: 80;
  --z-drawer: 90;
  --z-overlay: 95;
  --z-top: 100;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* clip (not hidden) prevents any horizontal scroll without turning the
     root into a scroll container */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--t-body);
  background-color: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--t-strong);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-display); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 650; letter-spacing: var(--ls-normal); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

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

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }

strong { color: var(--t-strong); font-weight: 650; }

/* --- Dark-surface colour overrides ---
   Anything that defaults to dark ink has to flip to light on the carbon
   surfaces, otherwise it is technically present but visually unreadable. */

.hero .eyebrow,
.page-hero .eyebrow,
.section-carbon .eyebrow,
.cta-strip .eyebrow { color: var(--a-400); }

.hero .lead,
.page-hero .lead,
.cta-strip .lead { color: var(--t-invert-2); }

.hero strong,
.page-hero strong,
.section-carbon strong,
.cta-strip strong,
.card-dark strong { color: var(--t-invert); }

.hero h5, .hero h6,
.page-hero h5, .page-hero h6,
.section-carbon h5, .section-carbon h6,
.cta-strip h5, .cta-strip h6 { color: var(--t-invert); }

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: var(--sp-8) 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--a-500);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--a-500);
  color: #fff;
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(36px, 5vw, 68px); }
.section-paper { background: var(--c-paper); }
.section-paper-2 { background: var(--c-paper-2); }
.section-carbon { background: var(--c-carbon-800); color: var(--t-invert-2); }
.section-carbon h2,
.section-carbon h3,
.section-carbon h4 { color: var(--t-invert); }
.section-carbon p { color: var(--t-invert-2); }
.section-carbon .eyebrow { color: var(--a-400); }
.section-carbon .lead { color: var(--t-invert-2); }

.section-line-top { border-top: 1px solid var(--line-soft); }
.section-line-bottom { border-bottom: 1px solid var(--line-soft); }

.grid { display: grid; gap: var(--sp-5); }
.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)); }

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.section-flush { padding-block: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-9 { margin-top: var(--sp-9); }
.btn-row-center { justify-content: center; }
.align-center { align-items: center; }
.gap-lg { gap: clamp(32px, 5vw, 72px); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px; left: var(--gutter);
  z-index: var(--z-top);
  padding: var(--sp-3) var(--sp-5);
  background: var(--a-500);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* --- Section heading system --- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--a-600);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--a-500);
  flex: none;
}
.eyebrow.center-e { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4.4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { margin: 0 0 var(--sp-4); font-size: var(--fs-h2); letter-spacing: var(--ls-display); }
.section-sub { margin: 0; font-size: var(--fs-lead); color: var(--t-muted); }
.section-carbon .section-sub { color: var(--t-invert-2); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--t-body);
}

.text-accent { color: var(--a-600); }
.text-muted { color: var(--t-muted); }
.text-center { text-align: center; }

/* ==========================================================================
   4. BUTTONS, BADGES, CHIPS
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--a-500);
  color: #fff;
  box-shadow: var(--sh-accent);
}
.btn-primary:hover {
  background: var(--a-600);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-dark {
  background: var(--c-carbon-800);
  color: var(--t-invert);
}
.btn-dark:hover { background: var(--c-carbon-600); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--t-strong);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--a-500);
  color: var(--a-600);
  transform: translateY(-2px);
}

.btn-ghost-invert {
  background: transparent;
  color: var(--t-invert);
  border-color: var(--line-invert-strong);
}
.btn-ghost-invert:hover {
  border-color: var(--a-500);
  color: var(--a-400);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 18px; font-size: var(--fs-xs); }
.btn-lg { padding: 17px 34px; font-size: var(--fs-body); }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.section-carbon .btn-ghost { color: var(--t-invert); border-color: var(--line-invert-strong); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--a-100);
  color: var(--a-700);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.badge-dark { background: rgba(255, 255, 255, 0.08); color: var(--t-invert); border: 1px solid var(--line-invert); }
.badge-outline { background: transparent; border: 1px solid var(--line-mid); color: var(--t-body); }
.badge-success { background: var(--c-success-soft); color: var(--c-success); }
.badge-warning { background: var(--c-warning-soft); color: var(--c-warning); }
.badge svg { width: 14px; height: 14px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 16px;
  border: 1px solid var(--line-mid);
  border-radius: var(--r-pill);
  background: var(--c-paper);
  color: var(--t-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--a-500); color: var(--a-600); }
.chip.is-active {
  background: var(--c-carbon-800);
  border-color: var(--c-carbon-800);
  color: var(--t-invert);
}
.chip-count {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  opacity: 0.65;
}

/* ==========================================================================
   5. CARDS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--c-paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-mid);
  box-shadow: var(--sh-3);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--t-body); }
.card-index {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-wide);
  color: var(--a-600);
  margin-bottom: var(--sp-4);
  display: block;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-sm);
  background: var(--c-carbon-800);
  color: var(--a-400);
  transition: background-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { background: var(--a-500); color: #fff; }

.card-dark {
  background: var(--c-carbon-700);
  border-color: var(--line-invert);
  color: var(--t-invert-2);
}
.card-dark h3 { color: var(--t-invert); }
.card-dark p { color: var(--t-invert-2); }
.card-dark:hover { border-color: var(--a-500); }

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-link .card-more {
  margin-top: auto;
  padding-top: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--a-600);
}
.card-link .card-more svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.card-link:hover .card-more svg { transform: translateX(5px); }

/* ==========================================================================
   6. FORMS & TABLES
   ========================================================================== */

.form-grid { display: grid; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--t-body);
}
.field .req { color: var(--a-600); }

.form-control {
  width: 100%;
  padding: 13px 15px;
  background: var(--c-paper);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-sm);
  font-size: var(--fs-body);
  color: var(--t-strong);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-control::placeholder { color: var(--t-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--a-500);
  box-shadow: 0 0 0 3px var(--a-glow-soft);
}
textarea.form-control { min-height: 140px; resize: vertical; }

.form-control.has-error {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px rgba(163, 43, 43, 0.12);
}

.field-error {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-danger);
}
.field-error.is-visible { display: block; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--t-body);
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--a-500);
}
.form-check a { color: var(--a-600); font-weight: 600; text-decoration: underline; }

.form-note {
  padding: var(--sp-4);
  border-left: 3px solid var(--a-500);
  background: var(--a-100);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
  color: var(--t-body);
}

.form-status {
  display: none;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--c-success-soft); color: var(--c-success); }
.form-status.is-error { background: var(--c-danger-soft); color: var(--c-danger); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--c-paper);
}
.data-table caption {
  text-align: left;
  padding-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--t-muted);
}
.data-table th,
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.data-table th {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--t-strong);
  background: var(--c-paper-2);
  border-bottom: 1px solid var(--line-mid);
  white-space: nowrap;
}
.data-table tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
.data-table tbody tr:hover { background: var(--c-paper-2); }
.data-table td:first-child { font-weight: 650; color: var(--t-strong); }

/* ==========================================================================
   7. HEADER (reuse-C)
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 17, 22, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line-invert);
  transition: background-color var(--dur-med) var(--ease-out), height var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(7, 9, 12, 0.92);
  box-shadow: var(--sh-2);
}
.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--t-invert);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--a-500);
  color: #fff;
  flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 0.98rem; }
.brand-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--t-invert-3);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-invert);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--t-invert);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-close { display: block; }
.nav-toggle.is-open .icon-menu { display: none; }

.site-nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--t-invert-2);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--a-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-snap);
}
.nav-list a:hover { color: var(--t-invert); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--t-invert); }
.nav-list a.is-active::after { transform: scaleX(1); }

.nav-cta {
  padding: 10px 20px;
  border-radius: var(--r-sm);
  background: var(--a-500);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-cta:hover { background: var(--a-600); color: #fff; }

.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-drawer);
  display: none;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--gutter) var(--sp-9);
  background: var(--c-carbon-900);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
}
.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drawer a {
  display: block;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-invert);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: var(--ls-tight);
  color: var(--t-invert);
}
.nav-drawer a.is-active { color: var(--a-400); }
.nav-drawer .drawer-meta {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--t-invert-3);
}

/* ==========================================================================
   8. FOOTER (reuse-D)
   ========================================================================== */

.site-footer {
  background: var(--c-carbon-900);
  color: var(--t-invert-3);
  padding-block: clamp(48px, 6vw, 84px) var(--sp-6);
  border-top: 1px solid var(--line-invert);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.footer-brand .brand { margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); max-width: 34ch; }
.footer-col h4 {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--t-invert);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a { font-size: var(--fs-sm); color: var(--t-invert-3); }
.footer-col a:hover { color: var(--a-400); }
.footer-contact li {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--a-500); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-invert);
  font-size: var(--fs-xs);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer-legal a { color: var(--t-invert-3); }
.footer-legal a:hover { color: var(--a-400); }

/* ==========================================================================
   9. HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(56px, 8vw, 112px);
  background: var(--c-carbon-900);
  color: var(--t-invert-2);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(228, 116, 59, 0.16), transparent 62%),
    radial-gradient(900px 560px at 8% 92%, rgba(78, 143, 168, 0.12), transparent 60%),
    linear-gradient(180deg, #07090C 0%, #0D1116 58%, #131820 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  opacity: 0.8;
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--t-invert);
  max-width: 15ch;
}
.hero .lead { max-width: 56ch; color: var(--t-invert-2); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--sh-4);
  background: var(--c-carbon-700);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto -16px -16px auto;
  width: 62%; height: 62%;
  z-index: -1;
  border-right: 2px solid var(--a-500);
  border-bottom: 2px solid var(--a-500);
  border-radius: 0 0 var(--r-md) 0;
}
.hero-float {
  position: absolute;
  right: -10px;
  bottom: -22px;
  width: 108px;
  z-index: 2;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--t-invert-3);
}
.hero-scroll svg { width: 16px; height: 16px; animation: nudge-down 1.9s var(--ease-in-out) infinite; }

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 84px));
  padding-bottom: clamp(40px, 5.5vw, 76px);
  background: var(--c-carbon-900);
  color: var(--t-invert-2);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(820px 460px at 82% 12%, rgba(228, 116, 59, 0.14), transparent 60%),
    linear-gradient(180deg, #07090C 0%, #10151C 100%);
}
.page-hero h1 { color: var(--t-invert); max-width: 18ch; }
.page-hero .lead { max-width: 62ch; }
.page-hero .hero-grid { align-items: end; }
.page-hero-mascot {
  justify-self: end;
  width: clamp(120px, 18vw, 190px);
}

/* ==========================================================================
   10. SERVICES GRID
   ========================================================================== */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-paper);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--c-carbon-800);
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
}
.svc-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--a-500);
  box-shadow: var(--sh-3);
}
.svc-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-wide);
  color: var(--a-600);
}
.svc-card h3 { margin: 0; font-size: var(--fs-h4); }
.svc-card p { margin: 0; font-size: var(--fs-sm); color: var(--t-body); }
.svc-card .svc-foot {
  margin-top: auto;
  padding-top: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--a-600);
}
.svc-card .svc-foot svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.svc-card:hover .svc-foot svg { transform: translateX(4px); }
.svc-card.is-scope-note {
  background: var(--c-carbon-800);
  border-color: var(--c-carbon-800);
  border-top-color: var(--a-500);
}
.svc-card.is-scope-note h3 { color: var(--t-invert); }
.svc-card.is-scope-note p { color: var(--t-invert-2); }
.svc-card.is-scope-note .svc-num { color: var(--a-400); }

/* ==========================================================================
   11. APP SHOWCASE
   ========================================================================== */

.app-showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.app-device {
  position: relative;
  display: flex;
  justify-content: center;
  padding: var(--sp-6) 0;
}
.phone-frame {
  position: relative;
  width: min(280px, 78%);
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2A323D 0%, #12171E 58%);
  box-shadow: var(--sh-4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 74px; height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 18.5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--c-carbon-800);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--c-carbon-700);
}
.phone-mascot {
  position: absolute;
  right: -34px;
  bottom: 46px;
  width: 86px;
  z-index: 3;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}
.app-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.app-shot {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-carbon-700);
  box-shadow: var(--sh-2);
  border: 1px solid var(--line-invert);
}
.app-shot img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

.feature-list { list-style: none; margin: var(--sp-6) 0; padding: 0; display: grid; gap: var(--sp-3); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: 0;
  font-size: var(--fs-body);
  color: var(--t-body);
}
.feature-list li svg {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--a-500);
}
.section-carbon .feature-list li { color: var(--t-invert-2); }
.section-carbon .feature-list li svg { color: var(--a-400); }

.store-badges { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--c-paper);
  transition: all var(--dur-fast) var(--ease-out);
}
.store-badge:hover {
  border-color: var(--c-carbon-800);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.store-badge svg { width: 24px; height: 24px; color: var(--c-carbon-800); }
.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-badge .sb-top {
  font-size: 0.58rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--t-muted);
}
.store-badge .sb-main {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--t-strong);
}
.section-carbon .store-badge {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-invert-strong);
}
.section-carbon .store-badge:hover { background: rgba(255, 255, 255, 0.08); }
.section-carbon .store-badge svg { color: var(--t-invert); }
.section-carbon .store-badge .sb-main { color: var(--t-invert); }
.section-carbon .store-badge .sb-top { color: var(--t-invert-3); }

/* ==========================================================================
   12. STATS / VALUES / TIMELINE
   ========================================================================== */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-invert);
  border-block: 1px solid var(--line-invert);
}
.stat {
  padding: var(--sp-7) var(--sp-5);
  background: var(--c-carbon-800);
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  color: var(--t-invert);
  line-height: 1;
}
.stat-value em { font-style: normal; color: var(--a-500); }
.stat-label {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--t-invert-3);
}
.stat-desc { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--t-invert-3); }

.value-card { text-align: left; }
.value-card .card-icon { background: var(--a-500); color: #fff; }

.timeline { position: relative; display: grid; gap: var(--sp-6); }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--a-500), var(--line-soft));
}
.tl-item { position: relative; padding-left: 48px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 2px solid var(--a-500);
  box-shadow: 0 0 0 5px var(--c-paper);
}
.tl-year {
  display: inline-block;
  margin-bottom: var(--sp-2);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: var(--a-600);
}
.tl-item h3 { margin-bottom: var(--sp-2); font-size: var(--fs-h4); }
.tl-item p { margin: 0; font-size: var(--fs-sm); color: var(--t-body); }

/* ==========================================================================
   13. NEWS
   ========================================================================== */

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.news-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--c-paper-3);
}
.news-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-tag {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(6px);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--t-invert);
}
.news-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.news-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--t-muted);
}
.news-body h3 { margin-bottom: var(--sp-3); font-size: var(--fs-h4); }
.news-body p { margin: 0; font-size: var(--fs-sm); color: var(--t-body); }
.news-more {
  margin-top: auto;
  padding-top: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--a-600);
}
.news-more svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.news-card:hover .news-more svg { transform: translateX(4px); }
.news-card.is-hidden { display: none; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-9);
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-mid);
  border-radius: var(--r-sm);
  background: var(--c-paper);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--t-body);
  transition: all var(--dur-fast) var(--ease-out);
}
.page-btn:hover { border-color: var(--a-500); color: var(--a-600); }
.page-btn.is-active {
  background: var(--c-carbon-800);
  border-color: var(--c-carbon-800);
  color: var(--t-invert);
}
.page-btn svg { width: 16px; height: 16px; }
.page-btn[data-page-prev] svg { transform: rotate(180deg); }
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ==========================================================================
   14. CONTACT
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.contact-list li {
  display: flex;
  gap: var(--sp-4);
  margin: 0;
  padding: var(--sp-4);
  background: var(--c-paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.contact-list li:hover { border-color: var(--a-500); transform: translateX(3px); }
.contact-list .ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--c-carbon-800);
  color: var(--a-400);
}
.contact-list .ci svg { width: 19px; height: 19px; }
.contact-list .ci-label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--t-muted);
  margin-bottom: 2px;
}
.contact-list .ci-value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--t-strong);
  line-height: 1.5;
  word-break: break-word;
}
a.contact-list li:hover .ci-value { color: var(--a-600); }

.map-frame {
  position: relative;
  margin-top: var(--sp-8);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--c-paper-3);
}
.map-frame img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.map-overlay {
  position: absolute;
  left: var(--sp-5); bottom: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-sm);
  background: rgba(7, 9, 12, 0.86);
  backdrop-filter: blur(8px);
  color: var(--t-invert);
  font-size: var(--fs-sm);
  max-width: 340px;
}
.map-overlay strong { display: block; margin-bottom: 2px; color: var(--t-invert); }
.map-overlay span { font-size: var(--fs-xs); color: var(--t-invert-2); }

.faq-list { display: grid; gap: var(--sp-3); }
.faq-item {
  padding: var(--sp-5);
  background: var(--c-paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.faq-item:hover { border-color: var(--line-mid); box-shadow: var(--sh-1); }
.faq-item h3 {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-h4);
}
.faq-item h3 svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--a-500); }
.faq-item p { margin: 0; font-size: var(--fs-sm); color: var(--t-body); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--c-carbon-800);
  border-radius: 2px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: var(--a-500);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.step h3 { margin-bottom: var(--sp-2); font-size: var(--fs-h4); }
.step p { margin: 0; font-size: var(--fs-sm); color: var(--t-body); }

/* ==========================================================================
   15. CTA STRIP
   ========================================================================== */

.cta-strip {
  position: relative;
  overflow: hidden;
  background: var(--c-carbon-800);
  color: var(--t-invert-2);
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(720px 320px at 88% 20%, rgba(228, 116, 59, 0.22), transparent 66%);
}
.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-block: clamp(36px, 5vw, 64px);
}
.cta-inner h2 { margin: 0 0 var(--sp-2); color: var(--t-invert); font-size: var(--fs-h2); }
.cta-inner p { margin: 0; max-width: 56ch; font-size: var(--fs-sm); }
.cta-identity {
  margin-top: var(--sp-4) !important;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-invert);
  font-size: var(--fs-xs) !important;
  line-height: 1.75;
  color: var(--t-invert-3);
}
.cta-identity strong { color: var(--t-invert-2); font-weight: 650; }
.cta-identity a { color: var(--t-invert-2); }
.cta-identity a:hover { color: var(--a-400); }
.cta-mascot { width: 96px; flex: none; }

/* ==========================================================================
   16. LEGAL DOCUMENTS (reuse-I)
   ========================================================================== */

.legal {
  max-width: 860px;
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 80px);
}
.legal h2 {
  margin-top: var(--sp-9);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-soft);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: var(--ls-tight);
}
.legal h2:first-of-type { margin-top: var(--sp-7); }
.legal h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--t-strong);
}
.legal p { margin-bottom: var(--sp-4); font-size: var(--fs-body); line-height: var(--lh-relaxed); }
.legal ul, .legal ol { margin: 0 0 var(--sp-4); padding-left: 1.35em; }
.legal li { margin-bottom: var(--sp-2); line-height: var(--lh-relaxed); }
.legal strong { color: var(--t-strong); }
.legal a { color: var(--a-600); font-weight: 600; text-decoration: underline; }
.legal a:hover { color: var(--a-700); }

.legal-meta {
  font-size: var(--fs-sm);
  color: var(--t-muted);
  letter-spacing: 0.02em;
}
.legal-toc {
  margin: var(--sp-6) 0 var(--sp-8);
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-paper-2);
  border-left: 3px solid var(--a-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.legal-toc ul { margin: 0; padding-left: 1.2em; columns: 2; column-gap: var(--sp-6); }
.legal-toc li { font-size: var(--fs-sm); break-inside: avoid; }

.legal table {
  width: 100%;
  margin: var(--sp-5) 0 var(--sp-7);
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.legal-table-wrap { overflow-x: auto; margin: var(--sp-5) 0 var(--sp-7); }
.legal-table-wrap table { margin: 0; }
.legal th, .legal td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line-soft);
}
.legal th {
  background: var(--c-carbon-800);
  color: var(--t-invert);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  white-space: nowrap;
}
.legal tbody tr:nth-child(even) { background: var(--c-paper-2); }
.legal td:first-child { font-weight: 650; color: var(--t-strong); }

/* ==========================================================================
   17. MASCOTS & SVG ICONS
   ========================================================================== */

.mascot {
  display: inline-block;
  width: 72px;
  vertical-align: middle;
}
.mascot-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mascot-sm { width: 52px; }
.mascot-lg { width: 120px; }
.mascot-xl { width: 180px; }
.mascot-float { animation: float 4.6s var(--ease-in-out) infinite; }
.mascot-spin { animation: spin-slow 14s linear infinite; }
.mascot-tilt { transition: transform var(--dur-med) var(--ease-out); }
.mascot-tilt:hover { transform: rotate(-7deg) scale(1.06); }
.mascot-pop { transition: transform var(--dur-med) var(--ease-snap); }
.mascot-pop:hover { transform: translateY(-8px) scale(1.08); }

.icon-inline {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.14em;
  fill: currentColor;
}
.icon-inline svg { width: 100%; height: 100%; display: block; }

.img-placeholder-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: repeating-linear-gradient(
    135deg,
    var(--c-paper-2),
    var(--c-paper-2) 12px,
    var(--c-paper-3) 12px,
    var(--c-paper-3) 24px
  );
  color: var(--t-muted);
}
.img-placeholder-wrap svg { width: 46px; height: 46px; opacity: 0.55; }
.section-carbon .img-placeholder-wrap,
.hero .img-placeholder-wrap,
.cta-strip .img-placeholder-wrap,
.phone-screen .img-placeholder-wrap {
  background: repeating-linear-gradient(
    135deg,
    var(--c-carbon-700),
    var(--c-carbon-700) 12px,
    var(--c-carbon-600) 12px,
    var(--c-carbon-600) 24px
  );
  color: var(--t-invert-3);
}

/* ==========================================================================
   18. ANIMATION TOOLKIT (reuse-G)
   ========================================================================== */

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

@keyframes nudge-down {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(5px); opacity: 0.45; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-left {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-14px); }
  60% { transform: translateY(-7px); }
  80% { transform: translateY(-2px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-7deg); }
  75% { transform: rotate(7deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes draw-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --- Reveal base state ---
   Gated behind .js (set on <html> by js/main.js) so that a visitor without
   JavaScript — or any environment where the observer never fires — still
   sees every word of content instead of an invisible page.               */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* --- Directional reveal --- */

.js .fade-up { opacity: 0; transform: translateY(30px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .fade-up.in { opacity: 1; transform: none; }

.js .fade-in { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.js .fade-in.in { opacity: 1; }

.js .slide-left { opacity: 0; transform: translateX(calc(var(--slide-x) * -1)); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .slide-left.in { opacity: 1; transform: none; }

.js .slide-right { opacity: 0; transform: translateX(var(--slide-x)); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .slide-right.in { opacity: 1; transform: none; }

.js .zoom-in { opacity: 0; transform: scale(0.93); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-snap); }
.js .zoom-in.in { opacity: 1; transform: none; }

/* --- Continuous motion --- */

.float { animation: float 5.4s var(--ease-in-out) infinite; }
.bounce { animation: bounce 2.4s var(--ease-in-out) infinite; }
.pulse { animation: pulse 2.6s var(--ease-in-out) infinite; }
.wiggle { animation: wiggle 1.1s var(--ease-in-out) infinite; }
.spin-slow { animation: spin-slow 12s linear infinite; }

/* --- Stagger --- */

.js .stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.js .stagger.in > *:nth-child(2) { transition-delay: 70ms; }
.js .stagger.in > *:nth-child(3) { transition-delay: 140ms; }
.js .stagger.in > *:nth-child(4) { transition-delay: 210ms; }
.js .stagger.in > *:nth-child(5) { transition-delay: 280ms; }
.js .stagger.in > *:nth-child(6) { transition-delay: 350ms; }
.js .stagger.in > *:nth-child(7) { transition-delay: 420ms; }
.js .stagger.in > *:nth-child(8) { transition-delay: 490ms; }
.js .stagger.in > *:nth-child(9) { transition-delay: 560ms; }
.js .stagger.in > *:nth-child(10) { transition-delay: 630ms; }
.js .stagger.in > *:nth-child(n + 11) { transition-delay: 700ms; }

/* --- Reduced motion guard --- */

@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,
  .fade-up,
  .fade-in,
  .slide-left,
  .slide-right,
  .zoom-in,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .reveal,
  .js .fade-up,
  .js .fade-in,
  .js .slide-left,
  .js .slide-right,
  .js .zoom-in,
  .js .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 620px; }
  .hero h1 { max-width: 100%; }

  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-showcase { grid-template-columns: 1fr; }
  .app-device { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }

  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer { display: flex; }
}

@media (max-width: 768px) {
  :root { --section-y: clamp(44px, 9vw, 72px); }

  .page-hero .hero-grid { align-items: start; }
  .page-hero-mascot { justify-self: start; width: 120px; }
  .hero-float { width: 78px; right: 0; bottom: -14px; }
  .phone-mascot { width: 66px; right: -18px; bottom: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-6); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-mascot { display: none; }
  .legal-toc ul { columns: 1; }
  .legal-table-wrap table { font-size: 0.82rem; }
  .legal th, .legal td { padding: var(--sp-2) var(--sp-3); }
}

@media (max-width: 480px) {
  :root { --header-h: 62px; }

  .svc-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .store-badges { flex-direction: column; }
  .store-badge { width: 100%; }
  .app-shots { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .phone-frame { width: min(232px, 82%); }
  .map-overlay { left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3); max-width: none; }
  .pagination { flex-wrap: wrap; }
}

/* ==========================================================================
   20. PRINT
   ========================================================================== */

@media print {
  .site-header, .site-footer, .to-top, .nav-drawer, .cta-strip { display: none !important; }
  body { background: #fff; color: #000; }
  /* Print never scrolls, so scroll-reveal content must be forced visible. */
  .reveal, .fade-up, .fade-in, .slide-left, .slide-right, .zoom-in,
  .stagger > *, .js .reveal, .js .fade-up, .js .fade-in, .js .slide-left,
  .js .slide-right, .js .zoom-in, .js .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .legal > h2 { page-break-after: avoid; }
  .legal table { page-break-inside: avoid; }
}

/* ==========================================================================
   21. BACK TO TOP
   ========================================================================== */

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: var(--z-top);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-invert);
  border-radius: var(--r-sm);
  background: var(--c-carbon-800);
  color: var(--t-invert);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--dur-med) var(--ease-out);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--a-500); border-color: var(--a-500); }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   21. LOCAL FILE PROTOCOL NOTICE
   Browsers block fetch() on file://, so the shared SVG sprite cannot load and
   every icon/mascot reference dangles. Say so instead of failing silently.
   ========================================================================== */

.file-notice {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: var(--z-overlay);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  max-width: min(560px, calc(100vw - 32px));
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--a-500);
  border-radius: var(--r-sm);
  background: rgba(13, 17, 22, 0.96);
  color: var(--t-invert-2);
  font-size: var(--fs-xs);
  line-height: 1.6;
  box-shadow: var(--sh-4);
}
.file-notice .fn-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--a-400); }
.file-notice strong { color: var(--t-invert); }
.file-notice code {
  font-family: var(--ff-mono);
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--a-400);
}

/* ==========================================================================
   22. SVG SPRITE HOST
   ========================================================================== */

.svg-sprite-host {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
  visibility: hidden;
}
