/* ==========================================================================
   Vision Retail Display — Global Stylesheet
   ========================================================================== */

@import url('./tokens.css');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- SVG / img size guard ----------
   Defensive: every <img> referencing an SVG must render at a sensible
   size. Without width/height attributes on the SVG itself, browsers may
   render SVGs at 100% of the parent — these rules cap the size in each
   known usage context. */
.site-header__lang img,
.site-header__socials img { width: 16px; height: 16px; flex-shrink: 0; }
.site-header__brand img { width: auto; height: 40px; }
.site-footer__brand img { width: auto; height: 38px; }
.site-footer__socials a img { width: 18px; height: 18px; }
.card__icon img { width: 40px; height: 40px; }
.service-card__list img { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.marquee__item img { width: 32px; height: 32px; flex-shrink: 0; opacity: 0.7; }
.to-top img { width: 18px; height: 18px; }
.phone-mockup__item .ico img { width: 22px; height: 22px; }
.app-store-badge img { width: 160px; height: auto; }
.cta-row img { width: 22px; height: 22px; }
li > img, p > img { width: 1.2em; height: 1.2em; vertical-align: -0.2em; }

/* ---------- Base ---------- */
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main { display: block; min-height: 60vh; }

::selection { background: var(--brand-accent); color: var(--brand-primary); }

/* ---------- Type scale ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 800; line-height: var(--lh-tight); color: var(--text-primary); }
h1 { font-size: clamp(40px, 6.2vw, var(--fs-5xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, var(--fs-3xl)); letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 2.4vw, var(--fs-xl)); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); font-weight: 700; }
p  { color: var(--text-secondary); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-accent);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: currentColor; display: inline-block;
}

.lead { font-size: var(--fs-md); color: var(--text-secondary); line-height: var(--lh-loose); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-gradient); color: var(--text-inverse); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark p { color: var(--text-inverse); }
.section--dark p { color: rgba(255, 255, 255, 0.78); }
.section--dark .eyebrow { color: var(--brand-accent); }

.grid { display: grid; gap: var(--s-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)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.02em;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary { background: var(--brand-accent); color: var(--brand-primary); box-shadow: 0 8px 24px rgba(0, 212, 168, 0.32); }
.btn--primary:hover { background: var(--brand-accent-2); box-shadow: 0 12px 32px rgba(0, 212, 168, 0.45); }

.btn--secondary { background: var(--brand-primary); color: #fff; box-shadow: 0 8px 24px rgba(10, 37, 64, 0.18); }
.btn--secondary:hover { background: var(--brand-primary-2); }

.btn--ghost { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.btn--inverse { background: #fff; color: var(--brand-primary); }
.btn--inverse:hover { background: var(--brand-accent); }

.btn--lg { padding: 16px 28px; font-size: var(--fs-base); }
.btn--sm { padding: 10px 18px; font-size: var(--fs-sm); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex; align-items: center;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.06), 0 8px 24px rgba(10, 37, 64, 0.04);
  border-bottom-color: var(--border-soft);
}
.site-header.is-transparent { background: transparent; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.site-header__brand img { height: 40px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: var(--s-5); }
.site-header__nav a {
  position: relative;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-primary);
  padding: 6px 2px;
  transition: color var(--t-fast);
}
.site-header__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brand-accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out);
}
.site-header__nav a:hover::after, .site-header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__nav a[aria-current="page"] { color: var(--brand-primary); }
.site-header__lang {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--border-soft); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; transition: border-color var(--t-fast);
}
.site-header__lang:hover { border-color: var(--brand-primary); }
.site-header__lang svg { width: 16px; height: 16px; }
.site-header__cta { margin-left: var(--s-3); }

.nav-toggle { display: none; padding: 10px; border-radius: var(--r-sm); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand-primary); border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); margin: 4px 0; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header__nav, .site-header__lang, .site-header__cta { display: none; }
  .nav-toggle { display: block; }
  .site-header__nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4);
    position: absolute; top: 100%; left: 0; right: 0;
    padding: var(--s-5) var(--container-pad);
    background: #fff; border-top: 1px solid var(--border-soft);
  }
  .site-header.is-scrolled .site-header__nav.is-open { box-shadow: 0 24px 32px rgba(10, 37, 64, 0.08); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(48px, 6vw, 80px) 0 var(--s-5);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 168, 0.15), transparent 70%);
  pointer-events: none;
}
.site-footer h4 { color: #fff; margin-bottom: var(--s-3); font-size: var(--fs-base); }
.site-footer a { color: rgba(255, 255, 255, 0.7); transition: color var(--t-fast); }
.site-footer a:hover { color: var(--brand-accent); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-7); align-items: start; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { height: 38px; filter: brightness(0) invert(1); }
.site-footer__about { margin-top: var(--s-3); color: rgba(255, 255, 255, 0.6); font-size: var(--fs-sm); line-height: 1.7; }
.site-footer__list { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}
.site-footer__socials { display: flex; gap: var(--s-3); }
.site-footer__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); color: #fff;
  transition: background var(--t-fast), transform var(--t-fast);
}
.site-footer__socials a:hover { background: var(--brand-accent); color: var(--brand-primary); transform: translateY(-2px); }
.site-footer__socials svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(60px, 8vw, 120px)) 0 clamp(80px, 10vw, 160px);
  background: var(--bg-gradient);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(0, 212, 168, 0.25), transparent 60%),
    radial-gradient(50% 50% at 90% 80%, rgba(124, 92, 255, 0.25), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: center; }
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero h1 .accent { background: linear-gradient(120deg, var(--brand-accent), var(--brand-energy), var(--brand-rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: rgba(255, 255, 255, 0.82); margin: var(--s-4) 0 var(--s-5); max-width: 560px; }
.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__visual { position: relative; }
.hero__visual img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero__mascots { position: absolute; pointer-events: none; }
.hero__mascot { position: absolute; width: 110px; height: 110px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.2)); animation: floaty 6s ease-in-out infinite; }
.hero__mascot--fox { top: 6%; left: -20px; }
.hero__mascot--panda { bottom: 8%; right: -10px; animation-delay: 1s; }
.hero__mascot--cat { top: 40%; right: 4%; width: 80px; height: 80px; animation-delay: 2s; }
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, 0.6); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll .line { width: 1px; height: 32px; background: rgba(255, 255, 255, 0.4); position: relative; overflow: hidden; }
.hero__scroll .line::after { content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--brand-accent); animation: scrollDown 2s ease-in-out infinite; }

@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes scrollDown { 0% { top: -50%; } 100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  padding: var(--s-5) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.marquee__track { display: flex; gap: var(--s-7); white-space: nowrap; animation: marquee 40s linear infinite; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: var(--fs-lg); color: var(--text-tertiary);
}
.marquee__item svg { width: 32px; height: 32px; opacity: 0.7; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-accent); }
.card__icon { width: 64px; height: 64px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--s-4); background: var(--bg-soft); }
.card__icon img { width: 40px; height: 40px; }
.card__title { font-size: var(--fs-lg); font-weight: 800; margin-bottom: 8px; }
.card__desc { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.7; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-4);
  font-weight: 700; font-size: var(--fs-sm); color: var(--brand-primary);
}
.card__link svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.card__link:hover svg { transform: translateX(4px); }

/* Service card variant */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__num { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--brand-accent); font-weight: 700; letter-spacing: 0.2em; }
.service-card__list { margin: var(--s-3) 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); color: var(--text-secondary); }
.service-card__list li { display: flex; align-items: flex-start; gap: 8px; }
.service-card__list svg { width: 16px; height: 16px; color: var(--brand-accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- Stats / KPI ---------- */
.kpi { display: flex; align-items: baseline; gap: 12px; padding: var(--s-3) 0; }
.kpi__num { font-size: clamp(36px, 4vw, 56px); font-weight: 800; line-height: 1; color: var(--brand-accent); }
.kpi__num::after { content: attr(data-suffix); }
.kpi__label { font-size: var(--fs-sm); color: var(--text-tertiary); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__visual { position: relative; }
.split__visual img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.split__visual .badge {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-radius: var(--r-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-sm); color: var(--text-primary); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.split__visual .badge svg { width: 24px; height: 24px; color: var(--brand-accent); }

/* ---------- App showcase ---------- */
.app-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
@media (max-width: 900px) { .app-showcase { grid-template-columns: 1fr; } }
.phone-mockup {
  position: relative; width: 320px; max-width: 100%; aspect-ratio: 9/19;
  margin: 0 auto;
  background: linear-gradient(160deg, #1a2942, #0a2540);
  border-radius: 40px; padding: 12px;
  box-shadow: 0 32px 64px rgba(10, 37, 64, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone-mockup::before {
  content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: #0a2540; border-radius: 12px;
  z-index: 2;
}
.phone-mockup__screen {
  width: 100%; height: 100%; border-radius: 30px; background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-mockup__bar { height: 32px; background: #f4f7fb; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 11px; color: var(--text-tertiary); }
.phone-mockup__bar .battery { width: 22px; height: 10px; border: 1px solid var(--text-tertiary); border-radius: 2px; position: relative; }
.phone-mockup__bar .battery::after { content: ''; position: absolute; left: 1px; top: 1px; bottom: 1px; width: 70%; background: var(--text-tertiary); }
.phone-mockup__hero { padding: 16px; background: linear-gradient(135deg, #00d4a8, #0a2540); color: #fff; }
.phone-mockup__hero h5 { color: #fff; font-size: 14px; }
.phone-mockup__hero p { color: rgba(255, 255, 255, 0.8); font-size: 11px; margin-top: 4px; }
.phone-mockup__list { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.phone-mockup__item { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg-soft); border-radius: 12px; }
.phone-mockup__item .ico { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.phone-mockup__item .ico img { width: 22px; height: 22px; }
.phone-mockup__item .txt { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.phone-mockup__item .sub { font-size: 10px; color: var(--text-tertiary); }
.phone-mockup__tabbar { display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.phone-mockup__tabbar span { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-soft); }

/* ---------- News / Article card ---------- */
.article-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-soft); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card__media { aspect-ratio: 16/10; background: var(--bg-soft); position: relative; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.article-card__meta { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.article-card__tag { padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-soft); color: var(--brand-primary); }
.article-card__title { font-size: var(--fs-lg); font-weight: 800; line-height: 1.3; }
.article-card__excerpt { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.7; }

/* ---------- Forms ---------- */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.form-row label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--border-soft); border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 168, 0.15);
}
.form-row textarea { min-height: 140px; resize: vertical; }

/* ---------- Tag / Pill ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--bg-soft); color: var(--brand-primary); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; }
.pill--accent { background: var(--brand-accent); color: var(--brand-primary); }
.pill--violet { background: rgba(124, 92, 255, 0.12); color: var(--brand-violet); }
.pill--rose { background: rgba(255, 94, 125, 0.12); color: var(--brand-rose); }
.pill--dark { background: var(--brand-primary); color: #fff; }

/* ---------- Decorative mascots for sections ---------- */
.mascot-deco { position: absolute; pointer-events: none; opacity: 0.9; }
.mascot-deco--panda { top: -40px; right: 4%; width: 140px; }
.mascot-deco--fox { bottom: -40px; left: 4%; width: 140px; }
.mascot-deco--cat { top: 20%; left: 4%; width: 120px; }
.mascot-deco--owl { bottom: -30px; right: 6%; width: 130px; }
.mascot-deco--deer { top: -20px; left: 6%; width: 130px; }
.mascot-deco--robot { bottom: -20px; right: 6%; width: 130px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--left.is-visible, .reveal--right.is-visible { transform: translateX(0); }
.reveal--zoom { transform: scale(0.94); }
.reveal--zoom.is-visible { transform: scale(1); }

.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-tertiary); padding: 24px 0; }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb span.sep { opacity: 0.5; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 880px; margin: 0 auto; }
.prose h2 { margin-top: var(--s-7); margin-bottom: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border-soft); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { margin-top: var(--s-5); margin-bottom: var(--s-2); font-size: var(--fs-md); }
.prose p, .prose li { color: var(--text-secondary); line-height: var(--lh-loose); margin-bottom: var(--s-3); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.prose ul li::before { content: ''; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); }
.prose ol { padding-left: 24px; }
.prose ol li { padding-left: 6px; margin-bottom: 8px; }
.prose strong { color: var(--text-primary); }
.prose .updated { font-size: var(--fs-sm); color: var(--text-tertiary); margin-bottom: var(--s-5); }
.prose .callout { background: var(--bg-soft); border-left: 3px solid var(--brand-accent); padding: var(--s-4); border-radius: var(--r-sm); margin: var(--s-4) 0; }
.prose .callout p { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--fs-sm); }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.prose th { background: var(--bg-soft); color: var(--text-primary); font-weight: 700; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(60px, 7vw, 100px); background: var(--bg-gradient); color: #fff; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 90% 0%, rgba(0, 212, 168, 0.2), transparent 60%); }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero p { color: rgba(255, 255, 255, 0.78); max-width: 720px; margin-top: var(--s-3); }
.page-hero__mascot { position: absolute; bottom: -20px; right: 4%; width: 200px; opacity: 0.9; pointer-events: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-overlay);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--brand-accent); color: var(--brand-primary); }
.to-top svg { width: 18px; height: 18px; transform: rotate(-90deg); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-modal);
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; gap: var(--s-4); justify-content: space-between;
  transform: translateY(140%); transition: transform var(--t-slow) var(--ease-out);
  max-width: 720px; margin: 0 auto;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: var(--fs-sm); color: var(--text-secondary); margin: 0; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-banner__actions { justify-content: flex-end; } }

/* ---------- Marquee logos ---------- */
.logo-strip { display: flex; align-items: center; gap: var(--s-7); flex-wrap: wrap; padding: var(--s-5) 0; opacity: 0.8; }
.logo-strip span { font-weight: 800; color: var(--text-tertiary); letter-spacing: 0.1em; font-size: var(--fs-sm); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.hidden { display: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
