/* KWPtje Landing Page Styles - Matching App Theme */

/* CSS Variables - Matching Flutter App Theme */
:root {
  /* Colors from app theme */
  --primary-green: #86A94D;
  --dark-background: #161512;
  --surface-background: #262522;
  --surface-secondary: #3A3833;
  --border-color: #4A4844;
  
  --text-primary: #FFFFFF;
  --text-secondary: #BABAB5;
  --text-tertiary: #8A8A84;
  
  --correct-green: #5FA55A;
  --error-red: #E85D4E;
  --accent-orange: #F09937;
  
  /* Grid colors */
  --cell-background: #2D2B28;
  --cell-border: #3F3D39;
  --cell-highlight: #4A6129;
  
  /* Spacing */
  --padding-small: 8px;
  --padding-default: 16px;
  --padding-large: 24px;
  --border-radius: 12px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--dark-background);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--padding-default);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(22, 21, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 72, 68, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--padding-default);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
}

.nav-logo {
  font-size: 28px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--dark-background) 0%, #1a1916 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(134, 169, 77, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--padding-default);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title-accent {
  color: var(--primary-green);
  display: block;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
}

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

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  transform: rotate(5deg);
  transition: transform 0.3s ease;
}

.phone-mockup:hover {
  transform: rotate(0deg) scale(1.05);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--dark-background);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crossword-demo {
  padding: 20px;
}

.crossword-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--cell-border);
  padding: 2px;
  border-radius: 8px;
}

.crossword-row {
  display: contents;
}

.cell {
  width: 32px;
  height: 32px;
  background: var(--cell-background);
  border: 1px solid var(--cell-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.cell.filled {
  background: var(--cell-highlight);
  color: var(--text-primary);
  animation: cellPulse 2s infinite;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: #7a9644;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(134, 169, 77, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

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

.btn-icon {
  font-size: 16px;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--surface-background);
  position: relative;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--padding-default);
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--surface-secondary);
  padding: 32px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(74, 72, 68, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-green);
}

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

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Download Section */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-background) 0%, #1a1916 100%);
  position: relative;
}

.download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 80%, rgba(134, 169, 77, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.download-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--padding-default);
  text-align: center;
}

.download-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.download-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--surface-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  min-width: 200px;
}

.store-button:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(134, 169, 77, 0.3);
}

.store-icon {
  width: 32px;
  height: 32px;
}

.store-icon svg {
  width: 100%;
  height: 100%;
}

.store-text {
  text-align: left;
}

.store-line1 {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.store-line2 {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--surface-background);
  border-top: 1px solid rgba(74, 72, 68, 0.3);
  padding: 40px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--padding-default);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.footer-logo {
  font-size: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(74, 72, 68, 0.3);
}

.footer-bottom p {
  color: var(--text-tertiary);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .phone-mockup {
    transform: rotate(0deg);
    width: 240px;
    height: 480px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .feature-card {
    padding: 24px;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .store-button {
    width: 100%;
    max-width: 280px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .section-title,
  .download-title {
    font-size: 32px;
  }
  
  .hero-description,
  .download-description {
    font-size: 16px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 13px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Smooth fade-in animations using transitions */

/* Elements that will be animated on scroll should start invisible */
.feature-card,
.download-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll Animations */
.fade-in-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

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