@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Extended Latin (Polish, Czech, Turkish...): loaded only when the page uses those letters. */
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* ==========================================================================
   Design tokens: "Midnight Sakura"
   Deep purple night, plum surfaces, sakura pink for actions, crystal cyan for
   shards/magic, champagne gold reserved for premium lots.
   ========================================================================== */
:root {
  /* color: base */
  --c-bg: #0d0917;
  --c-bg-2: #151020;
  --c-surface: #20172c;
  --c-surface-2: #2a1d39;
  --c-surface-3: #352545;
  --c-border: #493758;
  --c-border-soft: rgba(233, 205, 255, .1);

  --c-text: #f9f2fc;
  --c-text-2: #c9bbd7;   /* secondary: 10.7:1 on --c-bg, 8.2:1 on --c-surface-2 */
  --c-text-3: #a99ab8;   /* muted: 7.4:1 on --c-bg, 5.7:1 on --c-surface-2 */

  /* color: roles */
  --c-pink: #ea5b9a;
  --c-pink-hover: #f47cb1;
  --c-pink-deep: #b8336f;
  --c-btn: #c23b78;      /* primary button fill: white text 5.0:1 (AA) */
  --c-btn-2: #a92d65;    /* gradient end: white text 6.5:1 */
  --c-lavender: #9b79d5;
  --c-cyan: #78ddeb;
  --c-gold: #e8c77e;
  --c-gold-2: #f3dfae;
  --c-gold-dark: #a9803d;
  --c-ivory: #fbf3e4;
  --c-danger: #f17286;
  --c-success: #8cd6b0;

  /* type */
  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-hero: clamp(2.5rem, 1.55rem + 3vw, 4.25rem);
  --fs-xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --fs-lg: clamp(1.65rem, 1.3rem + 1.45vw, 2.5rem);
  --fs-md: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-body-lg: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .8125rem;

  --lh-tight: 1.04;
  --lh-head: 1.15;
  --lh-body: 1.6;

  /* space (4-pt) */
  --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;
  --section-y: clamp(68px, 5vw + 28px, 112px);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1320px;
  /* shared side field of the first screen (header + hero): 16 → 56px, then centred in 1440 */
  --edge: max(clamp(16px, 3.6vw, 56px), calc((100vw - 1440px) / 2 + 56px));

  /* radius: hierarchy: chips < controls < cards < feature panels */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* elevation */
  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 6px 18px -10px rgba(5, 2, 12, .7);
  --shadow-2: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px -22px rgba(5, 2, 12, .9);
  --shadow-3: 0 30px 80px -30px rgba(5, 2, 12, .95);
  --glow-pink: 0 10px 30px -10px rgba(234, 91, 154, .65);
  --glow-cyan: 0 0 24px rgba(120, 221, 235, .45);
  --glow-gold: 0 16px 40px -18px rgba(232, 199, 126, .55);

  /* motion */
  --t-fast: 180ms; --t-base: 240ms; --t-slow: 420ms; --t-reveal: 620ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* layers */
  --z-header: 50; --z-drawer: 80; --z-modal: 90; --z-toast: 100;

  /* rem, so the bar grows with the user's font size instead of squeezing its labels */
  --header-h: 4.5rem;
  /* writing direction helpers: +1 in LTR, -1 in RTL (for transforms, shadows, gradients) */
  --dir-x: 1;
  --to-inline-end: 90deg;
  --pos-inline-end: 100%;
  color-scheme: dark;
}
[dir="rtl"] { --dir-x: -1; --to-inline-end: 270deg; --pos-inline-end: 0%; }

/* Writing systems. The layout is script-agnostic; only scripts with different typographic
   rules get overrides: font fallbacks for glyphs the bundled Latin/Cyrillic fonts lack,
   no negative tracking for CJK and Arabic, and native line-breaking rules. */
:root[data-script="Jpan"], :root[data-script="Hans"], :root[data-script="Hant"], :root[data-script="Kore"] {
  --f-script: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans CJK JP', 'Noto Sans JP', 'PingFang SC', 'Microsoft YaHei', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans CJK KR';
  --f-body: 'Onest', var(--f-script), system-ui, sans-serif;
  --f-display: 'Unbounded', var(--f-script), system-ui, sans-serif;
  line-break: strict;
}
:root[data-script="Kore"] { word-break: keep-all; }
:root[data-script="Hebr"] {
  --f-script: 'Segoe UI', 'Arial Hebrew', 'Noto Sans Hebrew', Arial;
  --f-body: 'Onest', var(--f-script), system-ui, sans-serif;
  --f-display: 'Unbounded', var(--f-script), system-ui, sans-serif;
}
:root[data-script="Arab"] {
  --f-script: 'Segoe UI', 'Geeza Pro', 'Noto Sans Arabic', Tahoma;
  --f-body: 'Onest', var(--f-script), system-ui, sans-serif;
  --f-display: 'Unbounded', var(--f-script), system-ui, sans-serif;
}
/* Connected (Arabic) and ideographic scripts must not be tracked */
:root:is([data-script="Arab"], [data-script="Jpan"], [data-script="Hans"], [data-script="Hant"], [data-script="Kore"]) * { letter-spacing: normal !important; }
@media (max-width: 60rem) { :root { --header-h: 3.5rem; } }
