/* ==========================================================================
   HK FENTRIX — ronghengce.com
   Ford-automotive-inspired design system with cute-mascot accents
   ========================================================================== */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  /* Color */
  --ink-900: #0E1116;
  --ink-800: #14181F;
  --ink-700: #1A1F26;
  --ink-500: #3A4250;
  --ink-400: #5A6372;
  --ink-300: #7A8290;
  --ink-200: #B8C0CC;
  --paper:   #F5F5F7;
  --paper-soft: #FFFFFF;
  --paper-deep: #E8EAEE;
  --silver-1: #C8CDD5;
  --silver-2: #E5E8EE;
  --accent-blue: #003478;
  --accent-blue-deep: #001E4D;
  --accent-blue-light: #0A6BC8;
  --accent-red: #C8102E;
  --accent-red-deep: #8B0B1F;
  --accent-gold: #D4AF37;
  --accent-coral: #FF7A6B;
  --accent-mint: #7DD3C0;
  --accent-sun: #F2B544;
  --accent-lavender: #B7A6FF;
  --accent-pink: #FF8FB1;

  /* Type */
  --ff-display: 'Inter Tight','Helvetica Neue',Arial,sans-serif;
  --ff-body: 'Inter','Helvetica Neue',Arial,sans-serif;
  --ff-mono: 'JetBrains Mono','Menlo',monospace;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(14,17,22,.06);
  --sh-2: 0 8px 24px rgba(14,17,22,.10);
  --sh-3: 0 24px 48px rgba(14,17,22,.16);
  --sh-glow-blue: 0 0 24px rgba(0,52,120,.32);
  --sh-glow-red: 0 0 24px rgba(200,16,46,.32);

  /* Motion */
  --t-fast: 120ms;
  --t-base: 240ms;
  --t-slow: 480ms;
  --t-cinema: 800ms;
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-glide: cubic-bezier(.65,.05,.36,1);

  /* Layout */
  --container: 1280px;
  --header-h: 72px;
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); letter-spacing: -.01em; line-height: 1.1; font-weight: 800; }
p { margin: 0; }
hr { border: 0; height: 1px; background: var(--silver-2); margin: var(--s-7) 0; }

/* ----- Typography ------------------------------------------------------- */
.display-1 {
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
}
.display-2 {
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.05;
}
.h-3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; }
.h-4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.lead { font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-500); line-height: 1.55; }
.mono { font-family: var(--ff-mono); font-size: 13px; letter-spacing: .04em; }
.text-gradient {
  background: linear-gradient(120deg, var(--accent-blue) 0%, var(--accent-blue-light) 45%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Container -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.section {
  padding: clamp(var(--s-7), 8vw, var(--s-10)) 0;
  position: relative;
}
.section--dark { background: var(--ink-900); color: var(--paper); }
.section--ink  { background: var(--ink-800); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--ink-900); }
.section--soft { background: var(--paper-deep); color: var(--ink-900); }

/* ----- Scroll progress -------------------------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
  transition: transform var(--t-fast) linear;
}

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 50;
  background: rgba(14,17,22,.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--t-base) var(--ease-out), border-color var(--t-base);
}
.site-header.is-scrolled {
  background: rgba(245,245,247,.85);
  border-bottom-color: rgba(14,17,22,.06);
}
.site-header.is-scrolled .nav__link,
.site-header.is-scrolled .nav__cta,
.site-header.is-scrolled .nav__brand-text { color: var(--ink-900); }
.site-header.is-scrolled .nav__brand-text--sub { color: var(--ink-300); }
.site-header .nav__container { color: var(--paper); }
.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.nav__brand { display: flex; align-items: center; gap: var(--s-3); }
.nav__brand-mark { width: 36px; height: 36px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-text strong { font-family: var(--ff-display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.nav__brand-text--sub { font-size: 10px; letter-spacing: .2em; color: var(--ink-200); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: opacity var(--t-fast);
}
.nav__link:hover { opacity: .7; }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  inset: auto 0 -10px 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--accent-red);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-base);
  box-shadow: var(--sh-glow-red);
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--ink-900);
  color: var(--paper);
  padding: var(--s-7) var(--s-5);
  transform: translateY(-100%);
  transition: transform var(--t-slow) var(--ease-out);
  z-index: 40;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s-5); }
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--paper);
}
.mobile-menu a:hover { color: var(--accent-coral); }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-base), background var(--t-fast);
  position: relative;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--ink-900);
  color: var(--paper);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn--accent {
  background: var(--accent-red);
  color: var(--paper);
  box-shadow: var(--sh-glow-red);
}
.btn--accent:hover { transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn--ghost:hover { background: currentColor; color: var(--ink-900); }

/* Magnetic CTA (JS enhances) */
.magnetic {
  will-change: transform;
  transition: transform var(--t-fast) var(--ease-out);
}

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero--short { min-height: 70vh; }
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.04);
  filter: saturate(1.05);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 60% at 30% 40%, rgba(0,0,0,0) 0%, rgba(14,17,22,.65) 70%),
    linear-gradient(180deg, rgba(14,17,22,.20) 0%, rgba(14,17,22,.85) 100%);
}
.hero__content { position: relative; max-width: 980px; }
.hero__eyebrow { color: var(--accent-coral); margin-bottom: var(--s-5); }
.hero__title { font-size: clamp(40px, 7vw, 96px); margin-bottom: var(--s-5); }
.hero__sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: rgba(245,245,247,.85);
  max-width: 640px;
  margin-bottom: var(--s-6);
}
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__mascot {
  position: absolute;
  bottom: 4%;
  right: 4%;
  width: clamp(120px, 14vw, 220px);
  animation: float-y 6s ease-in-out infinite alternate, mascot-bounce 9s ease-in-out infinite;
  filter: drop-shadow(0 24px 32px rgba(0,0,0,.4));
}

/* ----- Marquee ---------------------------------------------------------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--silver-2);
  border-bottom: 1px solid var(--silver-2);
  padding: var(--s-5) 0;
  background: var(--paper-soft);
}
.section--dark .marquee,
.section--ink .marquee {
  background: transparent;
  border-color: rgba(255,255,255,.08);
}
.marquee__track {
  display: inline-flex;
  gap: var(--s-7);
  animation: marquee-x 40s linear infinite;
  will-change: transform;
}
.marquee__item {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}
.marquee__item::after {
  content: '✦';
  color: var(--accent-red);
  font-size: .7em;
}

/* ----- Stats ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding: var(--s-7) 0;
}
.stat {
  text-align: left;
  padding: var(--s-5);
  border-left: 1px solid var(--silver-2);
}
.stat__num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -.02em;
  color: currentColor;
}
.stat__label {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-top: 6px;
}
.section--dark .stat__label,
.section--ink .stat__label { color: rgba(245,245,247,.55); }

/* ----- Service highlight strip ----------------------------------------- */
.highlight__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.card {
  position: relative;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--paper-soft);
  border: 1px solid var(--silver-2);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.section--dark .card,
.section--ink .card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
  color: var(--paper);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  box-shadow: var(--sh-glow-blue);
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-family: var(--ff-display); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.card__desc { font-size: 14px; color: var(--ink-500); line-height: 1.55; }
.section--dark .card__desc,
.section--ink .card__desc { color: rgba(245,245,247,.65); }
.card__mascot {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 80px;
  opacity: .85;
  pointer-events: none;
  animation: mascot-bounce 6s ease-in-out infinite;
}

/* ----- Service page sections -------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  margin-bottom: var(--s-9);
}
.service-row:nth-child(even) .service-row__media { order: -1; }
.service-row__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  aspect-ratio: 4/3;
}
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }
.service-row__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(0,52,120,.25) 0%, rgba(200,16,46,.15) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.service-row__media-mascot {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 110px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.45));
  animation: float-y 5s ease-in-out infinite alternate;
  z-index: 2;
}
.service-row__body h3 { margin-bottom: var(--s-4); }
.service-row__body p { color: var(--ink-500); margin-bottom: var(--s-4); }
.service-row__body ul {
  display: grid;
  gap: var(--s-3);
}
.service-row__body li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: 15px;
}
.service-row__body li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-blue);
}
.service-row__body li strong { display: block; font-weight: 700; color: var(--ink-900); margin-bottom: 2px; }
.service-row__body li span { color: var(--ink-500); }

/* ----- App showcase ---------------------------------------------------- */
.app-showcase {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--accent-blue-deep) 100%);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(var(--s-6), 5vw, var(--s-9));
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-8);
  align-items: center;
  overflow: hidden;
  position: relative;
}
.app-showcase::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 60%;
  background: conic-gradient(from 0deg, var(--accent-red), var(--accent-gold), var(--accent-blue-light), var(--accent-red));
  filter: blur(80px);
  opacity: .35;
  animation: holo-sweep 12s linear infinite;
}
.app-showcase h2 { margin-bottom: var(--s-4); }
.app-showcase p { color: rgba(245,245,247,.85); margin-bottom: var(--s-5); }
.app-showcase__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.app-showcase__feature {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  font-size: 14px;
}
.app-showcase__feature svg { width: 18px; height: 18px; color: var(--accent-mint); }
.app-showcase__badges { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 13px;
  transition: transform var(--t-fast) var(--ease-spring);
}
.app-badge:hover { transform: translateY(-2px); }
.app-badge svg { width: 22px; height: 22px; }
.app-badge strong { display: block; font-weight: 700; }
.app-badge span { display: block; font-size: 11px; opacity: .7; }
.app-showcase__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.app-showcase__visual img { width: 100%; height: 100%; object-fit: cover; }
.app-showcase__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,52,120,.55) 100%);
}

/* ----- News ------------------------------------------------------------ */
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.news-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--silver-2);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.news-card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-deep);
}
.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.05); }
.news-card__body { padding: var(--s-5); }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 12px;
  color: var(--ink-300);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.news-card__category {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-blue);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}
.news-card__title { font-size: 18px; font-weight: 700; margin-bottom: var(--s-2); line-height: 1.3; }
.news-card__excerpt { font-size: 14px; color: var(--ink-500); }
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-3);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
}
.news-card__more svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* News filter chips (decorative) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--paper-soft);
  border: 1px solid var(--silver-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.chip:hover, .chip.is-active { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }

/* ----- Contact form ----------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: start;
}
.contact__list { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.contact__item {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}
.contact__item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-blue);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__item-icon svg { width: 22px; height: 22px; }
.contact__item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-300); }
.contact__item p { color: var(--ink-500); font-size: 15px; }
.contact__item a { color: var(--accent-blue); border-bottom: 1px solid currentColor; }
.form {
  background: var(--paper-soft);
  border: 1px solid var(--silver-2);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--silver-2);
  background: var(--paper-soft);
  color: var(--ink-900);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(0,52,120,.12);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(245,245,247,.75);
  padding: var(--s-9) 0 var(--s-5);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: auto -10% -50% -10%;
  height: 60%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(200,16,46,.15) 0%, transparent 70%);
  pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
  position: relative;
}
.footer__brand { display: flex; flex-direction: column; gap: var(--s-4); }
.footer__brand img { width: 200px; }
.footer__desc { font-size: 14px; color: rgba(245,245,247,.65); max-width: 320px; }
.footer__col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: var(--s-3);
}
.footer__col ul { display: grid; gap: var(--s-2); }
.footer__col a { font-size: 14px; color: rgba(245,245,247,.65); transition: color var(--t-fast); }
.footer__col a:hover { color: var(--paper); }
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(245,245,247,.55);
  gap: var(--s-5);
  flex-wrap: wrap;
  position: relative;
}
.footer__legal a:hover { color: var(--paper); }
.footer__social { display: flex; gap: var(--s-3); }
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
  color: rgba(245,245,247,.75);
}
.footer__social a:hover { background: var(--paper); color: var(--ink-900); }
.footer__social svg { width: 18px; height: 18px; }

/* ----- Mascot accents --------------------------------------------------- */
.mascot-accent {
  position: absolute;
  width: 120px;
  pointer-events: none;
  animation: float-y 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.18));
  opacity: .9;
}

/* ----- Reveal on scroll -------------------------------------------------
   Only hide content when JS has confirmed it can animate it back in.
   This guarantees content is visible even if IO never fires (ad-blockers,
   file:// previews, slow networks, JS-disabled).
*/
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-cinema) var(--ease-out), transform var(--t-cinema) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--scale { transform: scale(.95); }
html.js-ready .reveal.is-visible.reveal--left,
html.js-ready .reveal.is-visible.reveal--right { transform: none; }
html.js-ready .reveal.is-visible.reveal--scale { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----- Keyframes -------------------------------------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes marquee-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes float-y {
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}
@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
@keyframes particle-rise {
  0%   { transform: translateY(0) scale(.8); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-160px) scale(1.2); opacity: 0; }
}
@keyframes holo-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes gradient-shift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
@keyframes pulse-ring {
  0%   { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Particle overlay (decorative) */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-coral);
  opacity: 0;
  animation: particle-rise 8s linear infinite;
}
.particle--blue { background: var(--accent-blue-light); }
.particle--mint { background: var(--accent-mint); }
.particle--gold { background: var(--accent-gold); }

/* ----- 404 ------------------------------------------------------------- */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink-900);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: var(--s-7) var(--s-5);
}
.error-page__code {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(96px, 18vw, 240px);
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent-blue) 0%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page__mascot {
  width: 200px;
  animation: mascot-bounce 4s ease-in-out infinite;
}

/* ----- Article (Privacy / Terms) --------------------------------------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: var(--s-5); }
.prose h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  margin: var(--s-7) 0 var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--silver-2);
}
.prose h3 {
  font-size: 18px;
  margin: var(--s-5) 0 var(--s-2);
  font-weight: 700;
}
.prose p, .prose li {
  font-size: 15.5px;
  color: var(--ink-500);
  line-height: 1.75;
}
.prose p { margin-bottom: var(--s-3); }
.prose ul, .prose ol { padding-left: var(--s-5); margin-bottom: var(--s-4); }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.prose strong { color: var(--ink-900); }
.prose a { color: var(--accent-blue); border-bottom: 1px solid currentColor; }
.prose .toc {
  background: var(--paper-deep);
  padding: var(--s-5);
  border-radius: var(--r-md);
  margin-bottom: var(--s-7);
  font-size: 14px;
}
.prose .toc ol { padding-left: var(--s-5); margin: 0; }
.prose .toc a { color: var(--ink-700); border-bottom: none; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .highlight__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .app-showcase { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__list { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero { min-height: 88vh; }
  .hero__mascot { width: 100px; bottom: 6%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--silver-2); padding-top: var(--s-4); }
  .stat:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .highlight__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .app-showcase__features { grid-template-columns: 1fr; }
  .app-showcase__visual { aspect-ratio: 3/4; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--s-4); }
  .display-1 { font-size: clamp(34px, 9vw, 48px); }
  .hero__title { font-size: clamp(34px, 9vw, 56px); }
}

/* ----- Utility ---------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-3 { margin-top: var(--s-3); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.flex { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }