/* ==========================================================================
   ATLAS ROLEPLAY - DESIGN SYSTEM & CORE TOKENS
   Modern Dark AAA Gaming Aesthetic with Atlas Blue Accent Spectrum
   ========================================================================== */

:root {
  /* Official Atlas Blue Spectrum */
  --atlas-blue: #4d8bf5;
  --atlas-blue-rgb: 77, 139, 245;
  --atlas-light-blue: #79aaff;
  --atlas-light-blue-rgb: 121, 170, 255;
  --atlas-vlight-blue: #a8c8ff;
  --atlas-vlight-blue-rgb: 168, 200, 255;
  --atlas-dark-blue: #225cc2;
  --atlas-dark-blue-rgb: 34, 92, 194;
  --atlas-deep-navy: #0d1e3d;

  /* Sophisticated Dark Base Foundation */
  --bg-primary: #050608;
  --bg-surface: #0a0d14;
  --bg-card: rgba(12, 16, 26, 0.75);
  --bg-card-hover: rgba(18, 24, 40, 0.85);
  --bg-glass: rgba(15, 20, 32, 0.6);
  --bg-elevated: #111724;
  --bg-overlay: rgba(5, 6, 8, 0.88);

  /* Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(77, 139, 245, 0.16);
  --border-active: rgba(77, 139, 245, 0.45);
  --border-glow: rgba(121, 170, 255, 0.8);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-accent: #79aaff;

  /* Radiant Glows & Shadows */
  --glow-subtle: 0 0 25px rgba(77, 139, 245, 0.15);
  --glow-medium: 0 0 40px rgba(77, 139, 245, 0.28);
  --glow-strong: 0 0 65px rgba(77, 139, 245, 0.45);
  --glow-text: 0 0 20px rgba(121, 170, 255, 0.4);
  --shadow-card: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
  --shadow-modal: 0 25px 70px -10px rgba(0, 0, 0, 0.85);

  /* Gradients */
  --grad-atlas: linear-gradient(135deg, #4d8bf5 0%, #225cc2 100%);
  --grad-atlas-glow: linear-gradient(135deg, #79aaff 0%, #4d8bf5 50%, #225cc2 100%);
  --grad-dark-surface: linear-gradient(180deg, rgba(16, 22, 36, 0.8) 0%, rgba(8, 11, 18, 0.95) 100%);
  --grad-hero-overlay: linear-gradient(180deg, rgba(5, 6, 8, 0.2) 0%, rgba(5, 6, 8, 0.7) 65%, #050608 100%);
  --grad-card-shine: linear-gradient(105deg, transparent 20%, rgba(121, 170, 255, 0.08) 50%, transparent 80%);

  /* Typography */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout & Sizing */
  --container-max: 1360px;
  --container-wide: 1560px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Animation Timings */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Resets & Global Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Custom Selection */
::selection {
  background: rgba(77, 139, 245, 0.35);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #1e283d;
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--atlas-blue);
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.font-display {
  font-family: var(--font-display);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Standard Wrapper */
.section {
  position: relative;
  padding: 120px 0;
  z-index: 10;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(77, 139, 245, 0.08);
  border: 1px solid rgba(77, 139, 245, 0.22);
  color: var(--atlas-light-blue);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--atlas-blue);
  box-shadow: 0 0 8px var(--atlas-blue);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title span.text-highlight {
  color: transparent;
  background: var(--grad-atlas-glow);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
}

/* Glow Background Ambient Utilities */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.45;
}

.ambient-glow.blue-primary {
  background: radial-gradient(circle, rgba(77, 139, 245, 0.35) 0%, rgba(34, 92, 194, 0.1) 60%, transparent 80%);
}

.ambient-glow.blue-cyan {
  background: radial-gradient(circle, rgba(121, 170, 255, 0.3) 0%, rgba(77, 139, 245, 0.08) 60%, transparent 80%);
}

/* Glassmorphic Panel Style */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass);
  box-shadow: var(--shadow-card), var(--glow-subtle);
}
