/* Global Styles */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-light: #d1d5db;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Header */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo-section {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 500;
  letter-spacing: 0.5px;
}

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

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  position: relative;
}

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

.nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav {
    gap: 15px;
    font-size: 12px;
  }

  .header .container {
    flex-direction: column;
    gap: 15px;
  }
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(139, 92, 246, 0.05)
  );
  border-bottom: 1px solid var(--border-color);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h2 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-content p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

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

.btn-large {
  padding: 15px 40px;
  font-size: 16px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* Section Styles */
section {
  padding: 70px 0;
}

section h2 {
  font-size: 40px;
  margin-bottom: 10px;
  text-align: center;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 50px;
}

/* Daily Routes */
.daily-routes {
  background-color: var(--bg-light);
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.route-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.route-day {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 14px;
}

.route-difficulty {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.route-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.route-card p {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.route-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.game-tag {
  background-color: var(--bg-light);
  color: var(--text-gray);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.route-stats {
  display: flex;
  justify-content: space-between;
  color: var(--text-gray);
  font-size: 13px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

/* Game Categories Timeline */
.game-categories {
  background-color: white;
}

.timeline {
  margin-top: 50px;
  position: relative;
  padding: 20px 0;
}

.timeline-item {
  margin-bottom: 50px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-marker {
  z-index: 2;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: white;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.timeline-content {
  flex: 1;
  padding: 20px;
  background-color: var(--bg-light);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-content {
  border-left: none;
  border-right: 4px solid var(--primary-color);
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.timeline-content p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    margin-left: 60px;
  }

  .timeline-marker {
    left: 0;
    transform: translateX(-50%);
  }

  .timeline-content {
    border-left: 4px solid var(--primary-color);
    border-right: none;
  }
}

/* Player Tips */
.player-tips {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(139, 92, 246, 0.05)
  );
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tip-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.tip-number {
  display: inline-block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
  opacity: 0.2;
  margin-bottom: 10px;
}

.tip-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.tip-card p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
}

/* Comparison Table */
.comparison {
  background-color: white;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table thead {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.comparison-table th {
  padding: 18px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.comparison-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.comparison-table tbody tr:hover {
  background-color: var(--bg-light);
}

.comparison-table .highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* FAQ */
.faq {
  background-color: var(--bg-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--bg-light);
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.faq-question:hover {
  background-color: rgba(99, 102, 241, 0.05);
}

.faq-question h3 {
  font-size: 16px;
  color: var(--text-dark);
  margin: 0;
}

.faq-toggle {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 20px;
  background: white;
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.active .faq-question {
  background-color: rgba(99, 102, 241, 0.1);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Friends Feature */
.friends-feature {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.05),
    rgba(99, 102, 241, 0.05)
  );
}

.friends-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.friends-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.friends-feature h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.friends-text p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.friends-features {
  list-style: none;
}

.friends-features li {
  padding: 10px 0;
  color: var(--text-gray);
  font-size: 15px;
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .friends-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 42px;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.3s ease;
}

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

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

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }

  section h2 {
    font-size: 28px;
  }

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

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

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