/* Design Tokens & CSS Variables derived from JSON Spec */
:root {
  --primary: #E74C3C;
  --primary-hover: #C0392B;
  --secondary-dark: #1C2538;
  --secondary-light: #2C3E50;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --gray-50: #F0F2F5;
  --gray-100: #E4E6EB;
  --gray-300: #B0B3B8;
  --gray-500: #6C757D;
  --gray-800: #343A40;
  --text-dark: #1A1A2E;
  --text-body: #4B5563;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50px;
  --font-family: 'Inter', 'Helvetica Neue', sans-serif;
  --container-max-width: 1200px;
  --section-padding-y: 80px;
  --grid-gap: 30px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text-body);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, p, span, a, label {
  color: var(--text-dark);
  font-weight: 700;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

h4 {
  font-size: 20px;
  line-height: 1.4;
}

h5 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-500);
}

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

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

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

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

.section-dark {
  background-color: var(--secondary-dark);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-light {
  background-color: var(--white);
}

.section-gray {
  background-color: var(--gray-50);
}

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

.max-width-700 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* Buttons & Interactive Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.3);
}

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #E74C3C;;
  color: #E74C3C;;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  background-color: var(--secondary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.brand-highlight {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: var(--secondary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  z-index: 999;
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  display: block;
  padding: 8px 0;
}

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

/* Hero Section & Form Widget */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(231, 76, 60, 0.15);
  color: var(--primary);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-headline {
  margin-top: 16px;
  margin-bottom: 20px;
}

.hero-subhead {
  font-size: 18px;
  color: var(--gray-300);
  margin-bottom: 32px;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.quote-widget-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 12px 32px var(--shadow-dark);
  color: var(--text-dark);
}

.widget-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.widget-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background-color: var(--gray-50);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

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

/* Feature & Service Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  width: 100%;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  width: 100%;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.hero-wrapper > *,
.game-reviews-grid > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 12px 28px var(--shadow-medium);
  transform: translateY(-4px);
  border-top: 4px solid var(--primary);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--gray-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 15px;
  color: var(--text-body);
}

/* Game Reviews Grid Requirement:
   2 columns in row on desktop/tablet, 1 column in mobile */
.game-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.game-review-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 6px 18px var(--shadow-medium);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.game-review-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.game-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.genre-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--gray-50);
  color: var(--secondary-light);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(231, 76, 60, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.game-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.game-summary {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 20px;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

/* Stats Counter Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  background-color: var(--secondary-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-300);
}

/* Team Cards */
.team-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 12px var(--shadow-light);
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: var(--secondary-light);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 28px;
  font-weight: 700;
}

.team-name {
  font-size: 20px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 14px;
  color: var(--text-body);
}

/* FAQ Accordion Component */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  box-shadow: 0 2px 6px var(--shadow-light);
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.accordion-header:hover {
  color: var(--primary);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 24px 20px 24px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* Page Banner (for inner pages) */
.page-banner {
  background-color: var(--secondary-dark);
  padding: 60px 0;
  color: var(--white);
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-banner p {
  color: var(--gray-300);
  font-size: 18px;
  max-width: 650px;
}

/* Footer */
.footer {
  background-color: var(--secondary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 30px 0;
  color: var(--gray-300);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray-300);
  max-width: 320px;
}

.footer-title {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: var(--gray-300);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

/* Inline SVG Icon Styles */
.svg-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Responsiveness & Breakpoints */
@media (max-width: 1024px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  
  .hero-wrapper {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  h1 { font-size: 30px; line-height: 1.2; word-break: break-word; }
  h2 { font-size: 24px; line-height: 1.3; word-break: break-word; }
  h3 { font-size: 20px; word-break: break-word; }
  h4 { font-size: 18px; word-break: break-word; }
  p, span, div, a { word-break: break-word; overflow-wrap: break-word; }
  
  .container {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .navbar-container .nav-menu,
  .navbar-container .nav-actions {
    display: none;
  }
  
  .hamburger-btn {
    display: block;
  }
  
  .grid-2,
  .grid-3,
  .grid-4,
  .hero-wrapper,
  .game-reviews-grid,
  .stats-grid,
  .footer-top {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > *,
  .hero-wrapper > *,
  .game-reviews-grid > * {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .quote-widget-card {
    padding: 20px;
  }
}
