/* ============================================================
   CHAINUS — premium consumer design system
   Dark-first, cobalt action color, real product imagery.
   Quiet surfaces · restrained motion · no trading-dashboard chrome.
   ============================================================ */

:root {
  /* ---- brand: deep financial sapphire on a black luxury surface ---- */
  --brand: #0066CC;
  --brand-2: #8BBEFF;
  --brand-hover: #0071E3;
  --brand-active: #0052A3;
  --on-brand: #ffffff;

  /* data-viz palette (semantic, not decorative) */
  --cyan: #78C7D6;
  --steel: #828B9C;
  --violet: #918CF2;
  --up: #58C89A;
  --down: #E26660;
  --warn: #E3B45F;

  /* type */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 18px;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  /* motion — one consistent language */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --reveal-y: 22px;
  --t-fast: 0.22s;
  --t-med: 0.45s;
  --t-slow: 0.8s;
}

/* ============================================================
   THEME TOKENS
   ============================================================ */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-grad-1: #050506;
  --bg-grad-2: #000000;
  --elev: #06070C;
  --surface: #0B0B0D;
  --surface-2: #121216;
  --surface-3: #1B1B20;
  --well: #02040A;
  --border: rgba(166,184,214,0.085);
  --border-2: rgba(166,184,214,0.16);
  --divider: rgba(166,184,214,0.06);
  --hairline: rgba(166,184,214,0.09);
  --inner-hi: rgba(255,255,255,0.09);

  --text: #F4F6FA;
  --text-2: #C1C8D3;
  --text-muted: #858E9D;

  --brand-tint: color-mix(in oklab, var(--brand) 12%, transparent);
  --brand-tint-2: color-mix(in oklab, var(--brand) 20%, transparent);
  --brand-line: color-mix(in oklab, var(--brand) 30%, transparent);
  --brand-text: var(--brand-2);
  --up-soft: color-mix(in oklab, var(--up) 18%, transparent);
  --down-soft: color-mix(in oklab, var(--down) 18%, transparent);

  --glass: color-mix(in oklab, #0B0D12 76%, transparent);
  --glass-border: rgba(255,255,255,0.12);

  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 34px 70px -52px rgba(0,0,0,0.95);
  --shadow-brand: none;

  /* aurora light source */
  --aura-core: color-mix(in oklab, var(--brand) 72%, #6F91C8);
  --aura-mid: color-mix(in oklab, var(--brand) 28%, transparent);
  --aura-edge: color-mix(in oklab, var(--brand) 12%, transparent);
  --aura-strength: 0.9;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #E9ECF3;               /* cool mineral paper, not white */
  --bg-grad-1: #EEF1F7;
  --bg-grad-2: #E4E8F1;
  --elev: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #F1F4FA;
  --surface-3: #E8ECF4;
  --well: #E6EAF2;
  --border: rgba(18,26,48,0.11);
  --border-2: rgba(18,26,48,0.18);
  --divider: rgba(18,26,48,0.08);
  --hairline: rgba(18,26,48,0.10);
  --inner-hi: rgba(255,255,255,0.7);

  --text: #131722;
  --text-2: #475067;
  --text-muted: #8088A0;

  --brand: #0066CC;
  --brand-2: #0066CC;
  --brand-hover: #0071E3;
  --brand-active: #0052A3;
  --brand-text: #0066CC;
  --brand-tint: color-mix(in oklab, var(--brand) 9%, transparent);
  --brand-tint-2: color-mix(in oklab, var(--brand) 16%, transparent);
  --brand-line: color-mix(in oklab, var(--brand) 26%, transparent);

  --up: #138A60; --down: #CC3F35; --warn: #B07A1E;
  --up-soft: color-mix(in oklab, var(--up) 12%, transparent);
  --down-soft: color-mix(in oklab, var(--down) 12%, transparent);

  --glass: color-mix(in oklab, #ffffff 70%, transparent);
  --glass-border: rgba(18,26,48,0.10);

  --shadow-sm: 0 1px 2px rgba(20,28,55,0.06), 0 2px 8px rgba(20,28,55,0.05);
  --shadow: 0 24px 56px -30px rgba(28,42,86,0.30), 0 4px 14px rgba(28,42,86,0.10);
  --shadow-lg: 0 60px 110px -44px rgba(28,42,86,0.38), 0 8px 26px rgba(28,42,86,0.14);
  --shadow-brand: 0 30px 70px -32px color-mix(in oklab, var(--brand) 38%, transparent);

  --aura-core: color-mix(in oklab, var(--brand) 60%, #9FBEFF);
  --aura-mid: color-mix(in oklab, var(--brand) 32%, #dfe6f5);
  --aura-edge: color-mix(in oklab, var(--cyan) 28%, transparent);
}

/* aurora intensity tweak */
[data-aura="subtle"]  { --aura-strength: 0.86; }
[data-aura="balanced"]{ --aura-strength: 1.08; }
[data-aura="vivid"]   { --aura-strength: 1.34; }

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv01";
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
[data-lang="zh"] body, body[data-lang="zh"] { line-height: 1.78; }

/* page atmosphere — quiet product-gallery surface */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, var(--bg-grad-1), var(--bg) 34%, var(--bg-grad-2));
}

img, svg, image-slot, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--brand-tint-2); color: var(--text); }

/* numerics utility */
.tnum { font-family: var(--font-mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.wrap-wide { max-width: 1440px; }
.section { position: relative; padding-block: clamp(72px, 10vw, 132px); }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  color: var(--text-muted);
}
.eyebrow::before {
  display: none;
  content: ""; width: 6px; height: 6px; border-radius: 1.5px;
  background: var(--brand);
}
.eyebrow.plain::before { display: none; }
[data-lang="zh"] .eyebrow { letter-spacing: 0.04em; }

/* ---------- TYPE ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--text); }
.display {
  font-size: clamp(42px, 6.6vw, 88px); font-weight: 700; line-height: 0.99;
  letter-spacing: -0.032em;
}
.h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.04; }
.h2 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 600; letter-spacing: -0.024em; line-height: 1.08; }
.h3 { font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -0.014em; }
.h4 { font-size: clamp(16px, 1.5vw, 18px); font-weight: 600; letter-spacing: -0.01em; }
[data-lang="zh"] .display, [data-lang="zh"] .h1, [data-lang="zh"] .h2, [data-lang="zh"] .h3 { letter-spacing: -0.005em; line-height: 1.2; }

.lead { font-size: clamp(16.5px, 1.5vw, 19.5px); color: var(--text-2); max-width: 56ch; line-height: 1.6; }
.lead-sm { font-size: clamp(15px, 1.2vw, 16.5px); color: var(--text-2); line-height: 1.62; }
.muted { color: var(--text-2); }
.faint { color: var(--text-muted); }
.brand-text { color: var(--brand-text); }

/* gradient ink for select headline words */
.ink-grad { color: var(--brand-text); }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-med) var(--ease),
              background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: var(--on-brand);
  background: var(--brand);
  border: 1px solid color-mix(in oklab, var(--brand) 80%, white);
  box-shadow: none;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); border-color: rgba(208,220,238,0.26); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { color: var(--brand-2); background: transparent; border: 1px solid color-mix(in oklab, var(--brand) 62%, transparent); }
.btn-ghost:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.035); }
.btn-line { color: var(--brand-2); background: transparent; border: 1px solid color-mix(in oklab, var(--brand) 58%, transparent); }
.btn-line:hover { border-color: var(--text-2); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 999px; }
.btn-lg { padding: 16px 28px; font-size: 16.5px; border-radius: 999px; }
.btn-ghost svg, .btn-line svg { transition: transform var(--t-med) var(--ease); }
.btn-ghost:hover svg, .btn-line:hover svg { transform: translateX(3px); }

/* custom cursor */
.cc-ring,
.cc-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height, margin, opacity;
}
.cc-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--brand-2) 56%, transparent);
  background: color-mix(in oklab, var(--brand) 7%, transparent);
  box-shadow: 0 0 30px -18px var(--brand);
  transition: width var(--t-fast) var(--ease), height var(--t-fast) var(--ease), margin var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.cc-ring::before,
.cc-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.82);
  transform: translateY(-50%) scale(0.6);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.cc-ring::before { left: 7px; }
.cc-ring::after { right: 7px; }
.cc-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 18px color-mix(in oklab, var(--brand) 46%, transparent);
  transition: opacity var(--t-fast) var(--ease), transform 0.02s linear;
}
.cc-on,
.cc-on * { cursor: none !important; }
.cc-on .cc-ring,
.cc-on .cc-dot { opacity: 1; }
.cc-link .cc-ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: color-mix(in oklab, var(--brand-2) 78%, transparent);
  background: color-mix(in oklab, var(--brand) 14%, transparent);
}
.cc-link .cc-dot {
  opacity: 0.72;
}
.cc-flip:not(.cc-drag) .cc-ring {
  width: 2px;
  height: 34px;
  margin: -17px 0 0 -1px;
  opacity: 0;
  border-color: rgba(255,255,255,0.5);
  background: radial-gradient(circle at 50% 50%, #fff 0 1.5px, rgba(255,255,255,0.3) 2.5px, transparent 6px), linear-gradient(180deg, transparent, rgba(255,255,255,0.58), transparent);
  box-shadow: 0 0 12px -8px rgba(255,255,255,0.86);
  transition-duration: 70ms;
  transition-timing-function: linear;
  animation: ccFlipSlice 920ms linear both;
}
.cc-flip:not(.cc-drag) .cc-ring::before,
.cc-flip:not(.cc-drag) .cc-ring::after {
  opacity: 0.34;
  transform: translateY(-50%) scale(0.42, 0.7);
  transition-duration: 70ms;
  transition-timing-function: linear;
}
.cc-flip:not(.cc-drag) .cc-ring::before { left: -9px; }
.cc-flip:not(.cc-drag) .cc-ring::after { right: -9px; }
.cc-flip:not(.cc-drag) .cc-dot {
  opacity: 0;
  transition-duration: 70ms;
  animation: ccFlipDot 920ms linear both;
}
@keyframes ccFlipSlice {
  0% { width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: 0.32; filter: brightness(1); }
  50% { width: 1px; height: 36px; margin: -18px 0 0 -0.5px; opacity: 0.68; filter: brightness(1.72); }
  64% { width: 1px; height: 24px; margin: -12px 0 0 -0.5px; opacity: 0.22; filter: brightness(1.02); }
  100% { width: 1px; height: 14px; margin: -7px 0 0 -0.5px; opacity: 0; filter: brightness(1); }
}
@keyframes ccFlipDot {
  0% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 0.04; transform: scale(0.38); }
  100% { opacity: 0; transform: scale(0.4); }
}
.cc-release:not(.cc-drag) .cc-ring {
  width: 18px;
  height: 1px;
  margin: -0.5px 0 0 -9px;
  opacity: 0;
  border-color: rgba(255,255,255,0.36);
  background: radial-gradient(circle at 78% 50%, #fff 0 2px, rgba(255,255,255,0.34) 3px, transparent 7px), linear-gradient(90deg, transparent, rgba(255,255,255,0.92) 66%, transparent);
  box-shadow: 0 0 16px -7px rgba(255,255,255,0.98);
  rotate: calc(-24deg + var(--cc-release-angle, 0deg));
  animation: ccReleaseSnap 560ms cubic-bezier(.16,1,.3,1) both;
}
.cc-release:not(.cc-drag) .cc-dot {
  width: 2px;
  height: 2px;
  margin: -1px 0 0 -1px;
  opacity: 0;
  animation: ccReleaseDot 560ms cubic-bezier(.16,1,.3,1) both;
}
.cc-release:not(.cc-drag) .cc-ring::before,
.cc-release:not(.cc-drag) .cc-ring::after {
  opacity: 0.34;
  transform: translateY(-50%) scale(0.5, 0.4);
}
.cc-release:not(.cc-drag) .cc-ring::before { left: -9px; }
.cc-release:not(.cc-drag) .cc-ring::after { right: -9px; }
@keyframes ccReleaseSnap {
  0% { width: 84px; height: 2px; margin: -1px 0 0 -42px; opacity: 0.76; rotate: calc(-7deg + var(--cc-release-angle, 0deg)); transform: translateX(calc(var(--cc-release-pull, 0) * 4px)); filter: brightness(1.65); }
  14% { width: 72px; height: 1.5px; margin: -0.75px 0 0 -36px; opacity: 0.9; rotate: calc(-9deg + var(--cc-release-angle, 0deg)); transform: translateX(calc(var(--cc-release-pull, 0) * 9px)); filter: brightness(1.95); }
  34% { width: 48px; height: 1px; margin: -0.5px 0 0 -24px; opacity: 0.56; rotate: calc(-13deg + var(--cc-release-angle, 0deg)); transform: translateX(calc(var(--cc-release-pull, 0) * 15px)); filter: brightness(1.36); }
  64% { width: 22px; height: 1px; margin: -0.5px 0 0 -11px; opacity: 0.18; rotate: calc(-19deg + var(--cc-release-angle, 0deg)); transform: translateX(calc(var(--cc-release-pull, 0) * 20px)); filter: brightness(1.05); }
  100% { width: 10px; height: 1px; margin: -0.5px 0 0 -5px; opacity: 0; rotate: calc(-23deg + var(--cc-release-angle, 0deg)); transform: translateX(calc(var(--cc-release-pull, 0) * 22px)); filter: brightness(1); }
}
@keyframes ccReleaseDot {
  0% { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; opacity: 0.86; transform: translateX(calc(var(--cc-release-pull, 0) * 2px)); }
  14% { width: 6px; height: 6px; margin: -3px 0 0 -3px; opacity: 0.68; transform: translateX(calc(var(--cc-release-pull, 0) * 7px)); }
  34% { width: 4px; height: 4px; margin: -2px 0 0 -2px; opacity: 0.36; transform: translateX(calc(var(--cc-release-pull, 0) * 12px)); }
  64% { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; opacity: 0.12; transform: translateX(calc(var(--cc-release-pull, 0) * 16px)); }
  100% { width: 2px; height: 2px; margin: -1px 0 0 -1px; opacity: 0; transform: translateX(calc(var(--cc-release-pull, 0) * 18px)); }
}
.cc-drag .cc-ring {
  width: 52px;
  height: 3px;
  margin: -1.5px 0 0 -26px;
  border-color: rgba(255,255,255,0.9);
  background: radial-gradient(circle at 50% 50%, #fff 0 3px, rgba(255,255,255,0.36) 4px, transparent 9px), linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.82), #fff, rgba(255,255,255,0.82), rgba(255,255,255,0.08));
  box-shadow: 0 0 14px -8px rgba(255,255,255,0.96), 0 0 22px -18px var(--brand);
  transition-duration: 70ms;
  transition-timing-function: linear;
}
.cc-drag .cc-ring::before,
.cc-drag .cc-ring::after {
  opacity: 0.88;
  transform: translateY(-50%) scale(1.02, 0.82);
  transition-duration: 70ms;
  transition-timing-function: linear;
}
.cc-drag .cc-ring::before { left: -5px; }
.cc-drag .cc-ring::after { right: -5px; }
.cc-drag .cc-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,0.9);
  transition-duration: 70ms;
  transition-timing-function: linear;
}
.cc-grabbing .cc-ring {
  width: calc(38px + var(--cc-pull, 0) * 36px);
  height: 1.5px;
  margin: -0.75px 0 0 calc(-19px - var(--cc-pull, 0) * 18px);
  rotate: var(--cc-angle, 0deg);
  border-color: rgba(255,255,255,0.58);
  background: radial-gradient(circle at calc(58% + var(--cc-pull, 0) * 18%) 50%, #fff 0 2.5px, rgba(255,255,255,0.34) 3.5px, transparent 8px), linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.62), color-mix(in oklab, var(--brand-2) 10%, white), rgba(255,255,255,0.56), rgba(255,255,255,0.08));
  box-shadow: 0 0 10px -7px rgba(255,255,255,0.86), 0 0 20px -18px var(--brand);
}
.cc-grabbing .cc-ring::before,
.cc-grabbing .cc-ring::after {
  opacity: 0.72;
  transform: translateY(-50%) scale(calc(0.86 + var(--cc-pull, 0) * 0.14), calc(0.62 - var(--cc-pull, 0) * 0.12));
}
.cc-grabbing .cc-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  opacity: 0.82;
  box-shadow: 0 0 14px rgba(255,255,255,0.82), 0 0 22px rgba(104,136,255,0.16);
}
.cc-tearing .cc-ring {
  width: calc(42px + var(--cc-pull, 0) * 42px);
  height: 1.5px;
  margin: -0.75px 0 0 calc(-21px - var(--cc-pull, 0) * 21px);
  rotate: var(--cc-angle, 0deg);
  border-color: rgba(255,255,255,0.62);
  background: radial-gradient(circle at calc(70% + var(--cc-pull, 0) * 8%) 50%, #fff 0 2.5px, rgba(255,255,255,0.34) 3.5px, transparent 8px), linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.68) 22%, color-mix(in oklab, var(--brand-2) 12%, white) 50%, rgba(255,255,255,0.64) 78%, rgba(255,255,255,0.08));
  box-shadow: 0 0 12px -7px rgba(255,255,255,0.9), 0 0 24px -18px var(--brand);
  animation: ccTearSnap 320ms cubic-bezier(.16,1,.3,1) both;
}
.cc-tearing .cc-ring::before,
.cc-tearing .cc-ring::after {
  opacity: 0.7;
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.82), 0 0 22px rgba(104,136,255,0.18);
  transform: translateY(-50%) scale(calc(0.9 + var(--cc-pull, 0) * 0.14), 0.48);
}
.cc-tearing .cc-dot {
  width: 2px;
  height: 2px;
  margin: -1px 0 0 -1px;
  opacity: 0.22 !important;
}
@keyframes ccTearSnap {
  0% { width: calc(52px + var(--cc-pull, 0) * 48px); margin-left: calc(-26px - var(--cc-pull, 0) * 24px); opacity: 0.74; filter: brightness(1.32); }
  22% { width: calc(28px + var(--cc-pull, 0) * 24px); margin-left: calc(-14px - var(--cc-pull, 0) * 12px); opacity: 0.86; filter: brightness(1.58); }
  100% { width: calc(42px + var(--cc-pull, 0) * 42px); margin-left: calc(-21px - var(--cc-pull, 0) * 21px); opacity: 0.82; filter: brightness(1); }
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cc-ring,
  .cc-dot { display: none; }
  .cc-on,
  .cc-on * { cursor: auto !important; }
}

/* store badges */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px 10px 16px;
  border-radius: 13px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  transition: transform var(--t-fast) var(--spring), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--border-2); background: var(--surface-2); }
.store-badge .ico { width: 22px; height: 22px; flex: none; }
.store-badge .tt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-badge .tt small { font-size: 10px; color: var(--text-muted); letter-spacing: 0.02em; }
.store-badge .tt b { font-size: 14.5px; font-weight: 700; }
.store-badge .soon {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 5px; margin-left: 2px;
  background: var(--brand-tint); color: var(--brand-text); text-transform: uppercase;
}

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.tag {
  font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.01em; text-transform: none;
  color: var(--text-muted);
}

/* ---------- MATERIALS / SURFACES ---------- */
/* matte card — flat, hairline, soft shadow (no blur) */
.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: none;
}
.card-hi::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 var(--inner-hi), inset 0 -1px 0 rgba(0,0,0,0.34);
}
.elev { background: var(--elev); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
/* recessed data well */
.well {
  background: var(--well); border: 1px solid var(--divider); border-radius: var(--r-md);
  box-shadow: inset 0 2px 14px rgba(0,0,0,0.25);
}
[data-theme="light"] .well { box-shadow: inset 0 2px 10px rgba(20,28,55,0.05); }
/* glass — reserved for nav + ticker only */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--glass-border);
}

image-slot {
  --is-bg: var(--surface-2);
  --is-border: var(--border);
  --is-fg: var(--text-muted);
  width: 100%; border-radius: var(--r-md); background: var(--surface-2);
}

/* avatars */
.avatars { display: flex; }
.avatars .av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -9px; background-size: cover; }
.avatars .av:first-child { margin-left: 0; }
.av-1 { background: linear-gradient(140deg,#6E9BFF,#3D74F4); }
.av-2 { background: linear-gradient(140deg,#4FD0E0,#2E7E96); }
.av-3 { background: linear-gradient(140deg,#8FA8D4,#5C6E96); }
.av-4 { background: linear-gradient(140deg,#A99BF5,#7A66E0); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(var(--reveal-y)); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.975) translateY(14px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal-scale.in { opacity: 1; transform: none; }
[data-motion="calm"] .reveal, [data-motion="calm"] .reveal-scale { transition-duration: 0.4s; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; } }

/* clip-reveal for headline lines */
.line-clip { display: block; overflow: hidden; }
.line-clip > span { display: block; transform: translateY(110%); transition: transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
.in .line-clip > span, .line-clip.in > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .line-clip > span { transform: none !important; } }

/* ---------- AURORA — the single cinematic light source ---------- */
.aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.aurora::before {
  content: ""; position: absolute;
  width: 150%; height: 160%; left: 12%; top: -48%;
  background:
    radial-gradient(32% 46% at 62% 35%, var(--aura-core), transparent 60%),
    radial-gradient(54% 64% at 70% 28%, var(--aura-mid), transparent 72%),
    radial-gradient(34% 48% at 48% 62%, var(--aura-edge), transparent 68%);
  filter: blur(50px) saturate(1.1);
  opacity: calc(0.52 * var(--aura-strength));
  transform: rotate(-16deg) translate3d(var(--par-x, 0px), var(--par-y, 0px), 0);
  -webkit-mask-image: radial-gradient(80% 80% at 60% 35%, #000 35%, transparent 75%);
  mask-image: radial-gradient(80% 80% at 60% 35%, #000 35%, transparent 75%);
}
/* fine light banding for the rendered-cloth feel */
.aurora::after {
  content: ""; position: absolute;
  width: 140%; height: 150%; left: 10%; top: -34%;
  background: linear-gradient(118deg,
    transparent 18%,
    color-mix(in oklab, var(--aura-core) 18%, transparent) 42%,
    transparent 68%);
  filter: blur(6px);
  opacity: calc(0.09 * var(--aura-strength));
  transform: rotate(-16deg) translate3d(var(--par-x, 0px), var(--par-y, 0px), 0);
  -webkit-mask-image: radial-gradient(60% 60% at 62% 34%, #000 10%, transparent 70%);
  mask-image: radial-gradient(60% 60% at 62% 34%, #000 10%, transparent 70%);
}
[data-theme="light"] .aurora::before { opacity: calc(0.4 * var(--aura-strength)); filter: blur(40px) saturate(1.1); }
[data-theme="light"] .aurora::after { opacity: calc(0.14 * var(--aura-strength)); }

/* grain overlay for material texture */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
[data-theme="light"] .grain::after { opacity: 0.22; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.82); } }

/* marquee */
.marquee { display: flex; width: max-content; will-change: transform; animation: scrollx var(--dur, 40s) linear infinite; align-items: center; }
[data-motion="calm"] .marquee { animation-duration: 70s; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.marquee-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); overflow: hidden; }

@media (max-width: 980px) { :root { --gut: clamp(18px, 5vw, 40px); } }
