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

:root {
  --bg-primary: #0a0e17;
  --bg-surface: #111827;
  --bg-surface-hover: #1a2332;
  --blue-primary: #3b82f6;
  --blue-accent: #60a5fa;
  --blue-dark: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Background particle canvas */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow layers */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 85% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 25% at 50% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* ========== PAGE LAYOUT ========== */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section-compact {
  padding: 32px 0;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  text-align: center;
  padding: 32px 0 16px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-banner {
  max-width: 300px;
  margin: 0 auto 12px;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* ========== SOCIALS ROW ========== */
.socials-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.socials-row a {
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
}

.socials-row a:hover {
  color: var(--blue-accent);
  transform: translateY(-2px);
}

/* ========== INFO LINK (Read Before You Join) ========== */
.info-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.info-link:hover {
  border-color: var(--blue-primary);
  background: var(--bg-surface-hover);
  color: var(--blue-accent);
}

.info-link svg {
  flex-shrink: 0;
}

/* ========== PACKAGES ========== */
.packages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition);
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.package-row:hover {
  border-color: var(--blue-primary);
  background: rgba(26, 35, 50, 0.8);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.package-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.package-emoji {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.package-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.package-detail {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.package-price {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-accent);
  line-height: 1.3;
  margin-top: 2px;
}

.package-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-join {
  padding: 10px 20px;
  background: var(--blue-dark);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-join:hover {
  background: var(--blue-primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.btn-info {
  padding: 10px 14px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-info:hover {
  border-color: var(--blue-primary);
  color: var(--blue-accent);
  background: var(--blue-glow);
}

/* ========== TESTIMONIALS ========== */
.testimonials-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonial-chip {
  padding: 20px 24px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.testimonial-chip:hover {
  border-color: var(--blue-primary);
}

.testimonial-chip p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 8px;
}

.testimonial-chip span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ========== BANNER LINKS (Read Before You Join + Results) ========== */
.banner-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========== RACING MULTI-BUTTONS ========== */
.racing-actions {
  flex-direction: column;
  gap: 4px;
}

.btn-racing {
  padding: 8px 14px;
  font-size: 0.8rem;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.racing-more-info {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.racing-more-info-mobile {
  display: none;
}

/* ========== RESULTS ========== */
.results-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#results {
  text-align: center;
}

/* ========== FOOTER ========== */
.footer {
  margin-top: 40px;
  padding: 32px 0 24px;
  border-top: 1px solid var(--border-color);
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 16px;
}

.footer-disclaimer a {
  color: var(--text-secondary);
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .hero-banner {
    max-width: 240px;
  }

  .package-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .package-actions {
    width: 100%;
  }

  .btn-join {
    flex: 1;
  }

  .btn-info {
    flex: 1;
    justify-content: center;
  }

  .racing-more-info {
    display: none;
  }

  .racing-more-info-mobile {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
    margin-top: -2px;
  }

  .racing-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .btn-racing {
    flex: 1;
    min-width: 0;
  }
}
