/* ===== ECHO SHOWCASE - MINIMAL TECH DEMO ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Minimal color palette */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #06b6d4;
  --success: #10b981;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border: #e2e8f0;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo {
  font-size: 1.5rem;
}

.nav-logo-icon {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.nav-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.nav-login-btn:hover svg {
  transform: translateX(2px) translateY(-2px);
}

.nav-login-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--bg-primary);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: var(--space-xs) var(--space-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--text-primary);
  color: var(--text-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid var(--text-primary);
}

.cta-button:hover {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.cta-button.secondary:hover {
  border-color: var(--text-primary);
}

/* === PHONE DEMO === */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 380px;
  height: 760px;
  background: var(--text-primary);
  border-radius: 50px;
  padding: 16px;
  box-shadow: var(--shadow-xl);
  border: 4px solid #1e293b;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}

.phone-header {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}

.phone-name {
  flex: 1;
}

.phone-title {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
}

.phone-status {
  color: var(--success);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.phone-messages {
  padding: var(--space-md);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.message {
  max-width: 85%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  background: var(--primary);
  color: var(--text-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message.assistant {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-item {
  margin-bottom: var(--space-sm);
}

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

.voice-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: var(--space-xs);
}

.voice-bar {
  width: 3px;
  height: 12px;
  background: currentColor;
  border-radius: 2px;
  animation: voiceWave 1s ease-in-out infinite;
}

.voice-bar:nth-child(1) { animation-delay: 0s; }
.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }

@keyframes voiceWave {
  0%, 100% { height: 8px; }
  50% { height: 16px; }
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-secondary);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

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

.step-card {
  background: var(--bg-primary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.step-icon-wrapper {
  margin-bottom: var(--space-md);
}

.step-icon-svg {
  color: var(--primary);
  margin: 0 auto;
  display: block;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* === DAY TIMELINE === */
.day-timeline {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-primary);
}

.timeline-list {
  max-width: 900px;
  margin: var(--space-2xl) auto 0;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline-time {
  width: 80px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  text-align: right;
  padding-right: var(--space-sm);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  position: absolute;
  left: 105px;
  top: 6px;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  background: var(--bg-secondary);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.timeline-content:hover {
  transform: translateX(4px);
  border-color: var(--primary);
}

.timeline-action {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.timeline-result {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.footer-logo {
  font-size: 1.5rem;
}

.footer-logo-icon {
  color: var(--primary);
}

.footer-description {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-tech {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .tech-stack {
    justify-content: center;
  }

  .hero-phone {
    margin-top: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: var(--space-sm);
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .nav-login-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .nav-login-btn span {
    display: none;
  }

  .phone-mockup {
    width: 340px;
    height: 680px;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list::before {
    left: 75px;
  }

  .timeline-dot {
    left: 70px;
  }

  .timeline-time {
    width: 60px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .phone-mockup {
    width: 300px;
    height: 600px;
    padding: 12px;
  }

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

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.6s ease-out;
}

.hero-phone {
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.step-card {
  animation: fadeInUp 0.5s ease-out backwards;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }

.timeline-item {
  animation: fadeInUp 0.5s ease-out backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
