:root {
  /* =============================
   * Colors
   * ============================= */
  --color-bg: #050816;
  --color-bg-elevated: #0b1020;
  --color-surface: #111827;
  --color-surface-soft: #1f2933;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-border: #1f2937;

  --color-primary: #6366f1;
  --color-primary-soft: rgba(99, 102, 241, 0.14);
  --color-primary-strong: #4f46e5;

  --color-success: #22c55e;
  --color-warning: #facc15;
  --color-danger: #ef4444;

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

  /* =============================
   * Typography
   * ============================= */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

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

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

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

  /* =============================
   * Radius
   * ============================= */
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* =============================
   * Shadows
   * ============================= */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.25);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.55);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.75);

  /* =============================
   * Transitions
   * ============================= */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 240ms ease-out;
}

/* =============================
 * Reset / Normalize
 * ============================= */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

button, input, select, textarea {
  margin: 0;
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
}

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

/* Respect reduced motion preferences */
@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;
  }
}

/* =============================
 * Base Styles
 * ============================= */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  color: #f9fafb;
}

h1 {
  font-size: clamp(2.25rem, 2.2rem + 1vw, 3rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.75rem, 1.7rem + 0.6vw, 2.25rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

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

p + p {
  margin-top: -0.25rem;
}

a {
  cursor: pointer;
  transition: color var(--transition-base),
              opacity var(--transition-fast),
              text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

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

code, pre {
  font-family: var(--font-mono);
}

::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #f9fafb;
}

/* =============================
 * Accessibility Helpers
 * ============================= */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

/* =============================
 * Layout Utilities
 * ============================= */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: 1120px;
}

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

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

/* Flex helpers */
.flex {
  display: flex;
}

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

/* Grid helpers */
.grid {
  display: grid;
}

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

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

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

/* Width helpers */
.w-full {
  width: 100%;
}

/* Alignment helpers */
.text-center {
  text-align: center;
}

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

/* Spacing utilities (selected) */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

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

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

.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

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

/* Buttons - suited for hero CTAs like "Learn More" / "Play Now" */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  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);
  background: var(--color-surface);
  color: var(--color-text) !important;
}

.button--primary {
  background: linear-gradient(135deg, var(--color-primary-strong), var(--color-primary));
  border-color: var(--color-primary-strong);
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.45);
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(79, 70, 229, 0.55);
}

.button--ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
}

.button--ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.7);
}

.button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.button[disabled],
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Inputs & Form Elements - used on Contact page */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-200);
}

.form-help {
  margin-top: 0.35rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Card - for feature blocks, updates, mechanics */
.card {
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base),
              background-color var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(129, 140, 248, 0.6);
}

.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.card__meta {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* Tag-like label, e.g. for update type or feature category */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Simple hero layout helper for homepage */
.hero {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.hero__content {
  max-width: 40rem;
}

.hero__eyebrow {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.hero__title {
  font-size: clamp(2.5rem, 2.2rem + 1.4vw, 3.25rem);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

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

/* Status helpers for update / news list */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--color-text-muted);
}

.status-pill--success {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--color-success);
}

.status-pill--warning {
  border-color: rgba(250, 204, 21, 0.5);
  color: var(--color-warning);
}

.status-pill--danger {
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--color-danger);
}

/* Simple table base styling (for mechanics / systems overviews) */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th,
.table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.table th {
  text-align: left;
  font-weight: 600;
  color: var(--gray-200);
  background-color: rgba(15, 23, 42, 0.8);
}

.table tr:nth-child(even) td {
  background-color: rgba(15, 23, 42, 0.55);
}

.table tr:hover td {
  background-color: rgba(55, 65, 81, 0.35);
}

/* Footer base */
.site-footer {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.12), transparent 60%),
              #020617;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: var(--color-primary);
}

/* Header base */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.7));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.nav-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: 0.4rem 0.15rem;
  transition: color var(--transition-base),
              border-color var(--transition-base);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #e5e7eb;
}

.nav-link--active {
  color: #e5e7eb;
  border-bottom-color: var(--color-primary);
}

/* End of base.css */
