/* ==========================================================================
   HIXSIRO — Design Tokens
   Premium dark-glass identity built from the brand mark: a blue wireframe
   globe on black. Blue carries the "international network" idea; a single
   muted gold accent is reserved for top-tier badge/rank moments only, so it
   reads as "earned" rather than decorative.
   ========================================================================== */

:root {
  /* ---- Surface ---- */
  --bg-void: #05070c;
  --bg-void-2: #080b13;
  --bg-surface: #0c1019;
  --bg-glass: rgba(255, 255, 255, 0.045);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-glass-strong: rgba(255, 255, 255, 0.16);

  /* ---- Brand blue ---- */
  --blue-1: #2e6bff;
  --blue-2: #6fb1ff;
  --blue-3: #9fd0ff;
  --blue-deep: #0a1f4d;
  --blue-glow: rgba(46, 107, 255, 0.35);

  /* ---- Luxury accent (sparing) ---- */
  --gold-1: #cba135;
  --gold-2: #f0d381;
  --gold-glow: rgba(203, 161, 53, 0.35);

  /* ---- Text ---- */
  --text-primary: #f4f6fa;
  --text-secondary: #c3cadb;
  --text-muted: #8891a6;
  --text-faint: #565f74;

  /* ---- State ---- */
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;

  /* ---- Type ---- */
  --font-display: "Outfit", "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-fa: "Vazirmatn", "Manrope", sans-serif;

  /* ---- Radius / shadow / motion ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow-blue: 0 0 40px var(--blue-glow);
  --shadow-glow-gold: 0 0 40px var(--gold-glow);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 600ms;

  --header-h: 72px;
}

html[lang="fa"] {
  --font-active: var(--font-fa);
}
html:not([lang="fa"]) {
  --font-active: var(--font-body);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-active);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.01em;
}

html:not([lang="fa"]) h1,
html:not([lang="fa"]) h2,
html:not([lang="fa"]) h3,
html:not([lang="fa"]) h4,
html:not([lang="fa"]) .display {
  font-family: var(--font-display);
}

p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

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

::selection {
  background: var(--blue-1);
  color: #fff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: var(--border-glass-strong);
  border-radius: var(--r-full);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
