/* ==========================================================================
   HostCS.ro — Design tokens & base
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-LatinExt.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Base palette */
  --bg: #0a0a0c;
  --bg-elevated: #131317;
  --bg-elevated-2: #1b1b21;
  --border: #26262e;
  --text: #f5f5f7;
  --text-muted: #9b9ba5;
  --text-dim: #6b6b76;

  /* Accent — gold/yellow */
  --accent: #f5b400;
  --accent-hover: #ffcc33;
  --accent-dim: rgba(245, 180, 0, 0.12);
  --accent-ink: #1a1200;

  /* Per-game accents — matched to each game's own key art, not interchangeable */
  --game-cs16: #f0a800;
  --game-cs16-2: #4a3300;
  --game-cs2: #ff6a1f;
  --game-cs2-2: #431c00;
  --game-csgo: #5b8ab0;
  --game-csgo-2: #0f1e28;

  /* Status */
  --success: #35c56a;
  --danger: #e5484d;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(245, 180, 0, 0.25), 0 8px 32px rgba(245, 180, 0, 0.12);

  /* Radii — sharp, not pill-shaped: broadcast/HUD feel, not generic SaaS */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --radius-full: 999px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Roboto Mono", "SF Mono", Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --topbar-h: 40px;
  --header-h: 76px;
}

* , *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  padding: 0;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  text-transform: uppercase;
  margin-top: 14px;
}

.section-sub {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Shared keyframes — used across hero/cards/sections/buttons */
@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 46px 46px; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245, 180, 0, 0.25), 0 8px 32px rgba(245, 180, 0, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(245, 180, 0, 0.5), 0 8px 40px rgba(245, 180, 0, 0.28); }
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 180, 0, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(245, 180, 0, 0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 992px) {
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
}
