/* Echo Landing Page - Minimalist Design System */

/* CSS Custom Properties */
:root {
  /* Typography */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  
  /* Colors - Warm Neutrals + Emerald */
  --color-bg: #FDFCFA;
  --color-bg-alt: #FAF9F6;
  --color-surface: #FFFFFF;
  --color-text: #2D2D2D;
  --color-text-muted: #6B6B6B;
  --color-text-light: #9A9A9A;
  --color-primary: #10B981;
  --color-primary-dark: #059669;
  --color-primary-light: #D1FAE5;
  --color-border: #E5E5E5;
  --color-border-light: #F0F0F0;
  
  /* Spacing System (8px base) */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;
  --spacing-4xl: 128px;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 252, 250, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(253, 252, 250, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
}

.nav-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

/* Hero Section (5%) */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4xl) var(--spacing-lg) var(--spacing-3xl);
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.hero-title .highlight {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Telegram CTA Button */
.telegram-cta-wrapper {
  position: relative;
  display: inline-block;
}

.telegram-cta-glow {
  position: absolute;
  inset: -2px;
  background: radial-gradient(ellipse, rgba(84, 169, 235, 0.3) 0%, transparent 70%);
  border-radius: var(--radius-md);
  filter: blur(8px);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.telegram-cta-wrapper:hover .telegram-cta-glow {
  opacity: 0.8;
}

.telegram-cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 16px 32px;
  background: #54a9eb;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(84, 169, 235, 0.3);
  z-index: 1;
  text-decoration: none;
  min-width: 240px;
}

.telegram-cta-button:hover {
  transform: translateY(-2px);
  background: #4a98d4;
  box-shadow: 0 6px 16px rgba(84, 169, 235, 0.4);
  text-decoration: none;
  color: white;
}

.telegram-cta-icon {
  width: 24px;
  height: 24px;
}

.telegram-cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

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

/* Section Styles */
.section {
  padding: var(--spacing-4xl) var(--spacing-lg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
}

.section-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Pain Section (15%) */
.pain-section {
  background: white;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.pain-card {
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

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

.pain-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-md);
}

.pain-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.testimonial-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
}

.testimonial-quote {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.testimonial-author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Benefits Section (20%) */
.benefits-section {
  background: var(--color-bg-alt);
}

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

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-md);
}

.benefit-title {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-sm);
}

.benefit-description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* Product Section (40%) */
.product-section {
  background: white;
}

.product-timeline {
  max-width: 900px;
  margin: 0 auto var(--spacing-4xl);
  position: relative;
}

.product-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-4xl);
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-time {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  background: var(--color-surface);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  padding: var(--spacing-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.timeline-visual {
  width: 45%;
  text-align: center;
  font-size: var(--text-4xl);
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.chat-bubble {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
  margin-top: var(--spacing-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}

.chat-bubble.user {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: 2px;
  margin-left: auto;
  border: none;
}

.dashboard-preview {
  text-align: center;
  margin-top: var(--spacing-4xl);
}

.dashboard-mockup {
  background: #1F2937;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  box-shadow: var(--shadow-xl);
  color: white;
  text-align: left;
}

.mockup-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.mockup-card {
  background: rgba(255,255,255,0.05);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: var(--text-sm);
}

/* Offer Section (20%) */
.offer-section {
  background: var(--color-bg-alt);
}

.offer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.cost-comparison-box {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.comparison-title {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.cost-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.cost-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
}

.cost-row.total {
  border-bottom: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-top: var(--spacing-sm);
}

.pain-label {
  text-align: center;
  margin-top: var(--spacing-lg);
  color: #EF4444;
  font-weight: 500;
  font-size: var(--text-sm);
}

.offer-box {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.best-value-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--color-primary);
  color: white;
  padding: 4px 40px;
  transform: rotate(45deg);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.offer-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-sm);
}

.offer-price {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-display);
}

.offer-price span {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-weight: 500;
}

.offer-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.offer-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.savings-label {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  text-align: center;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.offer-guarantee {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--spacing-md);
}

/* Footer */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-3xl) var(--spacing-lg) var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-description {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .offer-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .product-timeline::before {
    left: 20px;
  }
  
  .timeline-item, 
  .timeline-item:nth-child(odd), 
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 40px;
    align-items: flex-start;
  }
  
  .timeline-time {
    left: 20px;
    transform: translateX(-50%) translateY(0);
    top: 0;
  }
  
  .timeline-content {
    width: 100%;
    text-align: left !important;
  }
  
  .timeline-visual {
    display: none;
  }
  
  .mockup-grid {
    grid-template-columns: 1fr;
  }
  
  .pain-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
