/* ============================================
   Pocket Football Tactician - Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --deep-green: #30360E;
  --deep-green-light: #3d4512;
  --olive: #787F56;
  --olive-light: #8a9166;
  --clay-beige: #E2D4B9;
  --clay-beige-light: #EDE5D4;
  --white: #FFFFFF;
  --gray-50: #fafaf9;
  --gray-100: #f5f5f4;
  --gray-200: #e7e5e4;
  --gray-300: #d6d3d1;
  --gray-500: #78716c;
  --gray-700: #44403c;
  --gray-900: #1c1917;
  --success: #22c55e;
  --error: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  background: var(--deep-green);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.9;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--olive);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.nav-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo-sub {
  font-size: 0.65rem;
  opacity: 0.7;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-badge {
  background: var(--olive);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

.btn-primary:hover {
  background: var(--olive-light);
  border-color: var(--olive-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--deep-green);
  border-color: var(--deep-green);
}

.btn-outline:hover {
  background: var(--deep-green);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--deep-green-light) 100%);
  padding: 10rem 0 6rem;
  color: var(--white);
  text-align: center;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero h1 span {
  color: var(--clay-beige);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--clay-beige);
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Section Styling
   ============================================ */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--deep-green);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 6rem 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--clay-beige-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--deep-green);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
  padding: 6rem 0;
  background: var(--clay-beige-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

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

.pricing-card.featured {
  border: 3px solid var(--olive);
  transform: scale(1.05);
  z-index: 1;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--olive);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  color: var(--deep-green);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--deep-green);
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
}

.pricing-desc {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card ul li {
  padding: 0.6rem 0;
  color: var(--gray-700);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--olive);
  font-weight: bold;
  flex-shrink: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding: 5rem 0;
  background: var(--deep-green);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.15rem;
  color: var(--clay-beige);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ============================================
   Download Page
   ============================================ */
.download-hero {
  padding: 10rem 0 6rem;
  background: var(--clay-beige-light);
  text-align: center;
}

.download-hero h1 {
  color: var(--deep-green);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.download-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

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

.download-card.featured {
  border: 3px solid var(--olive);
}

.download-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  color: var(--deep-green);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.download-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.download-info h3 {
  color: var(--deep-green);
  margin-bottom: 1.5rem;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.requirements-grid h4 {
  color: var(--olive);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.requirements-grid p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ============================================
   Internal Testing Page
   ============================================ */
.internal-hero {
  padding: 10rem 0 6rem;
  background: var(--clay-beige-light);
  text-align: center;
}

.internal-hero h1 {
  color: var(--deep-green);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.qr-container {
  background: var(--white);
  display: inline-block;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.qr-code {
  width: 250px;
  height: 250px;
  display: block;
}

.qr-label {
  margin-top: 1rem;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.app-link-container {
  margin: 2rem 0;
}

.app-url {
  margin-top: 1rem;
  color: var(--gray-500);
  font-size: 0.85rem;
  word-break: break-all;
  font-family: monospace;
}

.test-checklist {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
  text-align: left;
}

.test-checklist h3 {
  color: var(--deep-green);
  margin-bottom: 1.5rem;
  text-align: center;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.checklist-item .check {
  color: var(--olive);
  font-weight: bold;
}

.api-test {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
}

.api-test h3 {
  color: var(--deep-green);
  margin-bottom: 1rem;
}

.api-test pre {
  background: var(--gray-100);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  text-align: left;
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
  padding: 10rem 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page .container {
  max-width: 500px;
}

.error-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.error-page h1 {
  font-size: 8rem;
  color: var(--olive);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.35rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--deep-green);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--clay-beige);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-brand .nav-logo {
    justify-content: center;
  }
  
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .error-page h1 {
    font-size: 5rem;
  }
}
