/* =====================================================================
   WASIED · Design tokens (extends Beggin DS)
   ===================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('JetBrains Mono'), local('SF Mono'), local('Menlo');
}

:root {
  /* Surfaces */
  --surface-0: #0A0D14;
  --surface-1: #11151D;
  --surface-2: #181D27;
  --surface-3: #232936;
  --surface-4: #2E3544;

  --bg-0: var(--surface-0); --bg-1: var(--surface-1); --bg-2: var(--surface-1);
  --bg-3: var(--surface-2); --bg-4: var(--surface-3);

  /* Foreground */
  --fg-1: #F3F4F6;
  --fg-2: #B3B8C2;
  --fg-3: #7A8291;
  --fg-4: #4A5060;
  --fg-inv: #0A0D14;

  /* Borders */
  --border-1: rgba(255,255,255,0.06);
  --border-2: rgba(255,255,255,0.10);
  --border-3: rgba(255,255,255,0.18);

  /* Accent - indigo */
  --accent:      #8FA8FF;
  --accent-soft: rgba(143,168,255,0.10);
  --accent-glow: rgba(143,168,255,0.22);
  --blue-300: #B5C5FF;
  --blue-400: #8FA8FF;
  --blue-500: #8FA8FF;
  --blue-600: #6F8AE8;

  /* Service identifiers */
  --service-hosting:  #67E8F9; /* cyan */
  --service-orders:   #6EE7A7; /* green */
  --service-formations: #C4B5FD; /* purple */
  --service-certifs:  #8FA8FF; /* indigo */
  --service-addons:   #FBBF24; /* amber */

  /* Game-state / semantics */
  --cash:  #6EE7A7;
  --hp:    #FB7185;
  --xp:    #FBBF24;
  --vip:   #C4B5FD;
  --glow:  #8FA8FF;

  /* Typography */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px;
  --fs-15: 15px; --fs-18: 18px; --fs-20: 20px; --fs-22: 22px; --fs-28: 28px;
  /* Marketing display sizes */
  --fs-36: 36px; --fs-44: 44px; --fs-56: 56px; --fs-72: 72px; --fs-96: 96px;

  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  --tracking-tight: -0.02em;
  --tracking-snug:  -0.01em;
  --tracking-normal: 0;
  --tracking-display: -0.035em;

  /* Spacing */
  --space-1: 4px; --space-2: 6px; --space-3: 8px; --space-4: 10px;
  --space-5: 12px; --space-6: 14px; --space-7: 16px; --space-8: 18px;
  --space-9: 20px; --space-10: 22px; --space-12: 24px; --space-14: 28px;
  --space-16: 32px; --space-18: 36px;

  /* Radii */
  --r-1: 4px; --r-2: 6px; --r-3: 7px; --r-4: 8px; --r-5: 10px;
  --r-6: 12px; --r-7: 14px; --r-8: 18px; --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 24px 48px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.45);
  --shadow-window: 0 50px 100px rgba(0,0,0,0.6), 0 0 80px rgba(143,168,255,0.04);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms; --dur-base: 160ms; --dur-slow: 220ms; --dur-page: 260ms;

  --ambient:
    radial-gradient(ellipse 900px 500px at 85% -5%, rgba(143,168,255,0.07), transparent 60%),
    radial-gradient(ellipse 700px 400px at 5% 110%, rgba(110,231,167,0.04), transparent 60%);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--surface-0); color-scheme: dark; }
body {
  font-family: var(--font-body);
  background: var(--surface-0);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

img { display: block; max-width: 100%; }

/* ---------- Live pulse ---------- */
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 4px transparent; opacity: 0.55; }
}
/* ---------- Status dot (static - no blink) ---------- */
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 4px transparent; opacity: 0.55; }
}
.live-dot { /* kept as class hook; intentionally not animated */ }

/* ---------- Scrollbar ---------- */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 10px;
  border: 2px solid var(--surface-0);
}
*::-webkit-scrollbar-thumb:hover { background: var(--surface-4); }

/* ---------- Selection ---------- */
::selection { background: var(--accent-glow); color: var(--fg-1); }

/* ---------- Utility ---------- */
.numeric { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.tracking-tight { letter-spacing: var(--tracking-tight); }
.tracking-display { letter-spacing: var(--tracking-display); }

/* ---------- Marketing-grade headings ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
}

/* ---------- Anim helpers ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-fadeup { animation: fadeUp 600ms var(--ease-out) backwards; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
.anim-slide-right { animation: slideInRight 320ms var(--ease-out) backwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.anim-fade { animation: fadeIn 400ms var(--ease-out) both; }

/* Console caret blink */
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.caret { animation: caret 1s steps(1) infinite; }

/* Soft accent breath used behind hero */
@keyframes breath {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
.breath { animation: breath 6s ease-in-out infinite; }

/* Marquee for logo strip */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-inner { animation: marquee 40s linear infinite; }

/* Disable for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Container utility */
.wcontainer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1400px) {
  .wcontainer { max-width: 1320px; }
}

/* Tweaks density override */
[data-density="compact"] { --pad-section: 80px; }
[data-density="comfy"] { --pad-section: 140px; }
:root { --pad-section: 110px; }

/* Light mode (optional, hook for tweak) */
[data-theme="light"] {
  --surface-0: #FAFAFB;
  --surface-1: #FFFFFF;
  --surface-2: #F4F5F8;
  --surface-3: #E7E9EE;
  --surface-4: #D5D8E0;
  --fg-1: #0D1018;
  --fg-2: #4A5060;
  --fg-3: #7A8291;
  --fg-4: #B3B8C2;
  --fg-inv: #FFFFFF;
  --border-1: rgba(13,16,24,0.06);
  --border-2: rgba(13,16,24,0.10);
  --border-3: rgba(13,16,24,0.18);
}
