/* ======================================================
   CSGOEmpire — Shared Design System
   ====================================================== */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --clr-bg-primary: #0b0b13;
  --clr-bg-secondary: #12121f;
  --clr-bg-tertiary: #1a1a2e;
  --clr-bg-card: #16162a;
  --clr-bg-card-hover: #1e1e38;

  --clr-cta: #00c853;
  --clr-cta-hover: #00e676;
  --clr-cta-glow: rgba(0, 200, 83, .25);

  --clr-gold: #f5a623;
  --clr-gold-dim: #c9891e;
  --clr-amber: #ffc107;

  --clr-purple: #7c4dff;
  --clr-purple-dim: #5e35b1;

  --clr-red: #e53935;
  --clr-red-dim: #c62828;

  --clr-teal: #00bcd4;
  --clr-blue: #2979ff;

  --clr-text: #eaeaf0;
  --clr-text-muted: #8888a0;
  --clr-text-heading: #ffffff;

  --clr-border: rgba(255, 255, 255, .07);
  --clr-border-light: rgba(255, 255, 255, .12);

  /* Spacing */
  --sp-xs: .25rem;
  --sp-sm: .5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Typography */
  --ff-body: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --ff-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 2.75rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.25;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  /* Layout */
  --max-width: 72rem;
  --header-h: 3.75rem;

  /* Radii */
  --radius-sm: .375rem;
  --radius-md: .625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,.45);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.5);
  --shadow-glow-cta: 0 0 20px var(--clr-cta-glow);

  /* Transitions */
  --tr-fast: 150ms ease;
  --tr-base: 250ms ease;
  --tr-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--sp-lg));
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--clr-cta);
  text-decoration: none;
  transition: color var(--tr-fast);
}
a:hover {
  color: var(--clr-cta-hover);
}
a:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
button:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

/* ======================================================
   Header
   ====================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 19, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 32px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: var(--sp-xl);
}
.nav-link {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: var(--sp-sm) 0;
  position: relative;
  transition: color var(--tr-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-cta);
  transition: width var(--tr-base);
}
.nav-link:hover,
.nav-link.active {
  color: var(--clr-text-heading);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
}
.burger-line {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--tr-base), opacity var(--tr-base);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .burger-btn {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--clr-bg-secondary);
    border-bottom: 1px solid var(--clr-border);
    padding: var(--sp-lg);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--tr-base), opacity var(--tr-base);
    pointer-events: none;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    gap: var(--sp-md);
  }
  .nav-link {
    font-size: var(--fs-base);
    padding: var(--sp-sm) 0;
  }
}

/* ======================================================
   Breadcrumb
   ====================================================== */
.breadcrumb {
  padding-block: var(--sp-md);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
}
.breadcrumb-item a {
  color: var(--clr-text-muted);
}
.breadcrumb-item a:hover {
  color: var(--clr-text);
}
.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: var(--sp-sm);
  color: var(--clr-text-muted);
  opacity: .5;
}

/* ======================================================
   Hero Section
   ====================================================== */
.hero-section {
  position: relative;
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-4xl);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 77, 255, .12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 200, 83, .06) 0%, transparent 50%),
    var(--clr-bg-primary);
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--clr-border);
}

.hero-content {
  max-width: 52rem;
}

.hero-content h1 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-text-heading);
  margin-bottom: var(--sp-lg);
}
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: var(--fs-4xl);
  }
}

.hero-intro {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--clr-text);
  margin-bottom: var(--sp-2xl);
  max-width: 46rem;
}

/* ======================================================
   Buttons
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .875rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background var(--tr-fast), box-shadow var(--tr-fast), transform var(--tr-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-cta);
  color: #0b0b13;
  box-shadow: var(--shadow-glow-cta);
}
.btn-primary:hover {
  background: var(--clr-cta-hover);
  color: #0b0b13;
  box-shadow: 0 0 30px var(--clr-cta-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border-light);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.05);
  color: var(--clr-text-heading);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-base);
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ======================================================
   Content Sections
   ====================================================== */
.content-section {
  padding-block: var(--sp-3xl);
}
.content-section--alt {
  background: var(--clr-bg-secondary);
}

.content-section h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text-heading);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-lg);
}
@media (min-width: 768px) {
  .content-section h2 {
    font-size: var(--fs-3xl);
  }
}

.content-section h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-heading);
  margin-bottom: var(--sp-md);
  margin-top: var(--sp-2xl);
}

.content-section p {
  margin-bottom: var(--sp-md);
  max-width: 52rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* ======================================================
   Info Card
   ====================================================== */
.info-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  margin-top: var(--sp-2xl);
}

/* ======================================================
   Tables
   ====================================================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--sp-md);
}

table {
  min-width: 28rem;
}

th, td {
  padding: var(--sp-md) var(--sp-lg);
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
  font-size: var(--fs-sm);
}
th {
  color: var(--clr-text-heading);
  font-weight: var(--fw-semibold);
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}
td {
  color: var(--clr-text);
}
tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  table {
    min-width: 100%;
  }
  th, td {
    padding: var(--sp-sm) var(--sp-md);
    font-size: var(--fs-xs);
  }
}

/* ======================================================
   Promo Card
   ====================================================== */
.promo-card {
  margin-top: var(--sp-2xl);
  background: linear-gradient(135deg, rgba(124,77,255,.12), rgba(245,166,35,.08));
  border: 1px solid rgba(124,77,255,.25);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  text-align: center;
}
.promo-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-purple);
  background: rgba(124,77,255,.15);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-md);
}
.promo-code {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--clr-gold);
  margin-bottom: var(--sp-md);
  letter-spacing: .04em;
  user-select: all;
}
@media (max-width: 480px) {
  .promo-code {
    font-size: var(--fs-2xl);
  }
}
.promo-desc {
  color: var(--clr-text);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-xl) !important;
  max-width: none !important;
}

/* ======================================================
   Checklist
   ====================================================== */
.checklist {
  margin-top: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 14px;
  border: 2px solid var(--clr-cta);
  border-radius: var(--radius-sm);
  background: rgba(0,200,83,.1);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: calc(.45em + 3px);
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--clr-cta);
  border-bottom: 2px solid var(--clr-cta);
  transform: rotate(-45deg);
}

/* ======================================================
   FAQ
   ====================================================== */
.faq-section h2 {
  margin-bottom: var(--sp-2xl);
}
.faq-list {
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.faq-item {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--tr-fast);
}
.faq-item:hover,
.faq-item.is-open {
  border-color: var(--clr-border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-xl);
  text-align: left;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--clr-text-heading);
  background: none;
}
.faq-question:hover {
  color: var(--clr-cta);
}
.faq-icon {
  flex-shrink: 0;
  color: var(--clr-text-muted);
  transition: transform var(--tr-base), color var(--tr-fast);
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--clr-cta);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--tr-slow);
}
.faq-answer p {
  padding: 0 var(--sp-xl) var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  line-height: var(--lh-relaxed);
  max-width: none;
}

/* ======================================================
   Final CTA
   ====================================================== */
.final-cta-section {
  padding-block: var(--sp-4xl);
}
.final-cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(0,200,83,.08), rgba(124,77,255,.06));
  border: 1px solid rgba(0,200,83,.2);
  border-radius: var(--radius-xl);
  padding: var(--sp-3xl) var(--sp-xl);
}
.final-cta-heading {
  margin-bottom: var(--sp-md) !important;
}
.final-cta-card p {
  max-width: 40rem !important;
  margin-inline: auto;
  margin-bottom: var(--sp-2xl);
  font-size: var(--fs-md);
  color: var(--clr-text);
}

/* ======================================================
   Footer
   ====================================================== */
.site-footer {
  background: var(--clr-bg-secondary);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-3xl);
  padding-bottom: var(--sp-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid var(--clr-border);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.footer-logo {
  height: 28px;
  width: auto;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--clr-red);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--clr-red);
}

.footer-nav-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-text-heading);
  margin-bottom: var(--sp-md);
}
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.footer-nav-list a {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  transition: color var(--tr-fast);
}
.footer-nav-list a:hover {
  color: var(--clr-text);
}

.footer-support-text {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.footer-disclaimer {
  padding-top: var(--sp-xl);
}
.footer-disclaimer p {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-md);
}
.footer-note {
  opacity: .7;
}

/* ======================================================
   Scroll To Top
   ====================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--clr-bg-tertiary);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--tr-base), visibility var(--tr-base), transform var(--tr-base), background var(--tr-fast), color var(--tr-fast);
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--clr-cta);
  color: #0b0b13;
  border-color: var(--clr-cta);
}

/* ======================================================
   Utility / Page-specific helpers
   ====================================================== */

/* Numbered steps (for secondary pages) */
.numbered-steps {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}
.numbered-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.5rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
.numbered-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,200,83,.12);
  border: 1px solid rgba(0,200,83,.3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--clr-cta);
}

/* Comparison table highlight */
.table-highlight td:first-child {
  font-weight: var(--fw-medium);
  color: var(--clr-text-heading);
}

/* Page hero variant for secondary pages */
.page-hero {
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-2xl);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 77, 255, .08) 0%, transparent 60%),
    var(--clr-bg-primary);
  border-bottom: 1px solid var(--clr-border);
}
.page-hero h1 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text-heading);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-lg);
}
@media (min-width: 768px) {
  .page-hero h1 {
    font-size: var(--fs-4xl);
  }
}
.page-hero .hero-intro {
  font-size: var(--fs-md);
  color: var(--clr-text);
  line-height: var(--lh-relaxed);
  max-width: 46rem;
  margin-bottom: var(--sp-xl);
}

/* Legal page styles */
.legal-section h2 {
  font-size: var(--fs-xl);
}
@media (min-width: 768px) {
  .legal-section h2 {
    font-size: var(--fs-2xl);
  }
}

/* Troubleshooting table */
.trouble-table td:first-child {
  font-weight: var(--fw-medium);
  color: var(--clr-gold);
  white-space: nowrap;
}

/* Mid-page CTA block */
.mid-cta {
  text-align: center;
  padding: var(--sp-2xl);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  margin-block: var(--sp-2xl);
}
.mid-cta p {
  max-width: 36rem !important;
  margin-inline: auto;
  margin-bottom: var(--sp-lg);
}

/* Responsive helpers */
@media (max-width: 480px) {
  .container {
    padding-inline: var(--sp-md);
  }
  .content-section {
    padding-block: var(--sp-2xl);
  }
  .promo-card {
    padding: var(--sp-lg);
  }
  .faq-question {
    padding: var(--sp-md) var(--sp-lg);
  }
  .faq-answer p {
    padding: 0 var(--sp-lg) var(--sp-md);
  }
  .info-card {
    padding: var(--sp-lg);
  }
}

/* Print-friendly */
@media print {
  .site-header,
  .scroll-top-btn,
  .btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
  .content-section,
  .content-section--alt {
    background: #fff;
  }
}