@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Light Mode Theme Variables Only */
  --color-bg: hsl(225, 20%, 98%);
  --color-surface: hsl(0, 0%, 100%);
  --color-surface-hover: hsl(225, 20%, 94%);
  --color-text: hsl(225, 25%, 12%);
  --color-text-muted: hsl(225, 12%, 42%);
  
  --color-primary: hsl(210, 100%, 48%);      /* Premium Blue */
  --color-primary-glow: hsla(210, 100%, 48%, 0.12);
  --color-secondary: hsl(265, 90%, 55%);     /* Deep Purple */
  --color-secondary-glow: hsla(265, 90%, 55%, 0.12);
  
  --gradient-accent: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-glass: linear-gradient(135deg, hsla(0, 0%, 100%, 0.8), hsla(225, 20%, 97%, 0.6));
  
  --shadow-glass: 0 12px 36px 0 rgba(10, 20, 50, 0.05);
  --border-glass: 1px solid hsla(225, 20%, 15%, 0.08);
  
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 30px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 400;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-surface-hover);
  border-radius: 5px;
  border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-glass);
  background: var(--gradient-glass);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-link img {
  height: 40px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo-link:hover img {
  transform: scale(1.03);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.05), transparent);
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: hsla(210, 100%, 50%, 0.25);
  box-shadow: 0 20px 40px rgba(10, 20, 50, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  gap: 0.6rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 6px 20px var(--color-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-primary-glow);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--gradient-glass);
  border: var(--border-glass);
  color: var(--color-text);
  backdrop-filter: blur(10px);
}

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

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.branding-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.branding-logo {
  max-height: 100px;
  width: auto;
  margin-bottom: 0.5rem;
}

.branding-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* App Showcase Section - Grid Library */
.showcase {
  padding: 1rem 0 6rem;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

/* App Catalog Grid Layout */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1050px;
  margin: 0 auto;
}

.app-card-small {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.2rem;
  height: 100%;
}

.app-icon-container-small {
  position: relative;
  margin-bottom: 1.25rem;
}

.app-icon-shadow-small {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gradient-accent);
  filter: blur(12px);
  opacity: 0.3;
  z-index: 0;
}

.app-icon-small {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  z-index: 1;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-card-small:hover .app-icon-small {
  transform: translateY(-2px) scale(1.02);
}

.app-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: hsla(210, 100%, 50%, 0.08);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  margin-bottom: 1rem;
}

.app-status-badge.coming-soon {
  background: hsla(280, 85%, 60%, 0.08);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.app-card-small h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.app-tagline-small {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.app-card-small p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.app-card-small .btn {
  width: 100%;
  margin-top: auto;
}

/* Store Lock Landing Page Layout */
.score-lock-hero {
  padding: 7rem 0 3rem;
  text-align: center;
}

.score-lock-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .score-lock-details {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* App Mockup Rendering */
.mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 450px;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: #ffffff;
  border-radius: 40px;
  border: 12px solid #1a202c;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.1), inset 0 0 10px rgba(0,0,0,0.02);
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #1a202c;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 100;
}

.mockup-screen {
  flex: 1;
  background: radial-gradient(circle at top, hsl(225, 20%, 98%), hsl(0, 0%, 100%));
  color: var(--color-text);
  padding: 2.5rem 1.5rem 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: inherit;
}

.mockup-header {
  text-align: center;
  margin-top: 1rem;
}

.mockup-header .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.mockup-header .logo-subtext {
  font-size: 0.65rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mockup-preview-game {
  margin: 1.5rem 0;
  border-radius: 12px;
  background: hsl(225, 20%, 94%);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-match-title {
  font-size: 0.6rem;
  text-align: center;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-matchup {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 35%;
}

.mockup-team-icon {
  width: 28px;
  height: 28px;
  background: var(--gradient-accent);
  border-radius: 50%;
}

.mockup-team-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text);
}

.mockup-vs {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.mockup-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mockup-input {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mockup-colon {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.mockup-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-button {
  background: var(--gradient-accent);
  color: white;
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

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

/* Badge Links */
.badge-links-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.download-badge-link {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.download-badge-link:hover {
  transform: translateY(-3px) scale(1.02);
}

.download-badge-link img {
  height: 52px;
  width: auto;
  border-radius: 8px;
}

.device-compatibility {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.compatibility-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.compatibility-item i {
  font-size: 1.2rem;
  color: var(--color-primary);
}

/* Rules Section */
.rules-section {
  padding: 5rem 0;
  border-top: var(--border-glass);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.rule-card {
  padding: 2.2rem;
}

.rule-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.rule-number {
  background: var(--gradient-accent);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rule-card-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.rule-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Beta Dialog Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  backdrop-filter: blur(8px);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-fast);
  text-align: center;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--color-text);
}

/* Footer styling */
footer {
  padding: 5rem 0 3rem;
  border-top: var(--border-glass);
  background: var(--color-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col a, .footer-col span {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.form-control, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.form-control::placeholder {
  color: var(--color-text-muted);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-select option {
  background: var(--color-bg);
  color: var(--color-text);
}

/* Mobile Viewport Spacing & Sizing Optimizations */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-col {
    grid-column: span 1 !important;
  }
  .footer-col a, .footer-col span {
    word-break: break-word;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }
  .glass-card {
    padding: 1.5rem;
  }
  .app-card-small {
    padding: 1.5rem;
  }
  .rule-card {
    padding: 1.5rem;
  }
  .score-lock-hero {
    padding: 5rem 0 2rem;
  }
  .hero-app-logo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 18px !important;
  }
  .rules-section {
    padding: 3rem 0;
  }
  .rules-grid {
    margin-top: 2rem;
  }
}
