/* ==========================================================================
   MiniCity (Hongkong) Co., Limited — Global Corporate Site
   Single stylesheet for the entire site  [Reuse-A]
   Design system: bold automotive energy — deep blue, amber accent,
   carbon surfaces, angular geometry, motion-rich, playful-professional.
   No external presets, no frameworks, no third-party assets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep automotive blue ramp */
  --brand-950: #03091a;
  --brand-900: #07152e;
  --brand-800: #0b2149;
  --brand-700: #102f6e;
  --brand-600: #1640a0;
  --brand-500: #1e56c4;
  --brand-400: #3c79e8;
  --brand-300: #7fa8f4;
  --brand-200: #b9cff9;
  --brand-100: #e2ebfc;
  --brand-050: #f3f7fe;

  /* Accent — amber / racing gold */
  --gold-700: #8a5a05;
  --gold-600: #b87708;
  --gold-500: #e3960a;
  --gold-400: #f5b324;
  --gold-300: #ffc94d;
  --gold-200: #ffe08f;
  --gold-100: #fff0cc;
  --gold-050: #fff8e6;

  /* Neutrals — carbon / graphite */
  --ink-900: #070a12;
  --ink-800: #111725;
  --ink-700: #1e2637;
  --ink-600: #3a4459;
  --ink-500: #5c6780;
  --ink-400: #8a94a8;
  --ink-300: #b9c1cf;
  --ink-200: #dce1ea;
  --ink-100: #edf0f5;
  --paper: #ffffff;
  --paper-alt: #f6f8fb;

  /* Semantic */
  --bg-body: var(--paper);
  --bg-soft: var(--paper-alt);
  --bg-deep: var(--brand-950);
  --text-strong: var(--ink-900);
  --text-body: var(--ink-600);
  --text-muted: var(--ink-500);
  --text-invert: #f2f6ff;
  --text-invert-muted: #a9bbdb;
  --line: var(--ink-200);
  --line-soft: var(--ink-100);
  --line-invert: rgba(255, 255, 255, 0.14);

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

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(7, 10, 18, 0.06), 0 1px 3px rgba(7, 10, 18, 0.05);
  --sh-2: 0 4px 12px rgba(7, 10, 18, 0.07), 0 2px 4px rgba(7, 10, 18, 0.04);
  --sh-3: 0 12px 28px rgba(7, 10, 18, 0.1), 0 4px 10px rgba(7, 10, 18, 0.05);
  --sh-4: 0 24px 60px rgba(7, 10, 18, 0.16), 0 8px 20px rgba(7, 10, 18, 0.08);
  --sh-brand: 0 14px 34px rgba(22, 64, 160, 0.28);
  --sh-gold: 0 14px 34px rgba(227, 150, 10, 0.3);

  /* Motion */
  --t-fast: 160ms;
  --t-mid: 320ms;
  --t-slow: 560ms;
  --t-slower: 900ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.42, 0.64, 1);

  /* Layout */
  --container: 1200px;
  --container-wide: 1380px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;

  /* Z-index */
  --z-base: 1;
  --z-sticky: 50;
  --z-header: 100;
  --z-top: 120;
  --z-menu: 200;
  --z-toast: 400;
}

/* --------------------------------------------------------------------------
   2. RESET + BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg-body);
  color: var(--text-body);
  font-family: "Segoe UI", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img { height: auto; }

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

button { background: none; border: 0; cursor: pointer; }

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

ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-strong);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

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

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.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: clamp(3.5rem, 8vw, 7rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-tint { background: var(--bg-soft); }
.section-deep {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(30, 86, 196, 0.34) 0%, transparent 55%),
    linear-gradient(165deg, var(--brand-900) 0%, var(--brand-950) 100%);
  color: var(--text-invert);
}
.section-deep h1,
.section-deep h2,
.section-deep h3,
.section-deep h4 { color: #fff; }
.section-deep p { color: var(--text-invert-muted); }

.section-head { max-width: 720px; 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);
  margin-bottom: var(--sp-3);
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold-500), var(--brand-500));
}
.section-head.center .eyebrow { justify-content: center; }

.section-title { font-size: clamp(1.85rem, 4.2vw, 3rem); }
.section-sub { margin-top: var(--sp-4); font-size: 1.06rem; }

.lead { font-size: 1.12rem; color: var(--text-muted); }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Grid utilities */
.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)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.stack > * + * { margin-top: var(--sp-4); }

/* --------------------------------------------------------------------------
   4. BUTTONS, BADGES, TAGS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.82rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-mid) var(--ease-spring),
    box-shadow var(--t-mid) var(--ease-out),
    background-color var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    color var(--t-mid) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 40px rgba(22, 64, 160, 0.38); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--brand-950);
  box-shadow: var(--sh-gold);
}
.btn-gold:hover { color: var(--brand-950); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-strong);
}
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-050); }

.btn-invert {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-invert);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-invert:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-gold { background: var(--gold-050); color: var(--gold-700); }
.badge-dark { background: rgba(255, 255, 255, 0.1); color: #dce6fb; }
.badge-dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.2s var(--ease-in-out) infinite;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--ink-100);
  color: var(--ink-600);
  font-size: 0.78rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. CARDS + MEDIA
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out);
}
.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: var(--brand-200);
}
.card:hover::after { transform: scaleX(1); }

.card-link { color: inherit; }
.card-link:hover { color: inherit; }

.card-title { font-size: 1.2rem; margin-bottom: var(--sp-2); }
.card-text { color: var(--text-muted); font-size: 0.95rem; }
.card-foot { margin-top: auto; padding-top: var(--sp-4); }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: #fff;
  box-shadow: var(--sh-brand);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-300)); color: var(--brand-950); box-shadow: var(--sh-gold); }

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 55%, var(--gold-500) 130%);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.07) 0 2px,
    transparent 2px 22px
  );
}
.media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slower) var(--ease-out);
}
.media img.is-broken { opacity: 0; }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-4x3 { aspect-ratio: 4 / 3; }
.media-1x1 { aspect-ratio: 1 / 1; }
.media-3x4 { aspect-ratio: 3 / 4; }
.card:hover .media img { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   6. SITE HEADER  [Reuse-C styling]
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow var(--t-mid) var(--ease-out),
    background-color var(--t-mid) var(--ease-out);
}
.site-header.is-stuck {
  box-shadow: var(--sh-2);
  background: rgba(255, 255, 255, 0.97);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-strong);
}
.brand:hover { color: var(--text-strong); }
.brand-mark {
  width: 38px; height: 38px;
  color: var(--brand-600);
  transition: transform var(--t-mid) var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text strong {
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand-text span {
  margin-top: 3px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  color: var(--ink-600);
  font-size: 0.93rem;
  font-weight: 700;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav a:hover { color: var(--brand-600); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--brand-700); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

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

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(90% 120% at 88% 8%, rgba(30, 86, 196, 0.42) 0%, transparent 58%),
    radial-gradient(70% 90% at 6% 96%, rgba(227, 150, 10, 0.22) 0%, transparent 60%),
    linear-gradient(158deg, var(--brand-900) 0%, var(--brand-950) 78%);
  color: var(--text-invert);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.045) 0 3px,
    transparent 3px 26px
  );
}
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -38%;
  z-index: -1;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.022),
    0 0 0 130px rgba(255, 255, 255, 0.014);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500) 60%, var(--brand-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: var(--sp-5);
  max-width: 560px;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--text-invert-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero-note {
  margin-top: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.88rem;
  color: var(--text-invert-muted);
}
.hero-note svg { width: 20px; height: 20px; color: var(--gold-400); flex: none; }

.hero-media { position: relative; }
.hero-media .media {
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--sh-4);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero-stat {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line-invert);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-stat span {
  font-size: 0.78rem;
  color: var(--text-invert-muted);
  letter-spacing: 0.04em;
}

/* Floating mascots */
.hero-mascot {
  position: absolute;
  width: 76px;
  color: var(--gold-300);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.4));
  animation: float 6s var(--ease-in-out) infinite;
  z-index: var(--z-sticky);
}
.hero-mascot.m1 { top: -22px; right: 12%; }
.hero-mascot.m2 { bottom: -18px; left: -14px; width: 58px; animation-delay: -2.4s; color: var(--brand-300); }
.hero-mascot.m3 { top: 44%; right: -22px; width: 46px; animation-delay: -4s; color: var(--gold-200); }

/* Ticker */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--brand-950);
  padding-block: var(--sp-3);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: var(--sp-7);
  animation: marquee 34s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-invert-muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-item::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--gold-500);
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(90% 140% at 82% 0%, rgba(30, 86, 196, 0.38) 0%, transparent 60%),
    linear-gradient(150deg, var(--brand-900) 0%, var(--brand-950) 80%);
  color: var(--text-invert);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.05) 0 3px,
    transparent 3px 26px
  );
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.page-hero p { margin-top: var(--sp-4); max-width: 620px; color: var(--text-invert-muted); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.breadcrumb span { color: rgba(255, 255, 255, 0.42); }

/* --------------------------------------------------------------------------
   8. APP HIGHLIGHT / PHONE MODEL
   -------------------------------------------------------------------------- */
.app-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.app-shots { display: flex; gap: var(--sp-4); align-items: flex-start; }
.phone-frame {
  position: relative;
  flex: 1 1 0;
  max-width: 230px;
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2b3550 0%, #10151f 55%, #232c42 100%);
  box-shadow: var(--sh-4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  width: 74px; height: 6px;
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.55);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(30, 86, 196, 0.55), transparent 70%),
    linear-gradient(180deg, var(--brand-900), var(--brand-950));
  display: flex;
  flex-direction: column;
}
.phone-screen .media { border-radius: 0; height: 100%; }
.phone-screen .media::before { display: none; }
.phone-dock {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-3);
  display: flex;
  justify-content: space-around;
  background: rgba(3, 9, 26, 0.72);
  backdrop-filter: blur(6px);
}
.phone-dock i {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}
.phone-dock i:first-child { background: var(--gold-500); }
.phone-frame.tilt { transform: rotate(-4deg) translateY(10px); }
.phone-frame.tilt2 { transform: rotate(5deg) translateY(-8px); }

.store-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--ink-900);
  color: #fff;
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-out);
}
.store-badge:hover { transform: translateY(-3px); color: #fff; box-shadow: var(--sh-3); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.store-badge strong { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; }

.feature-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out);
}
.feature-item:hover { transform: translateX(6px); border-color: var(--brand-300); }
.feature-item .icon-badge { width: 38px; height: 38px; margin: 0; border-radius: var(--r-sm); }
.feature-item .icon-badge svg { width: 19px; height: 19px; }
.feature-item strong { display: block; color: var(--text-strong); font-size: 0.98rem; }
.feature-item span { font-size: 0.88rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   9. STATS
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}
.stat {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-1);
  text-align: center;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.stat-num {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-600), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: var(--sp-3);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. TIMELINE
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: var(--sp-5); }
.timeline::before {
  content: "";
  position: absolute;
  left: 23px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--gold-500), transparent);
}
.timeline-item { position: relative; display: flex; gap: var(--sp-5); }
.timeline-dot {
  position: relative;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 2px solid var(--brand-400);
  color: var(--brand-600);
  font-weight: 900;
  font-size: 0.88rem;
  box-shadow: var(--sh-2);
  z-index: var(--z-base);
}
.timeline-body {
  flex: 1;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.timeline-body:hover { transform: translateX(8px); box-shadow: var(--sh-3); }
.timeline-year {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.timeline-title { font-size: 1.12rem; margin: var(--sp-2) 0; }
.timeline-text { color: var(--text-muted); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   11. NEWS + FILTERS + PAGINATION
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.filter-btn {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-600);
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-mid) var(--ease-out);
}
.filter-btn:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
.filter-btn.is-active {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.news-card .media { border-radius: 0; }
.news-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.news-meta .cat { color: var(--brand-600); }
.news-card h3 { font-size: 1.12rem; margin-bottom: var(--sp-2); }
.news-card p { font-size: 0.92rem; color: var(--text-muted); }
.news-more {
  margin-top: auto;
  padding-top: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--brand-600);
}
.news-more svg { width: 16px; height: 16px; transition: transform var(--t-mid) var(--ease-out); }
.news-card:hover .news-more svg { transform: translateX(5px); }
.news-card[hidden] { display: none; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
}
.page-btn {
  min-width: 42px;
  height: 42px;
  padding-inline: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-600);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-mid) var(--ease-out);
}
.page-btn:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
.page-btn.is-active {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------------------
   12. STEPS + FAQ
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.step-num {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--brand-950);
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: var(--sh-gold);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step-title { font-size: 1.08rem; margin-bottom: var(--sp-2); }
.step-text { font-size: 0.92rem; color: var(--text-muted); }

.faq { display: grid; gap: var(--sp-3); }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.faq-item:hover { border-color: var(--brand-200); box-shadow: var(--sh-2); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  color: var(--text-strong);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--brand-500); transition: transform var(--t-mid) var(--ease-out); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease-out);
}
.faq-item.is-open .faq-a { max-height: 340px; }
.faq-a > div { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-muted); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   13. CONTACT + FORMS
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-list { display: grid; gap: var(--sp-4); }
.contact-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.contact-card .icon-badge { width: 46px; height: 46px; margin: 0; border-radius: var(--r-sm); }
.contact-card .icon-badge svg { width: 22px; height: 22px; }
.contact-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-value {
  display: block;
  margin-top: var(--sp-1);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.98rem;
  word-break: break-word;
}
a.contact-value:hover { color: var(--brand-600); }

.form-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-3);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-strong);
}
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper-alt);
  color: var(--text-strong);
  font-size: 0.95rem;
  transition: border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}
.form-input::placeholder { color: var(--ink-400); }
.form-input:focus {
  outline: none;
  border-color: var(--brand-500);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--brand-100);
}
textarea.form-input { min-height: 140px; resize: vertical; }
.form-input.has-error { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }
.form-error {
  display: none;
  margin-top: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: #d64545;
}
.form-group.has-error .form-error { display: block; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.form-check input {
  width: 18px; height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--brand-600);
}
.form-check a { font-weight: 700; text-decoration: underline; }

.form-status {
  display: none;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 700;
}
.form-status.is-ok {
  display: block;
  background: #e8f6ee;
  color: #1d6b3f;
  border: 1px solid #b6e2c8;
}
.form-status.is-error {
  display: block;
  background: #fdecec;
  color: #a32a2a;
  border: 1px solid #f4c7c7;
}

.map-frame {
  position: relative;
  margin-top: var(--sp-7);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-2);
}
.map-frame .media { border-radius: 0; aspect-ratio: 21 / 9; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  color: var(--gold-500);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  animation: float 4s var(--ease-in-out) infinite;
}
.map-pin svg { width: 46px; height: 46px; }

/* --------------------------------------------------------------------------
   14. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 120% at 88% 10%, rgba(227, 150, 10, 0.3) 0%, transparent 58%),
    linear-gradient(135deg, var(--brand-700), var(--brand-950));
  color: var(--text-invert);
  box-shadow: var(--sh-4);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { color: var(--text-invert-muted); max-width: 560px; }
.cta-inner {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.cta-mascot {
  position: absolute;
  right: 3%;
  bottom: -12%;
  width: 130px;
  color: rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   15. TEAM / CULTURE CARDS
   -------------------------------------------------------------------------- */
.value-card { text-align: left; }
.value-num {
  display: inline-block;
  margin-bottom: var(--sp-4);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--gold-600);
}
.team-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.mascot-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: flex-end;
}
.mascot-note {
  flex: 1 1 100%;
  margin-top: var(--sp-2);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.crew-list { display: grid; gap: var(--sp-3); }
.crew-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line-soft);
}
.crew-item .mascot { width: 42px; height: 42px; color: var(--brand-500); }
.crew-item strong { display: block; color: var(--text-strong); font-size: 0.96rem; }
.crew-item span { font-size: 0.85rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   16. MASCOTS
   -------------------------------------------------------------------------- */
.mascot { width: 64px; height: 64px; color: var(--brand-500); }
.mascot,
.hero-mascot { display: block; }
.mascot > svg,
.hero-mascot > svg { display: block; width: 100%; height: auto; }
.mascot-sm { width: 40px; height: 40px; }
.mascot-md { width: 64px; height: 64px; }
.mascot-lg { width: 96px; height: 96px; }
.mascot-xl { width: 140px; height: 140px; }
.mascot-float { animation: float 6s var(--ease-in-out) infinite; }
.mascot-hover { transition: transform var(--t-mid) var(--ease-spring); }
.mascot-hover:hover { transform: translateY(-8px) rotate(-6deg) scale(1.06); }
.mascot-gold { color: var(--gold-500); }
.mascot-brand { color: var(--brand-500); }

/* --------------------------------------------------------------------------
   17. FOOTER  [Reuse-D styling]
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-950);
  color: var(--text-invert-muted);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: var(--sp-7);
}
.footer-brand .brand-text strong { color: #fff; }
.footer-about {
  margin-top: var(--sp-4);
  max-width: 380px;
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer-col h4 {
  margin-bottom: var(--sp-4);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: var(--sp-2); }
.footer-col a { color: var(--text-invert-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-col p { font-size: 0.92rem; }
.footer-legal {
  border-top: 1px solid var(--line-invert);
  padding-block: var(--sp-5);
}
.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 0.85rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-links a { color: var(--text-invert-muted); font-weight: 700; }
.footer-links a:hover { color: var(--gold-300); }

/* --------------------------------------------------------------------------
   18. BACK TO TOP
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: var(--z-top);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t-mid) var(--ease-out),
    transform var(--t-mid) var(--ease-out),
    visibility var(--t-mid);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-500); color: #fff; transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   19. ANIMATION UTILITIES  [Reuse-G]
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translate3d(-40px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translate3d(40px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.86); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-7deg); }
  75% { transform: rotate(7deg); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}

/* Reveal system */
.reveal {
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

.fade-up { transform: translate3d(0, 28px, 0); }
.fade-in { transform: none; }
.slide-left { transform: translate3d(-40px, 0, 0); }
.slide-right { transform: translate3d(40px, 0, 0); }
.zoom-in { transform: scale(0.88); }

.reveal.in.fade-up,
.reveal.in.slide-left,
.reveal.in.slide-right,
.reveal.in.zoom-in { transform: none; }

/* Infinite utility animations */
.float { animation: float 6s var(--ease-in-out) infinite; }
.bounce { animation: bounce 3.4s var(--ease-in-out) infinite; }
.pulse { animation: pulse 2.2s var(--ease-in-out) infinite; }
.wiggle { animation: wiggle 3.6s var(--ease-in-out) infinite; }
.spin-slow { animation: spinSlow 14s linear infinite; }
.pop-in { animation: popIn 0.6s var(--ease-spring) both; }

/* Stagger — children reveal in sequence */
.stagger > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.54s; }
.stagger.in > *:nth-child(9) { transition-delay: 0.61s; }
.stagger.in > *:nth-child(10) { transition-delay: 0.68s; }
.stagger.in > *:nth-child(11) { transition-delay: 0.75s; }
.stagger.in > *:nth-child(12) { transition-delay: 0.82s; }

/* --------------------------------------------------------------------------
   20. LEGAL DOCUMENT TYPOGRAPHY  [Reuse-I]
   -------------------------------------------------------------------------- */
.legal { max-width: 880px; margin-inline: auto; }
.legal h2 {
  margin: var(--sp-7) 0 var(--sp-4);
  padding-left: var(--sp-4);
  border-left: 4px solid var(--gold-500);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  margin: var(--sp-6) 0 var(--sp-3);
  color: var(--brand-700);
  font-size: 1.08rem;
}
.legal p { color: var(--text-body); }
.legal ul, .legal ol {
  margin: 0 0 var(--sp-4);
  padding-left: var(--sp-5);
  color: var(--text-body);
}
.legal ul li { position: relative; margin-bottom: var(--sp-2); padding-left: var(--sp-3); }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--brand-500);
}
.legal ol { list-style: decimal; }
.legal ol li { margin-bottom: var(--sp-2); padding-left: var(--sp-2); }
.legal strong { color: var(--text-strong); }
.legal a { font-weight: 700; text-decoration: underline; }
.legal-table-wrap { overflow-x: auto; margin-bottom: var(--sp-5); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--paper);
  box-shadow: var(--sh-1);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.legal caption {
  padding-bottom: var(--sp-3);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
}
.legal thead th {
  padding: var(--sp-3) var(--sp-4);
  background: var(--brand-700);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}
.legal tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.legal tbody tr:nth-child(even) { background: var(--paper-alt); }
.legal tbody tr:last-child td { border-bottom: 0; }
.legal-note {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--brand-400);
  border-radius: var(--r-sm);
  background: var(--brand-050);
  color: var(--ink-700);
  font-size: 0.94rem;
}
.legal-update {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--gold-050);
  border: 1px solid var(--gold-200);
  color: var(--gold-700);
  font-size: 0.86rem;
  font-weight: 800;
}
.legal-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-2) var(--sp-5);
  margin-bottom: var(--sp-7);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--paper-alt);
  border: 1px solid var(--line-soft);
}
.legal-toc a {
  display: block;
  padding: var(--sp-2) 0;
  color: var(--ink-700);
  font-size: 0.9rem;
  font-weight: 700;
}
.legal-toc a:hover { color: var(--brand-600); }

/* --------------------------------------------------------------------------
   21. UTILITY LAYER
   Replaces every inline style attribute across the site — per [Reuse-A] no
   HTML file may carry a style attribute. Declared last so utilities always
   win over component rules of equal specificity.
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--sp-3); }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: var(--sp-6); }
.mt-4 { margin-top: var(--sp-7); }
.mb-2 { margin-bottom: 1.25rem; }
.mb-3 { margin-bottom: var(--sp-6); }
.m-0 { margin: 0; }
.mx-auto { margin-inline: auto; }
.justify-center { justify-content: center; }
.max-900 { max-width: 900px; }
.max-none { max-width: none; }
.text-muted { color: var(--text-muted); }
.text-invert { color: var(--text-invert-muted); }
.text-invert-strong { color: #fff; }
.link-gold { color: var(--gold-300); }
.link-gold:hover { color: var(--gold-200); }
.title-md { font-size: clamp(1.5rem, 3vw, 2rem); }
.icon-inline { width: 16px; height: 16px; flex: none; }
.list-disc { padding-left: 1rem; list-style: disc; }
.list-disc > li { margin-bottom: var(--sp-2); }
.list-disc > li:last-child { margin-bottom: 0; }
.card-invert {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.sprite-host { display: none; }
.hero-copy { min-width: 0; }

/* --------------------------------------------------------------------------
   22. SPRITE FALLBACK
   When images/sprite.svg cannot be fetched (browsers block cross-file
   fetch() on file:// URLs), the document is flagged with .sprite-missing.
   Instead of leaving invisible holes, render geometric stand-ins so the
   layout still reads correctly. This never applies when served over HTTP.
   -------------------------------------------------------------------------- */
.sprite-missing svg { display: none; }

.sprite-missing .icon-badge::after {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
}

.sprite-missing .mascot::after,
.sprite-missing .hero-mascot::after,
.sprite-missing .cta-mascot::after {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
}

.sprite-missing .brand::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
}

.sprite-missing .map-pin::after {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: currentColor;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   23. RESPONSIVE — 1024 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; max-width: 620px; }
  .app-highlight { grid-template-columns: minmax(0, 1fr); }
  .app-shots { justify-content: center; }
  .team-band { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: var(--z-menu);
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-1);
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-mid) var(--ease-out),
      opacity var(--t-mid) var(--ease-out),
      visibility var(--t-mid);
  }
  .site-header.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a { padding: var(--sp-3); font-size: 1rem; border-radius: var(--r-sm); }
  .nav a::after { left: var(--sp-3); right: auto; width: 20px; bottom: 8px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
  .hero-stat { padding: var(--sp-3); }
  .hero-stat strong { font-size: 1.2rem; }
  .hero-mascot { width: 56px; }
  .hero-mascot.m3 { display: none; }
  .cta-mascot { display: none; }
  .phone-frame { max-width: 190px; }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-auto { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline { gap: var(--sp-4); }
  .timeline-item { flex-direction: column; gap: var(--sp-3); }
  .timeline::before { left: 23px; }
  .card { padding: var(--sp-5); }
  .legal h2 { padding-left: var(--sp-3); }
}

/* --------------------------------------------------------------------------
   24. MOTION / PRINT GUARDS
   -------------------------------------------------------------------------- */
@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,
  .stagger > * { opacity: 1 !important; transform: none !important; }
  .hero-mascot,
  .map-pin,
  .mascot-float,
  .float,
  .bounce,
  .pulse,
  .wiggle,
  .spin-slow { animation: none !important; }
}

@media print {
  .site-header,
  .site-footer,
  .to-top,
  .hero-mascot,
  .ticker { display: none !important; }
  body { color: #000; background: #fff; }
  .legal h2 { break-after: avoid; }
  .legal table { box-shadow: none; }
}
