/* ==========================================================================
   BEGEADS – design tokens
   Values are taken from the Figma file "BEGEADS - ESENIX"
   (page "Concept Working Revision 2", frames "Homepage" 1440px).

   Stylesheets, in cascade order:
     tokens.css      fonts, colours, sizes, easing, per-view themes
     base.css        reset, accessibility helpers, typography
     layout.css      header, sections, hero shell, footer
     components.css  buttons, audience switch, marquee, FAQ, social proof
     sections.css    the content sections of both views
     effects.css     JS-driven presentation (reveal, spotlight, carousels, loader, cursor)
     pages.css       legal pages and 404 (sub pages only)

   Breakpoints (media queries cannot read custom properties; assets/js/env.js mirrors them):
     1180px narrow desktop · 960px tablet · 640px phone · 400px / 360px small phones
   ========================================================================== */

/* PP Neue Corp is used in Figma. If it is installed / licensed it is picked up
   via local(); otherwise Archivo (variable width) stands in. */
/* Archivo (SIL Open Font License), self-hosted – no requests to Google */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900; font-stretch: 62% 100%; font-style: normal; font-display: swap;
  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: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 900; font-stretch: 62% 100%; font-style: normal; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Begeads Display";
  src: local("PP Neue Corp Narrow Ultrabold"), local("PPNeueCorp-NarrowUltrabold"), local("PP Neue Corp Narrow");
  font-weight: 800;
}
@font-face {
  font-family: "Begeads Text";
  src: local("PP Neue Corp Normal Medium"), local("PPNeueCorp-NormalMedium"), local("PP Neue Corp Normal");
  font-weight: 500;
}

:root {
  --lime: #e6fe2c;
  --lime-pale: #eeecb4;
  --olive: #9f9a10;

  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;

  --font-display: "Begeads Display", "Archivo", "Arial Narrow", sans-serif;
  --font-text: "Begeads Text", "Archivo", system-ui, sans-serif;

  --header-h: 80px;
  --gutter: clamp(16px, 4vw, 80px);
  --radius-btn: 12px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Section headline sizes (Figma 80 / 60 / 52 / 40), fluid below 1440px */
  --fs-h1: clamp(3rem, 1.4rem + 5.6vw, 6.25rem);
  --fs-xl: clamp(3rem, 1.2rem + 6.4vw, 7.5rem);
  --fs-lg: clamp(2.5rem, 1.2rem + 4.4vw, 5.5rem);
  --fs-md: clamp(2.375rem, 1.2rem + 4vw, 5rem);
  --fs-sm: clamp(2.5rem, 1.2rem + 4.6vw, 5.75rem);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* ---------- Per-view themes (html[data-view] is set by the view switch) ---------- */
html[data-view="brands"] {
  --bg: var(--neutral-950);
  --surface: var(--neutral-950);
  --text: var(--neutral-50);
  --heading: rgb(245 245 245 / .9);
  --muted: var(--neutral-300);
  --muted-strong: var(--neutral-200);
  --header-bg: linear-gradient(90deg, rgb(53 53 53 / .6), rgb(53 53 53 / .2));
  --dot: rgb(255 255 255 / .2);
  --focus: var(--lime);
  --faq-border: var(--neutral-800);
  --faq-body: var(--neutral-300);
  --footer-link: var(--neutral-200);
  --tagline: linear-gradient(90deg, var(--neutral-200), var(--lime));
  --glass-bg: rgb(23 23 23 / .5);
  --glass-solid: rgb(18 18 18 / .72);
  --glass-edge: rgb(255 255 255 / .08);
  --glass-highlight: rgb(255 255 255 / .1);
  --glass-hover: rgb(255 255 255 / .07);
  --spot-color: 230 254 44;
  --accent-ui: var(--lime);
  --accent-ink: var(--neutral-900);
  --spot-strength: .22;
  --header-shadow: 0 12px 40px rgb(0 0 0 / .45);
  color-scheme: dark;
}
html[data-view="creators"] {
  --bg: var(--neutral-100);
  --surface: var(--neutral-50);
  --text: var(--neutral-900);
  --heading: rgb(28 25 23 / .9);
  --muted: var(--neutral-700);
  --muted-strong: var(--neutral-800);
  --header-bg: linear-gradient(90deg, rgb(205 205 205 / .6), rgb(205 205 205 / .2));
  --dot: rgb(0 0 0 / .16);
  --focus: var(--neutral-900);
  --faq-border: var(--neutral-200);
  --faq-body: var(--neutral-700);
  --footer-link: var(--neutral-800);
  --tagline: linear-gradient(90deg, var(--neutral-900), var(--olive));
  --glass-bg: rgb(255 255 255 / .55);
  --glass-solid: rgb(250 250 250 / .78);
  --glass-edge: rgb(0 0 0 / .06);
  --glass-highlight: rgb(255 255 255 / .9);
  --glass-hover: rgb(0 0 0 / .045);
  --spot-color: 190 200 20;
  --accent-ui: #7c7700;
  --accent-ink: #fff;
  --spot-strength: .16;
  --header-shadow: 0 12px 40px rgb(80 80 40 / .12);
  color-scheme: light;
}

/* ---------- Animatable custom properties ---------- */
@property --spot { syntax: "<number>"; inherits: true; initial-value: 0; }     /* card spotlight strength */
@property --pulse { syntax: "<number>"; inherits: false; initial-value: 0; }   /* CTA pulse ring */
@property --fade-l { syntax: "<length>"; inherits: false; initial-value: 0px; } /* testimonials edge fades */
@property --fade-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
