:root {
  /* Color Palette */
  --color-background: #050814;
  --color-background-elevated: #0b1022;
  --color-background-soft: #101629;
  --color-text: #f5f7ff;
  --color-text-muted: #9ba4d0;
  --color-primary: #ff375e; /* neon crimson accent */
  --color-primary-soft: rgba(255, 55, 94, 0.16);
  --color-primary-strong: #ff4b70;
  --color-accent-blue: #2dd4ff; /* tactical neon blue */
  --color-success: #22c55e;
  --color-warning: #facc15;
  --color-danger: #ef4444;

  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2933;
  --color-gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-display: "Orbitron", "Rajdhani", system-ui, sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing Scale (px) */
  --space-0: 0;
  --space-4: 0.25rem;  /* 4px */
  --space-8: 0.5rem;   /* 8px */
  --space-12: 0.75rem; /* 12px */
  --space-16: 1rem;    /* 16px */
  --space-20: 1.25rem; /* 20px */
  --space-24: 1.5rem;  /* 24px */
  --space-32: 2rem;    /* 32px */
  --space-40: 2.5rem;  /* 40px */
  --space-48: 3rem;    /* 48px */
  --space-64: 4rem;    /* 64px */
  --space-80: 5rem;    /* 80px */
  --space-96: 6rem;    /* 96px */

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows & Glows */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-neon-primary: 0 0 18px rgba(255, 55, 94, 0.75);
  --shadow-neon-blue: 0 0 18px rgba(45, 212, 255, 0.7);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --container-max-width: 1200px;
}

/* ========================================
   Reset / Normalize
   ======================================== */

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

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
}

button {
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
}

input,
textarea,
select {
  outline: none;
}

/* ========================================
   Base Styles
   ======================================== */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #151b32 0, #050814 50%, #01020a 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  min-height: 60vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  font-size: var(--font-size-3xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--space-16);
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(255, 55, 94, 0.75);
}

a:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}

strong,
b {
  font-weight: 600;
  color: var(--color-text);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

pre {
  padding: var(--space-16);
  border-radius: var(--radius-md);
  background: rgba(8, 13, 30, 0.9);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

hr {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  margin: var(--space-24) 0;
}

::selection {
  background: var(--color-primary);
  color: #ffffff;
}

/* ========================================
   Accessibility & Motion
   ======================================== */

:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 3px;
}

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

/* ========================================
   Utilities
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.section-padding {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
}

.section-padding-lg {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

/* Flex helpers */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-8 {
  gap: var(--space-8);
}

.gap-16 {
  gap: var(--space-16);
}

.gap-24 {
  gap: var(--space-24);
}

.gap-32 {
  gap: var(--space-32);
}

/* Grid helpers */

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Alignment & text utilities */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-text-muted);
}

/* Spacing utilities (margin/padding y only for brevity) */

.mt-16 {
  margin-top: var(--space-16);
}

.mt-24 {
  margin-top: var(--space-24);
}

.mt-32 {
  margin-top: var(--space-32);
}

.mb-16 {
  margin-bottom: var(--space-16);
}

.mb-24 {
  margin-bottom: var(--space-24);
}

.mb-32 {
  margin-bottom: var(--space-32);
}

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.py-24 {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.py-32 {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

/* Screen-reader only */

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

/* ========================================
   Components
   ======================================== */

/* Buttons: primary, secondary, ghost */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-blue));
  color: #ffffff;
  box-shadow: var(--shadow-neon-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-neon-primary), 0 0 25px rgba(45, 212, 255, 0.65);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 16px rgba(45, 212, 255, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 3px;
}

/* Form Inputs */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: rgba(11, 16, 34, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 1px rgba(45, 212, 255, 0.6);
  background-color: rgba(8, 13, 30, 1);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

/* Card Component: for guides, meta, team lineups */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  background: radial-gradient(circle at top left, rgba(45, 212, 255, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 55, 94, 0.16), transparent 60%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(45, 212, 255, 0.35), rgba(255, 55, 94, 0.35));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.card:hover::before {
  opacity: 0.35;
}

.card-header {
  margin-bottom: var(--space-16);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-8);
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

/* Tag / pill: useful for roles, regions, platforms */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.tag--primary {
  border-color: rgba(255, 55, 94, 0.8);
  background: rgba(255, 55, 94, 0.1);
  color: var(--color-primary-strong);
}

.tag--role {
  border-color: rgba(45, 212, 255, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-accent-blue);
}

/* Hero / immersive backdrop helpers */

.hero {
  position: relative;
  padding-top: var(--space-80);
  padding-bottom: var(--space-80);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 10%, rgba(45, 212, 255, 0.28), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(255, 55, 94, 0.3), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.22), transparent 60%);
  opacity: 0.8;
  filter: blur(4px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* Navigation base (for esports-style header) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(3, 7, 18, 0.96), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-primary));
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link--active {
  color: var(--color-primary);
}

/* Meta data strip: for game platform / region callouts */

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

/* ========================================
   Responsive Tweaks
   ======================================== */

@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  .section-padding-lg {
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }

  .site-header-inner {
    height: 3.75rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--font-size-5xl);
  }

  .hero {
    padding-top: var(--space-96);
    padding-bottom: var(--space-96);
  }
}
