/* ==========================================================================
   CHOICE Overseas International Co., Limited
   Global design system — single stylesheet for the entire site.
   Visual direction: bold industrial automotive campaign (deep blue metal,
   high contrast, punchy motion, friendly mascot accents).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color — brand ramp */
  --c-ink-900: #06121f;
  --c-ink-800: #0b1e30;
  --c-ink-700: #122c44;
  --c-brand-700: #0b3f70;
  --c-brand-600: #0e5291;
  --c-brand-500: #1668b4;
  --c-brand-400: #3b8ada;
  --c-brand-300: #7db3e8;
  --c-brand-100: #dcebf9;
  --c-brand-050: #eff6fd;

  /* Color — neutrals */
  --c-paper: #ffffff;
  --c-surface: #f4f7fa;
  --c-surface-2: #e9eff5;
  --c-line: #d5dfe8;
  --c-line-strong: #b6c5d3;
  --c-steel-700: #44586c;
  --c-steel-600: #5d7185;
  --c-steel-400: #93a5b6;
  --c-steel-300: #aebdcc;
  --c-steel-200: #ccd7e3;

  /* Color — accent (used sparingly: badges, mascot, highlights) */
  --c-accent-500: #ffb81c;
  --c-accent-600: #e8a200;
  --c-accent-100: #fff3d6;

  /* Color — feedback */
  --c-ok-500: #1f9d63;
  --c-warn-500: #d98212;
  --c-err-500: #c8442f;

  /* Typography */
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-hero: clamp(2.6rem, 6.2vw, 5.2rem);
  --fs-h1: clamp(2.2rem, 5vw, 3.9rem);
  --fs-h2: clamp(1.75rem, 3.4vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.9vw, 1.6rem);
  --fs-h4: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;
  --lh-tight: 1.06;
  --lh-heading: 1.18;
  --lh-body: 1.68;
  --ls-display: -0.025em;
  --ls-wide: 0.14em;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;
  --gutter: clamp(20px, 4.2vw, 44px);
  --maxw: 1280px;
  --maxw-narrow: 860px;
  --section-y: clamp(56px, 8vw, 118px);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(6, 18, 31, 0.08), 0 2px 8px rgba(6, 18, 31, 0.05);
  --sh-md: 0 6px 18px rgba(6, 18, 31, 0.09), 0 2px 6px rgba(6, 18, 31, 0.05);
  --sh-lg: 0 22px 50px rgba(6, 18, 31, 0.16), 0 6px 16px rgba(6, 18, 31, 0.08);
  --sh-brand: 0 16px 34px rgba(14, 82, 145, 0.28);

  /* Motion */
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 520ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.34, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --header-h: 76px;
  --z-base: 1;
  --z-sticky: 60;
  --z-drawer: 80;
  --z-top: 90;
  --z-toast: 100;

  /* Reveal travel distance — must stay below the page gutter so transforms
     never widen the initial containing block (fixed headers would drift). */
  --slide-x: clamp(10px, 2.6vw, 30px);
  --slide-y: clamp(14px, 3vw, 34px);

  /* Lets height animate to auto (FAQ panel) without JS inline styles.
     Browsers without support still open/close correctly, just without the
     smooth height transition. */
  interpolate-size: allow-keywords;
}

/* --------------------------------------------------------------------------
   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);
}

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

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  color: var(--c-ink-900);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 800;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
}
h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
}

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

a {
  color: var(--c-brand-600);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

a:hover,
a:focus-visible {
  color: var(--c-brand-500);
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.15rem;
}

li {
  margin-bottom: var(--sp-2);
}

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

strong {
  color: var(--c-ink-900);
}

:focus-visible {
  outline: 3px solid var(--c-brand-400);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

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

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

.container--narrow {
  max-width: var(--maxw-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.62);
}

.section--surface {
  background: var(--c-surface);
}

.section--dark {
  background: var(--c-ink-900);
  color: var(--c-steel-200);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark p {
  color: var(--c-steel-200);
}

.section--dark strong {
  color: #fff;
}

.section--dark .muted {
  color: var(--c-steel-400);
}

.section--brand {
  background: linear-gradient(135deg, var(--c-brand-700), var(--c-ink-900) 78%);
  color: var(--c-steel-200);
}

.section--brand h2,
.section--brand h3 {
  color: #fff;
}

.section--brand strong {
  color: #fff;
}

.section--brand .muted {
  color: var(--c-steel-400);
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

/* Grid children must be allowed to shrink below their min-content size,
   otherwise long words or padded cards blow the track (and the page) out. */
.grid > * {
  min-width: 0;
}

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

.flex {
  display: flex;
  gap: var(--sp-4);
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--c-steel-700);
  max-width: 62ch;
}

.section--dark .lead,
.section--brand .lead {
  color: var(--c-steel-200);
}

.muted {
  color: var(--c-steel-600);
  font-size: var(--fs-sm);
}/* Spacing / alignment utilities (kept here so no inline style attributes are
   ever needed inside the HTML files). */
.grid--align-center {
  align-items: center;
}

.grid--align-start {
  align-items: start;
}

.gap-lg {
  gap: var(--sp-7);
}

.mt-6 {
  margin-top: var(--sp-6);
}

.mt-7 {
  margin-top: var(--sp-7);
}

.mb-5 {
  margin-bottom: var(--sp-5);
}

.mb-6 {
  margin-bottom: var(--sp-6);
}

.mb-0 {
  margin-bottom: 0;
}

/* Section heading block */
.section-head {
  max-width: 74ch;
  margin-bottom: var(--sp-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  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(--c-brand-600);
  margin-bottom: var(--sp-3);
}

.section--dark .eyebrow,
.section--brand .eyebrow {
  color: var(--c-brand-300);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: var(--r-pill);
  background: currentColor;
}

/* --------------------------------------------------------------------------
   4. BUTTONS / BADGES / TAGS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.86rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--c-brand-600);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-brand-500);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink-900);
  border-color: var(--c-ink-900);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--c-ink-900);
  color: #fff;
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--c-ink-900);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--c-brand-050);
  color: var(--c-ink-900);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6rem 1.15rem;
  font-size: var(--fs-sm);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.32rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--c-brand-100);
  color: var(--c-brand-700);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--accent {
  background: var(--c-accent-100);
  color: #8a5d00;
}

.badge--dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tag {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-steel-700);
  background: var(--c-paper);
}

/* --------------------------------------------------------------------------
   5. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}

.card h3 {
  margin-bottom: var(--sp-3);
}

.card p:last-child {
  margin-bottom: 0;
}

.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-brand-300);
}

.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--c-steel-200);
}

.card--dark h3 {
  color: #fff;
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--c-brand-050);
  color: var(--c-brand-600);
  margin-bottom: var(--sp-4);
  transition: transform var(--t-base) var(--ease-back),
    background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card--hover:hover .card__icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--c-brand-600);
  color: #fff;
}

.card--dark .card__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-brand-300);
}

.card--accent {
  background: linear-gradient(150deg, var(--c-brand-600), var(--c-brand-700));
  border-color: transparent;
  color: #fff;
}

.card--accent h3,
.card--accent p {
  color: #fff;
}

.card__num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: var(--ls-wide);
  color: var(--c-brand-600);
  display: block;
  margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   6. HEADER (injected by js/main.js)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-sticky);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 18, 31, 0.86);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(6, 18, 31, 0.94);
  box-shadow: 0 10px 30px rgba(6, 18, 31, 0.28);
}

.site-header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  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: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand:hover {
  color: #fff;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--c-brand-600);
  display: grid;
  place-items: center;
  color: #fff;
}

.brand__mark svg {
  width: 26px;
  height: 26px;
}

.brand__name {
  display: block;
  font-size: 0.98rem;
}

.brand__sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: #a9c8e8;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav__link {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--c-brand-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: #fff;
}

.nav__link.is-active::after {
  transform: scaleX(1);
  background: var(--c-accent-500);
}

.nav__cta {
  margin-left: var(--sp-2);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  place-items: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Scroll lock while the mobile drawer is open (class toggled by main.js). */
body.is-nav-open {
  overflow: hidden;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

.nav-toggle.is-open .icon-menu {
  display: none;
}

/* --------------------------------------------------------------------------
   7. FOOTER (injected by js/main.js)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-ink-900);
  color: var(--c-steel-400);
  padding-block: var(--sp-8) var(--sp-5);
  margin-top: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.site-footer p {
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.site-footer a {
  color: var(--c-steel-400);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
}

.footer-brand .brand {
  margin-bottom: var(--sp-4);
}

.footer-brand__desc {
  max-width: 34ch;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--c-brand-400);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-links li {
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. FORMS
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--sp-4);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-900);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  background: var(--c-paper);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--c-ink-800);
  transition: border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--c-steel-400);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-brand-500);
  box-shadow: 0 0 0 4px var(--c-brand-100);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field__error {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-err-500);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--c-err-500);
}

.field.has-error .field__error {
  display: block;
}

.checkbox {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--c-steel-700);
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--c-brand-600);
  flex: none;
}

.form__note {
  font-size: var(--fs-xs);
  color: var(--c-steel-600);
}

.form__status {
  display: none;
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form__status.is-visible {
  display: block;
}

.form__status.is-ok {
  background: #e6f6ee;
  color: #14663f;
}

.form__status.is-err {
  background: #fdecea;
  color: #8f2c1c;
}

/* --------------------------------------------------------------------------
   9. TABLES
   -------------------------------------------------------------------------- */
.table-wrap {
  margin-block: var(--sp-5);
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
}

.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table-wrap caption {
  caption-side: top;
  text-align: left;
  padding: var(--sp-4) var(--sp-4) 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-steel-600);
}

.table-wrap th,
.table-wrap td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}

.table-wrap thead th {
  background: var(--c-surface);
  color: var(--c-ink-900);
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:hover {
  background: var(--c-brand-050);
}

/* --------------------------------------------------------------------------
   10. ANIMATION UTILITIES  [复用-G]
   -------------------------------------------------------------------------- */
/* Reveal animations are opt-in via the `js` class that main.js sets on <html>.
   If the script never runs, content stays fully visible instead of blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--slide-y));
  transition: opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.fade-up {
  animation: fadeUp var(--t-slow) var(--ease-out) both;
}

.fade-in {
  animation: fadeIn var(--t-slow) var(--ease-out) both;
}

.slide-left {
  animation: slideLeft var(--t-slow) var(--ease-out) both;
}

.slide-right {
  animation: slideRight var(--t-slow) var(--ease-out) both;
}

.zoom-in {
  animation: zoomIn var(--t-slow) var(--ease-back) both;
}

.float {
  animation: floatY 5.5s ease-in-out infinite;
}

.bounce {
  animation: bounceY 2.4s ease-in-out infinite;
}

.pulse {
  animation: pulseScale 2.6s var(--ease-in-out) infinite;
}

.wiggle {
  animation: wiggle 3.6s var(--ease-in-out) infinite;
}

.spin-slow {
  animation: spin 14s linear infinite;
}

.js .stagger > * {
  opacity: 0;
  transform: translateY(var(--slide-y));
  transition: opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) 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: 80ms; }
.js .stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.js .stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.js .stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.js .stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.js .stagger.in > *:nth-child(7) { transition-delay: 480ms; }
.js .stagger.in > *:nth-child(8) { transition-delay: 560ms; }
.js .stagger.in > *:nth-child(9) { transition-delay: 640ms; }
.js .stagger.in > *:nth-child(10) { transition-delay: 720ms; }
.js .stagger.in > *:nth-child(n + 11) { transition-delay: 800ms; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(var(--slide-y)); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(var(--slide-x)); }
  to   { opacity: 1; transform: none; }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(calc(var(--slide-x) * -1)); }
  to   { opacity: 1; transform: none; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  45%      { transform: translateY(-16px); }
  55%      { transform: translateY(-16px); }
  70%      { transform: translateY(-4px); }
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(-7deg); }
  40%      { transform: rotate(6deg); }
  60%      { transform: rotate(-4deg); }
  80%      { transform: rotate(3deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@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;
  }
  .js .reveal,
  .js .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   11. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--sp-8));
  padding-bottom: var(--sp-9);
  background: var(--c-ink-900);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      104deg,
      rgba(6, 18, 31, 0.95) 0%,
      rgba(6, 18, 31, 0.86) 38%,
      rgba(6, 18, 31, 0.42) 70%,
      rgba(6, 18, 31, 0.62) 100%
    ),
    linear-gradient(to top, rgba(6, 18, 31, 0.92), transparent 55%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.055) 1px,
    transparent 1px
  );
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__content {
  max-width: 44rem;
}

.hero h1 {
  color: #fff;
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}

.hero h1 .accent {
  color: var(--c-accent-500);
}

.hero__lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 54ch;
  margin-bottom: var(--sp-6);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.hero .eyebrow {
  color: var(--c-brand-300);
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero__chip svg {
  width: 15px;
  height: 15px;
  color: var(--c-accent-500);
}

.hero__mascot {
  position: absolute;
  right: clamp(10px, 4vw, 70px);
  bottom: clamp(20px, 5vh, 70px);
  width: clamp(96px, 12vw, 170px);
  z-index: 1;
}

.hero__mascot svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45));
}

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: var(--sp-5);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.hero__scroll svg {
  width: 16px;
  height: 16px;
  animation: floatY 2.4s ease-in-out infinite;
}

/* Compact page hero (inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + var(--sp-8));
  padding-bottom: var(--sp-8);
  background: linear-gradient(120deg, var(--c-ink-900), var(--c-brand-700) 120%);
  color: #fff;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 138, 218, 0.38),
    transparent 68%
  );
  z-index: -1;
}

.page-hero h1 {
  color: #fff;
  max-width: 20ch;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--sp-4);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   12. SERVICES GRID
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-paper);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-brand-500), var(--c-accent-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-brand-300);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--c-brand-050);
  color: var(--c-brand-600);
  transition: transform var(--t-base) var(--ease-back);
}

.service-card:hover .service-card__icon {
  transform: rotate(-6deg) scale(1.06);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0;
}

.service-card p {
  color: var(--c-steel-600);
  font-size: var(--fs-sm);
  margin: 0;
}

.service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-brand-600);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base) var(--ease-out);
}

.service-card:hover .service-card__link svg {
  transform: translateX(5px);
}

.scope-note {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border-left: 4px solid var(--c-accent-500);
  background: var(--c-surface);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--c-steel-700);
}

.scope-note strong {
  display: block;
  color: var(--c-ink-900);
  margin-bottom: var(--sp-1);
}

/* --------------------------------------------------------------------------
   13. APP HIGHLIGHT
   -------------------------------------------------------------------------- */
.app {
  position: relative;
  background: linear-gradient(150deg, var(--c-ink-900) 0%, var(--c-ink-800) 45%, var(--c-brand-700) 100%);
  color: var(--c-steel-200);
  overflow: hidden;
}

/* Dark surface: headings, strong text, eyebrows and secondary copy must all
   be re-coloured — the global defaults are near-black and vanish here. */
.app h2,
.app h3,
.app h4 {
  color: #fff;
}

.app strong {
  color: #fff;
}

.app .lead {
  color: var(--c-steel-200);
}

.app .eyebrow {
  color: var(--c-brand-300);
}

.app .muted {
  color: var(--c-steel-300);
}

.app .feature-list li {
  color: var(--c-steel-200);
}

.app .feature-list + .btn-row {
  margin-top: var(--sp-6);
}

.app__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
}

.app__phone {
  position: relative;
  justify-self: center;
  width: min(320px, 78vw);
}

.app__phone img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.app__phone-glow {
  position: absolute;
  inset: 12% -18% 4%;
  background: radial-gradient(
    circle,
    rgba(59, 138, 218, 0.42),
    transparent 66%
  );
  z-index: -1;
  filter: blur(14px);
}

.app__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block: var(--sp-5);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: transform var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}

.store-badge:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.store-badge svg {
  width: 28px;
  height: 28px;
}

.store-badge__text {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.store-badge__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.feature-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin: 0;
  font-size: var(--fs-sm);
}

.feature-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  padding: 3px;
  border-radius: var(--r-xs);
  background: rgba(59, 138, 218, 0.18);
  color: var(--c-brand-300);
}

.app__shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.app__shot {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.app__shot img {
  width: 100%;
}

/* --------------------------------------------------------------------------
   14. STATS
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}

.stat {
  text-align: center;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-brand-600);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--c-steel-600);
}

/* --------------------------------------------------------------------------
   15. CULTURE / TIMELINE
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.timeline {
  position: relative;
  margin-top: var(--sp-6);
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--c-brand-400),
    var(--c-line),
    transparent
  );
}

.timeline__item {
  position: relative;
  padding-bottom: var(--sp-6);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 4px solid var(--c-brand-500);
  box-shadow: 0 0 0 4px var(--c-brand-050);
}

.timeline__year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-brand-600);
  margin-bottom: var(--sp-1);
}

.timeline__item h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-2);
}

.timeline__item p {
  color: var(--c-steel-600);
  font-size: var(--fs-sm);
  margin: 0;
}

/* --------------------------------------------------------------------------
   16. NEWS
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  background: var(--c-paper);
  color: var(--c-steel-700);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--c-brand-400);
  color: var(--c-brand-600);
}

.filter-btn.is-active {
  background: var(--c-brand-600);
  border-color: var(--c-brand-600);
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-surface-2);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.news-card:hover .news-card__media img {
  transform: scale(1.07);
}

.news-card__cat {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
}

.news-card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.news-card__date {
  font-size: var(--fs-xs);
  color: var(--c-steel-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.news-card p {
  font-size: var(--fs-sm);
  color: var(--c-steel-600);
  margin: 0;
}

.news-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-brand-600);
  padding-top: var(--sp-2);
}

.news-card__more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base) var(--ease-out);
}

.news-card:hover .news-card__more svg {
  transform: translateX(5px);
}

.news-card.is-hidden {
  display: none;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
}

.pagination__btn {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line-strong);
  background: var(--c-paper);
  color: var(--c-steel-700);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--t-fast) var(--ease-out);
}

.pagination__btn:hover {
  border-color: var(--c-brand-500);
  color: var(--c-brand-600);
}

.pagination__btn.is-active {
  background: var(--c-brand-600);
  border-color: var(--c-brand-600);
  color: #fff;
}

.pagination__btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   17. CONTACT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--sp-7);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}

.contact-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-paper);
  transition: transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}

.contact-item:hover {
  transform: translateX(6px);
  box-shadow: var(--sh-md);
  border-color: var(--c-brand-300);
}

.contact-item__icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--c-brand-050);
  color: var(--c-brand-600);
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-1);
}

.contact-item p,
.contact-item a {
  font-size: var(--fs-sm);
  margin: 0;
  color: var(--c-steel-600);
  display: block;
  word-break: break-word;
}

.map-frame {
  margin-top: var(--sp-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}

.map-frame img {
  width: 100%;
}

/* --------------------------------------------------------------------------
   18. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--c-brand-700), var(--c-ink-900));
  color: #fff;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: var(--sp-2);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   19. LEGAL DOCUMENTS
   -------------------------------------------------------------------------- */
.legal {
  max-width: var(--maxw-narrow);
  margin-inline: auto;
  color: var(--c-ink-800);
}

.legal h1 {
  margin-bottom: var(--sp-3);
}

.legal h2 {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.legal h3 {
  margin-top: var(--sp-5);
  font-size: 1.08rem;
}

.legal p {
  color: var(--c-steel-700);
}

.legal ul,
.legal ol {
  color: var(--c-steel-700);
}

.legal li {
  margin-bottom: var(--sp-2);
}

.legal strong {
  color: var(--c-ink-900);
}

.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-steel-600);
  margin-bottom: var(--sp-6);
}

.legal__meta strong {
  display: block;
  color: var(--c-ink-900);
}

.legal a {
  overflow-wrap: anywhere;
}

.legal__toc {
  margin-bottom: var(--sp-6);
}

.legal__toc ul {
  columns: 2;
  column-gap: var(--sp-5);
  list-style: none;
  padding-left: 0;
}

.legal__toc li {
  break-inside: avoid;
  margin-bottom: var(--sp-1);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   20. MASCOTS
   -------------------------------------------------------------------------- */
.mascot {
  display: inline-flex;
  width: 68px;
  height: 68px;
  vertical-align: middle;
  transition: transform var(--t-base) var(--ease-back);
}

.mascot svg {
  width: 100%;
  height: 100%;
}

.mascot--sm {
  width: 44px;
  height: 44px;
}

.mascot--lg {
  width: 118px;
  height: 118px;
}

.mascot--float {
  animation: floatY 5s ease-in-out infinite;
}

.mascot:hover {
  transform: rotate(-8deg) scale(1.08);
}

.mascot-bubble {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-800);
}

.mascot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) 0;
}

.mascot-strip .mascot {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   21. BACK TO TOP
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--c-brand-600);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out), visibility var(--t-base);
  z-index: var(--z-top);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--c-brand-500);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   22. PROCESS STEPS / FAQ
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--c-brand-400);
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: var(--sp-2);
}

.step p {
  font-size: var(--fs-sm);
  color: var(--c-steel-600);
  margin: 0;
}

.faq {
  display: grid;
  gap: var(--sp-3);
}

.faq__item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}

.faq__item:hover {
  border-color: var(--c-brand-300);
  box-shadow: var(--sh-sm);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ink-900);
  cursor: pointer;
}

.faq__q svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--c-brand-600);
  transition: transform var(--t-base) var(--ease-out);
}

.faq__item.is-open .faq__q svg {
  transform: rotate(45deg);
}

.faq__a {
  height: 0;
  overflow: hidden;
  transition: height var(--t-base) var(--ease-out);
}

/* Chrome/Edge 129+ can interpolate to height:auto, so the panel expands
   smoothly without JavaScript writing an inline max-height. */
.faq__item.is-open .faq__a {
  height: auto;
}

.faq__a p {
  padding: 0 var(--sp-5) var(--sp-5);
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-steel-600);
}

/* --------------------------------------------------------------------------
   22a. SPRITE HOST
   The fetched sprite is injected into a hidden container so every <use>
   reference resolves. Styled here (not with inline styles) to keep all
   presentation inside this single stylesheet.
   -------------------------------------------------------------------------- */
.sprite-host {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

/* The sprite root itself stays out of the layout (its symbols are only
   referenced through <use>). */
.sprite-host > svg {
  display: none;
}

/* --------------------------------------------------------------------------
   22b. LOCAL FILE:// FALLBACK
   A page opened straight from disk cannot fetch images/sprite.svg (CORS blocks
   file:// subresource requests), so every <use> reference would render empty.
   These rules keep the layout readable with CSS-only substitutes.
   -------------------------------------------------------------------------- */
.sprite-missing svg:has(use) {
  display: none;
}

.sprite-missing .feature-list li {
  position: relative;
  padding-left: 30px;
}

.sprite-missing .feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-xs);
  background: rgba(59, 138, 218, 0.18);
  color: var(--c-brand-300);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.sprite-missing .nav-toggle .icon-menu::after {
  content: "\2630";
  font-size: 20px;
  line-height: 1;
}

.sprite-missing .nav-toggle .icon-close::after {
  content: "\2715";
  font-size: 18px;
  line-height: 1;
}

.sprite-missing .to-top::after {
  content: "\2191";
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   23. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .app__grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .news-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__mascot {
    width: clamp(84px, 14vw, 120px);
    right: 14px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 66px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: rgba(6, 18, 31, 0.985);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(6, 18, 31, 0.4);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-base) var(--ease-out),
      opacity var(--t-base) var(--ease-out), visibility var(--t-base);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 1.05rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin: var(--sp-4) 0 0;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + var(--sp-7));
    padding-bottom: var(--sp-8);
  }

  .hero__mascot {
    position: static;
    margin-top: var(--sp-5);
    width: 108px;
  }

  .hero__scroll {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .news-grid,
  .values-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .legal__toc ul {
    columns: 1;
  }

  .app__shots {
    grid-template-columns: 1fr;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    width: 100%;
  }

  .filter-bar {
    gap: var(--sp-1);
  }

  .filter-btn {
    padding: 0.45rem 0.9rem;
    font-size: var(--fs-xs);
  }

  .card,
  .service-card,
  .step {
    padding: var(--sp-5);
  }
}

/* --------------------------------------------------------------------------
   24. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .to-top,
  .hero__mascot,
  .mascot-strip {
    display: none !important;
  }
  body {
    color: #000;
  }
  .legal h2 {
    page-break-after: avoid;
  }
}
