/* ScorX Website Stylesheet - v1.0 */
/* Based on ScorX Brand Guidelines from Theme.swift */

/* ===== CSS VARIABLES - ScorX Brand Colors ===== */
:root {
  /* Primary Brand Colors */
  --scorx-turquoise: #00D4C4;
  --scorx-bright-turquoise: #1FEDD8;
  --scorx-dark-turquoise: #00A896;
  --scorx-deep-navy: #0F2A44;

  /* Neutral Colors */
  --scorx-off-white: #F8F9FA;
  --scorx-charcoal: #2C3E50;
  --scorx-medium-gray: #7F8C8D;
  --scorx-light-gray: #BDC3C7;

  /* Status Colors */
  --scorx-success-green: #27AE60;
  --scorx-warning-orange: #F39C12;
  --scorx-error-red: #E74C3C;

  /* Layout Constants */
  --card-spacing: 18px;
  --horizontal-inset: 16px;
  --card-corner-radius: 20px;
  --button-corner-radius: 14px;

  /* Typography */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Roboto', sans-serif;
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-text);
  color: var(--scorx-charcoal);
  background-color: var(--scorx-off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--scorx-deep-navy);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.375rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--scorx-charcoal);
  font-size: 1.0625rem;
  line-height: 1.7;
}

a {
  color: var(--scorx-turquoise);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--scorx-bright-turquoise);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: linear-gradient(135deg, var(--scorx-deep-navy) 0%, rgba(15, 42, 68, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 212, 196, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--scorx-bright-turquoise);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--scorx-off-white);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--scorx-turquoise), var(--scorx-bright-turquoise));
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--scorx-bright-turquoise);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--scorx-off-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg,
    var(--scorx-deep-navy) 0%,
    #164059 40%,
    var(--scorx-dark-turquoise) 90%,
    var(--scorx-bright-turquoise) 100%
  );
  color: white;
  padding: 140px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(31, 237, 216, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 196, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--scorx-off-white);
  margin-bottom: 2.5rem;
  font-weight: 400;
  opacity: 0.95;
}

.hero .cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--button-corner-radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--scorx-turquoise), var(--scorx-bright-turquoise));
  color: white;
  box-shadow: 0 8px 24px rgba(0, 212, 196, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--scorx-bright-turquoise), var(--scorx-turquoise));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 196, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* App Store Badge */
.app-store-badge {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.app-store-badge img {
  height: 60px;
  width: auto;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  background: var(--scorx-deep-navy);
  color: var(--scorx-off-white);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark p {
  color: var(--scorx-off-white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--scorx-medium-gray);
  max-width: 700px;
  margin: -40px auto 60px;
}

/* ===== CARDS & FEATURES ===== */
.features-grid,
.sports-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card,
.sport-card,
.pricing-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--card-corner-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 212, 196, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.sport-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--scorx-turquoise), var(--scorx-bright-turquoise));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover,
.sport-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 212, 196, 0.15);
  border-color: rgba(0, 212, 196, 0.3);
}

.feature-card:hover::before,
.sport-card:hover::before {
  transform: scaleX(1);
}

.feature-icon,
.sport-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3,
.sport-card h3 {
  margin-bottom: 1rem;
  color: var(--scorx-deep-navy);
}

.feature-card p,
.sport-card p {
  color: var(--scorx-charcoal);
  line-height: 1.6;
}

/* ===== PRICING SECTION ===== */
.pricing-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--scorx-turquoise);
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 212, 196, 0.2);
}

.pricing-badge {
  background: linear-gradient(135deg, var(--scorx-turquoise), var(--scorx-bright-turquoise));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--scorx-turquoise);
  margin: 1.5rem 0;
  font-family: var(--font-display);
}

.price-period {
  font-size: 1rem;
  color: var(--scorx-medium-gray);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--scorx-light-gray);
  color: var(--scorx-charcoal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--scorx-success-green);
  font-weight: 700;
  font-size: 1.25rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.coming-soon-badge {
  background: var(--scorx-warning-orange);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== STATS SECTION ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
  margin: 4rem 0;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--scorx-turquoise);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-item p {
  color: var(--scorx-medium-gray);
  font-size: 1.125rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--scorx-deep-navy);
  color: var(--scorx-off-white);
  padding: 60px 2rem 30px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--scorx-bright-turquoise);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--scorx-off-white);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--scorx-bright-turquoise);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--scorx-medium-gray);
  font-size: 0.875rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 120px 1.5rem 60px;
    min-height: 70vh;
  }

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

  .hero .tagline {
    font-size: 1.25rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--scorx-deep-navy);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

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

  .menu-toggle {
    display: block;
  }

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

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .features-grid,
  .sports-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  section {
    padding: 60px 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

  .price {
    font-size: 2.5rem;
  }

  .stat-item h3 {
    font-size: 2.5rem;
  }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.trust-item {
  text-align: center;
  color: var(--scorx-off-white);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== TRUST SIGNALS ===== */
.trust-signals p {
  color: var(--scorx-off-white);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  opacity: 0.9;
}

/* ===== STEPS GRID ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.step-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--card-corner-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 212, 196, 0.1);
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--scorx-turquoise), var(--scorx-bright-turquoise));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 212, 196, 0.3);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 212, 196, 0.15);
}

/* ===== SPORTS SHOWCASE ===== */
.sports-showcase {
  margin-top: 3rem;
}

.sports-category {
  margin-bottom: 3rem;
}

.sports-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sport-card-mini {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sport-card-mini:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  border-color: var(--scorx-turquoise);
}

.sport-card-mini .sport-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.sport-card-mini h4 {
  color: var(--scorx-off-white);
  font-size: 1rem;
  margin: 0;
}

/* ===== PRICING GRID SIMPLE ===== */
.pricing-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-badge-alt {
  background: var(--scorx-medium-gray);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-features-simple {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-features-simple li {
  padding: 0.75rem 0;
  color: var(--scorx-charcoal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features-simple li::before {
  content: '✓';
  color: var(--scorx-success-green);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Smooth scroll offset for fixed header */
html {
  scroll-padding-top: 100px;
}

/* ===== MOBILE RESPONSIVE UPDATES ===== */
@media (max-width: 768px) {
  .trust-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .trust-item {
    font-size: 0.8rem;
  }

  .sports-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .sport-card-mini {
    padding: 1rem 0.75rem;
  }

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

@media (max-width: 480px) {
  .trust-bar {
    grid-template-columns: 1fr;
  }
}
