/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a0e27;
  --navy-light: #111638;
  --cherry: #e63946;
  --cherry-hover: #d62839;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray: #e9ecef;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --text-light: #ffffff;
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  background: var(--navy);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--cherry);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cherry);
  border-radius: 1px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230,57,70,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 .highlight {
  color: var(--cherry);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--cherry);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--cherry-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230,57,70,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--text-light);
  background: rgba(255,255,255,0.05);
}

.btn-outline-dark {
  background: transparent;
  color: var(--cherry);
  border: 2px solid var(--cherry);
}

.btn-outline-dark:hover {
  background: var(--cherry);
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-dark {
  background: var(--navy);
  color: var(--text-light);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 2.2rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.6);
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: rgba(230,57,70,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ===== THREE COLUMN GRID ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--cherry);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== QUIZ SECTION ===== */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--gray);
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--cherry);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.quiz-progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.quiz-question {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-option {
  padding: 14px 20px;
  border: 2px solid var(--gray);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
  text-align: left;
  background: var(--white);
  font-family: var(--font);
}

.quiz-option:hover {
  border-color: var(--cherry);
  background: rgba(230,57,70,0.03);
}

.quiz-option.selected {
  border-color: var(--cherry);
  background: rgba(230,57,70,0.08);
  font-weight: 500;
}

.quiz-option.correct {
  border-color: #28a745;
  background: rgba(40,167,69,0.08);
}

.quiz-option.wrong {
  border-color: #dc3545;
  background: rgba(220,53,69,0.08);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-btn-row {
  display: flex;
  justify-content: flex-end;
}

.quiz-result {
  text-align: center;
  padding: 20px 0;
}

.quiz-result h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.quiz-result .score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--cherry);
  margin: 16px 0;
}

.quiz-result p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--navy);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat h3 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cherry);
  margin-bottom: 4px;
}

.stat p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cherry);
}

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

.form-group .error-msg {
  color: #dc3545;
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #dc3545;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success .checkmark {
  width: 72px;
  height: 72px;
  background: rgba(40,167,69,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.form-success h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

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

/* ===== KNOWLEDGE / ACCORDION ===== */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background var(--transition);
  user-select: none;
}

.accordion-header:hover {
  background: var(--gray-light);
}

.accordion-arrow {
  font-size: 0.8rem;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== MOBILE GAME PAGE ===== */
.game-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a1040 100%);
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.game-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230,57,70,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.game-phone-mockup {
  width: 200px;
  height: 360px;
  background: #1a1a2e;
  border-radius: 28px;
  border: 3px solid rgba(255,255,255,0.15);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.game-phone-mockup::before {
  content: '';
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  position: absolute;
  top: 12px;
}

.game-phone-inner {
  font-size: 3rem;
  text-align: center;
  color: var(--cherry);
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--text-light);
  transition: all var(--transition);
}

.store-badge:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

.store-badge .store-icon {
  font-size: 1.5rem;
}

.store-badge .store-text {
  text-align: left;
  line-height: 1.2;
}

.store-badge .store-text small {
  font-size: 0.7rem;
  opacity: 0.7;
  display: block;
}

.store-badge .store-text span {
  font-weight: 600;
  font-size: 0.95rem;
}

.game-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.game-feature {
  text-align: center;
  padding: 32px 24px;
}

.game-feature-icon {
  width: 72px;
  height: 72px;
  background: rgba(230,57,70,0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.game-feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.game-feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== ABOUT VALUES ===== */
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--cherry);
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--navy);
  padding: 130px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 60px 0 0;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.footer h4 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-disclaimer {
  background: rgba(255,255,255,0.03);
  padding: 16px 0;
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.5;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--cherry) 0%, #c1121f 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--cherry);
  font-weight: 700;
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .game-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 130px 0 70px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cards-grid,
  .grid-3,
  .grid-2,
  .steps,
  .game-features {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quiz-container {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-hero {
    padding: 110px 0 40px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
