/* Tennie Design System - Landing Page Styles */

/* CSS Variables - Emotional Color Palette */
:root {
  /* Primary Tennis Energy */
  --tennis-green: #00E676;
  --tennis-green-light: #69F0AE;
  --tennis-green-dark: #00C853;
  
  /* Emotional Response Colors */
  --joy-yellow: #FFD700;
  --excitement-orange: #FF6B35;
  --confidence-blue: #4FC3F7;
  --motivation-purple: #9C27B0;
  --encouragement-pink: #E91E63;
  
  /* Duolingo-Inspired States */
  --streak-fire: #FF5722;
  --perfect-gold: #FFB300;
  --improvement-teal: #26A69A;
  --mastery-purple: #673AB7;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #EEEEEE;
  --grey-300: #E0E0E0;
  --grey-400: #BDBDBD;
  --grey-500: #9E9E9E;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-800: #424242;
  --grey-900: #212121;
  
  /* Typography */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
  
  /* Gradients */
  --gradient-achievement: linear-gradient(135deg, var(--perfect-gold), var(--joy-yellow));
  --gradient-streak: linear-gradient(135deg, var(--streak-fire), var(--excitement-orange));
  --gradient-progress: linear-gradient(135deg, var(--confidence-blue), var(--improvement-teal));
  --gradient-hero: linear-gradient(135deg, var(--tennis-green), var(--confidence-blue));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--grey-800);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--grey-900);
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  animation: gentle-bounce 2s ease-in-out infinite;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--grey-900);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  text-decoration: none;
  color: var(--grey-700);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--tennis-green);
}

.nav-mobile {
  display: none;
}

/* Hero Section */
.hero {
  padding: 120px 0 var(--spacing-2xl);
  background: linear-gradient(135deg, var(--grey-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23E0E0E0" opacity="0.3"/></svg>') repeat;
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.tennis-buddy-hero {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.tennis-buddy {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: gentle-bounce 3s ease-in-out infinite;
}

.tennis-buddy.celebrating {
  background: var(--gradient-achievement);
}

.buddy-face {
  font-size: 32px;
  z-index: 2;
}

.buddy-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--gradient-achievement);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-glow 2s ease-in-out infinite;
}

.speech-bubble {
  background: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: 250px;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--white);
}

.speech-bubble p {
  margin: 0;
  font-size: 14px;
  color: var(--grey-700);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--grey-600);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-hero);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover .btn-glow {
  left: 100%;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--tennis-green);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--grey-600);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: var(--grey-900);
  border-radius: 40px;
  padding: 20px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.app-screenshots {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.screenshot.active {
  opacity: 1;
}



.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.badge-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.badge-2 {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.badge-3 {
  bottom: 30%;
  left: 5%;
  animation-delay: 2s;
}

/* Animations */
@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes score-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(-10px) rotate(-5deg); }
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
}

.section-description {
  font-size: 1.25rem;
  color: var(--grey-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: var(--spacing-2xl) 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--grey-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-icon.ai-analysis {
  background: var(--gradient-progress);
}

.feature-icon.instant-feedback {
  background: var(--gradient-streak);
}

.feature-icon.progress-tracking {
  background: var(--gradient-achievement);
}

.feature-icon.gamified-learning {
  background: linear-gradient(135deg, var(--motivation-purple), var(--mastery-purple));
}

.feature-title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  color: var(--grey-900);
}

.feature-description {
  color: var(--grey-600);
  line-height: 1.7;
  font-size: 1.1rem;
  max-width: 320px;
}

/* How It Works Section */
.how-it-works {
  padding: var(--spacing-2xl) 0;
  background: var(--grey-50);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--spacing-xl);
  align-items: center;
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.step-description {
  color: var(--grey-600);
  line-height: 1.6;
}

.step-visual {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-achievement);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
}

/* Download Section */
.download {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--tennis-green) 0%, var(--confidence-blue) 100%);
  color: var(--white);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-2xl);
  align-items: center;
}

.download-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.download-description {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.download-btn img {
  height: 60px;
  transition: transform 0.3s ease;
}

.download-btn:hover img {
  transform: scale(1.05);
}

.download-note {
  opacity: 0.8;
  font-size: 0.9rem;
}

.tennis-racket-animation {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-achievement);
  animation: racket-glow 2s ease-in-out infinite;
}

.tennis-racket-animation::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--gradient-achievement);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-glow 2s ease-in-out infinite;
  z-index: -1;
}

.racket-container {
  position: relative;
  animation: racket-swing 2.5s ease-in-out infinite;
}

.tennis-racket {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}



/* Footer */
.footer {
  background: var(--grey-900);
  color: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-brand .brand-text {
  color: var(--white);
}

.footer-tagline {
  color: var(--grey-400);
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.footer-section a {
  display: block;
  color: var(--grey-400);
  text-decoration: none;
  margin-bottom: var(--spacing-xs);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--grey-700);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--grey-400);
}

.footer-disclaimer {
  background: var(--grey-800);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid var(--tennis-green);
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--grey-300);
}

.footer-disclaimer strong {
  color: var(--tennis-green);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--grey-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Additional Animations */
@keyframes racket-swing {
  0%, 100% {
    transform: scale(0.95) rotate(-8deg);
  }
  25% {
    transform: scale(1.0) rotate(0deg);
  }
  50% {
    transform: scale(1.05) rotate(8deg);
  }
  75% {
    transform: scale(1.0) rotate(0deg);
  }
}

@keyframes racket-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
  }
}



/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    padding: 0 var(--spacing-md);
  }

  .feature-card {
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .step-visual {
    margin: 0 auto;
  }

  .download-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .download-visual {
    order: -1;
    margin: 0 auto var(--spacing-lg) auto;
    display: flex;
    justify-content: center;
  }

  .tennis-racket-animation {
    width: 100px;
    height: 100px;
  }

  .download-buttons {
    justify-content: center;
    gap: var(--spacing-md);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero-stats {
    justify-content: center;
    gap: var(--spacing-lg);
  }

  /* Better section spacing on mobile */
  .section {
    padding: var(--spacing-2xl) 0;
  }

  .features {
    padding: var(--spacing-3xl) 0;
  }

  .how-it-works {
    padding: var(--spacing-2xl) 0 6rem 0;
  }

  .download {
    padding: 6rem 0 var(--spacing-2xl) 0;
  }

  /* Mobile-specific improvements */
  .container {
    padding: 0 var(--spacing-lg);
  }

  .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg) auto;
    flex-shrink: 0;
  }

  .feature-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
  }

  .feature-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--grey-600);
    max-width: 300px;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-md) auto;
  }

  .step-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
  }

  .step-description {
    font-size: 1rem;
  }

  .download-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
  }

  .download-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .feature-card {
    padding: var(--spacing-xl) var(--spacing-lg);
    min-height: 260px;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md) auto;
  }

  .feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
  }

  .feature-description {
    font-size: 1rem;
    max-width: 280px;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .tennis-racket-animation {
    width: 80px;
    height: 80px;
  }

  .download-title {
    font-size: 1.75rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .download-buttons .btn {
    width: 200px;
    justify-content: center;
  }
}

/* Download Section */
.download-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 20s infinite linear;
  pointer-events: none;
}

.download-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-lg) auto;
  position: relative;
  z-index: 1;
  display: block;
}
