/* Base layer
   Tokens, 1px gradient ring, logo lockup, type roles, living gradients. Everything below builds on these.
   Part of the ENVY visual layer: files are loaded in numeric order and later files win — keep the order. See ../../README.md */
/* ENVY visual layer — loaded after app.css, before motion.css.
   This is the "board": everything the designer tweaks on the mirror lives here, so app.css stays the untouched source.
   Contents: logo lockup · tokens · pill buttons · 1px gradient borders (Gradient/Border/01–03 from the UI Kit) ·
   glass/blur · rounded cards · hero overlay + dot grid. */
/* tokens (from Figma: UI Kit Gradient/Border/*, Button pill 9999) */
:root {
  --envy-radius-pill: 999px;
  --envy-radius-card: 28px;      /* showcase cards, big surfaces */
  --envy-radius-tile: 24px;      /* stat tiles */
  --envy-radius-menu: 20px;      /* popovers */
  --envy-radius-item: 14px;      /* rows inside popovers */
  /* Gradient/Border (UI Kit): the ring is faintly visible on one corner (top-left) and fades to almost nothing by the opposite one */
  --envy-gb-card: linear-gradient(135deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.07) 28%, rgba(255,255,255,.012) 62%, rgba(255,255,255,.012) 100%);
  /* stronger variant for small glass controls */
  --envy-gb-glass: linear-gradient(135deg, rgba(255,255,255,.36) 0%, rgba(255,255,255,.10) 30%, rgba(255,255,255,.015) 66%, rgba(255,255,255,.015) 100%);
  /* for light surfaces (stat tiles) */
  --envy-gb-light: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(0,0,0,.05) 28%, rgba(0,0,0,.008) 62%, rgba(0,0,0,.008) 100%);
  --envy-glass-bg: rgba(10, 14, 16, .42);
  --envy-glass-blur: blur(18px) saturate(160%);
}
/* logo lockup: hedgehog mark + ENVY wordmark (UI Kit › Logos › Logo/ENVY, mono white) */
.envy-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; line-height: 0; }
.envy-logo .envy-mark { width: 40px; height: 40px; display: block; flex: none; }
.envy-logo .envy-word { width: 74px; height: auto; display: block; flex: none; margin-top: 2px; }
@media (max-width: 767px) {
  .envy-logo .envy-mark { width: 34px; height: 34px; }
  .envy-logo .envy-word { width: 64px; }
}
[class*="_menuBtn_"], [class*="_langTrigger_"], [class*="_closeBtn_"], [class*="_play_"] { border-radius: 50% !important; }
@media (max-width: 767px) {
  :root { --envy-radius-card: 24px; --envy-radius-tile: 20px; }
}
html[lang=zh] h1, html[lang=zh] h2, html[lang=zh] h3 { letter-spacing: 0; }
/* footer: wordmark instead of text ENVY */
.envy-foot { display: inline-flex; align-items: center; gap: 10px; }
.envy-foot .envy-foot-word { display: block; width: 58px; height: auto; flex: none; opacity: .9; }
/* minimal interactive system: flat fills, no rings, no glow, one easing */
:root {
  --envy-fill: rgba(255,255,255,.08);
  --envy-fill-hover: rgba(255,255,255,.14);
  --envy-ease: cubic-bezier(.22, 1, .36, 1);
  --envy-ui-font: var(--envy-mono);
}
/* type roles (Medeo): Sans light for headings, Mono for buttons / small UI, Pixel for numbers heading recipe taken from the Medeo specimen: tight tracking on big sizes (-0.035em), tight leading; weight 600 (the specimen shows 300 but bolder reads better on the dark hero) */
h1, h2, h3, h4,
[class*="_title_1cp90"], [class*="_title_196mf"], [class*="_subtitle_196mf"],
[class*="_sectionTitle_"], [class*="_sectionTitlePrimary_"], [class*="_sectionTitleAccent_"],
[class*="_heading_"], [class*="_headingPrimary_"], [class*="_headingAccent_"], [class*="_headingLine_"],
[class*="_builtTitle"] {
  font-family: var(--envy-display) !important; font-weight: 600 !important; letter-spacing: -.03em; line-height: 1.06;
  font-optical-sizing: auto; text-transform: none !important;
}
