/* ============================================
   GAMEON — GLOBAL STYLES & DESIGN TOKENS
   ============================================ */

/* Bebas Neue (display/nav) + Barlow Condensed (headings) + Barlow (body) + Urbanist (form desc) */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Urbanist:wght@300;400;500;600&family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700;1,800&family=Barlow:wght@300;400;500;600;700&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Colors — from Figma */
  --red:          #DE0B1B;   /* Figma exact: Rectangle 11, Rectangle 100 active text */
  --red-hover:    #B50917;
  --black:        #000000;
  --white:        #FFFFFF;
  --off-white:    #FEFEFE;
  --gray-900:     #111111;
  --gray-800:     #1a1a1a;
  --gray-400:     #888888;
  --border:       rgba(255, 255, 255, 0.10);

  /* Fonts */
  --font-display: 'Bebas Neue', sans-serif;     /* nav, buttons, labels */
  --font-heading: 'Barlow Condensed', sans-serif; /* section headings */
  --font-body:    'Barlow', sans-serif;           /* paragraphs */

  /* Layout */
  --max-w:    1440px;
  --nav-h:    5.625rem;  /* 90px ÷ 16 — scales with viewport */
  --side-pad: 4.375rem;  /* 70px ÷ 16 — consistent left/right page margin */

  /* Easing */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s ease;
  --t-med:  0.32s ease;
  --t-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/*
  PROPORTIONAL VIEWPORT SCALING
  ─────────────────────────────
  Strategy: Treat the Figma 1440px canvas as the reference.
  We set html font-size so that 1rem = 1px at 1440px viewport.
  Formula: font-size = 100vw / 1440 * 16
  → At 1440px: 100/1440 * 1440 = 100 → 100/100 * 16 = 16px... 
  Simpler: font-size = (100/1440)vw so 1rem = (viewport/1440)px

  Actually we use: font-size = 0.0694444vw  (= 1/1440 * 100vw)
  So 1rem tracks 1px on the Figma canvas proportionally.
  clamp() prevents sizes from getting unusably tiny or huge.
*/
html {
  scroll-behavior: smooth;
  /*
    PROPORTIONAL SCALING — 1rem = 1px on Figma 1440px canvas
    Formula: 100vw/1440 * 16 = 1.111vw → equals 16px at 1440px
    clamp floor 6px → scaling stops at 540px viewport
    clamp ceiling 17px → won't enlarge past 1530px
  */
  font-size: clamp(6px, calc(100vw / 1440 * 16), 17px);
}

/* ── MOBILE BASE ──
   Below 768px, reset to a clean 10px base so mobile
   media-query rem values are predictable (1rem = 10px).
   Individual section overrides in home.css handle the rest. */
@media (max-width: 768px) {
  html { font-size: 10px; }
}
body  {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img   { max-width: 100%; height: auto; display: block; }
/* Hero bg image overrides — must fill container exactly */
.hero-bg img { max-width: none; width: 100%; height: 100%; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 1024px) { .container { padding: 0 28px; } }
@media (max-width: 640px)  { .container { padding: 0 20px; } }

/* ── HEADINGS ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2.2rem); }

/* ── UTILITY ── */
.red   { color: var(--red); }
.muted { color: var(--gray-400); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
