/* PourSpeak Landing Page Styles */
/* v1.0.0 */

:root {
  /* Warm, earthy palette */
  --coffee: #4A3728;
  --coffee-light: #6B5344;
  --chai: #C17F59;
  --chai-light: #D4A574;
  --cream: #FDF6E3;
  --cream-dark: #F5E6D3;
  --gold: #D4A03C;
  --flame: #E07B39;
  --text: #2D2A26;
  --text-muted: #6B6560;
  
  /* Typography */
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  z-index: 100;
  background: linear-gradient(to bottom, var(--cream) 60%, transparent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--coffee);
  text-decoration: none;
}

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

.nav-link {
  color: var(--coffee-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 2rem;
  position: relative;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--coffee);
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--flame);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--coffee);
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(74, 55, 40, 0.3);
}

.cta-button:hover {
  background: var(--coffee-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(74, 55, 40, 0.4);
}

.cta-button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

.cta-arrow {
  transition: transform 0.2s;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

/* Hero Visual - Animated Cup */
.hero-visual {
  position: absolute;
  bottom: 15%;
  right: 10%;
  width: 120px;
  height: 120px;
  opacity: 0.15;
}

.cup {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 60px;
  background: var(--coffee);
  border-radius: 0 0 40px 40px;
}

.cup::before {
  content: '';
  position: absolute;
  right: -25px;
  top: 10px;
  width: 25px;
  height: 40px;
  border: 4px solid var(--coffee);
  border-left: none;
  border-radius: 0 20px 20px 0;
}

.steam {
  position: absolute;
  bottom: 70px;
  width: 8px;
  height: 40px;
  background: var(--chai-light);
  border-radius: 50%;
  opacity: 0;
  animation: steam 2s ease-out infinite;
}

.steam-1 { left: 30%; animation-delay: 0s; }
.steam-2 { left: 50%; animation-delay: 0.5s; }
.steam-3 { left: 70%; animation-delay: 1s; }

@keyframes steam {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-60px) scaleX(2);
    opacity: 0;
  }
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

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

/* Story Section */
.story {
  padding: 6rem 2rem;
  background: var(--coffee);
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.story-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.story-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
}

.story-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.story-phrase {
  font-style: italic;
  color: var(--chai-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.story-text {
  color: var(--cream-dark);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.story-language {
  display: inline-block;
  background: var(--chai);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Languages Section */
.languages {
  padding: 6rem 2rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--coffee);
  margin-bottom: 0.5rem;
}

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

.language-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.language-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.language-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--chai);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.language-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

.lang-script {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.lang-name {
  display: block;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.lang-lessons {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lang-flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.5;
}

/* Features Section */
.features {
  padding: 4rem 2rem;
  background: var(--cream-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 2rem;
}

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

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--coffee);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--chai) 0%, var(--flame) 100%);
  color: white;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-section .cta-button {
  background: white;
  color: var(--coffee);
}

.cta-section .cta-button:hover {
  background: var(--cream);
}

/* Footer */
.footer {
  background: var(--coffee);
  color: var(--cream);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  
  .hero {
    padding: 5rem 1.5rem 2rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .story-container {
    grid-template-columns: 1fr;
  }
  
  .language-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .language-card {
    padding: 1.5rem 1rem;
  }
  
  .lang-script {
    font-size: 2rem;
  }
}

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