/* =====================================================
   Sparrow Landing Page Styles
   ===================================================== */

:root {
  --primary: #4FB6C2;
  --primary-dark: #3A9BA6;
  --primary-light: #6DCAD4;
  --secondary: #2B2B2B;
  --text: #1a1a2e;
  --text-light: #64748b;
  --background: #ffffff;
  --background-alt: #f8fafc;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* =====================================================
   Navigation
   ===================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo img {
  width: 36px;
  height: 36px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.github-link {
  display: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--gradient);
  color: white !important;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-cta:hover {
  box-shadow: 0 4px 15px rgba(79, 182, 194, 0.4);
  color: white !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(79, 182, 194, 0.1);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 182, 194, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(79, 182, 194, 0.5);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

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

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* Hero Image / Browser Mockup */
.hero-image {
  position: relative;
}

.browser-mockup {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid var(--border);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--background-alt);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }

.browser-url {
  flex: 1;
  padding: 8px 16px;
  background: white;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.browser-content {
  padding: 40px;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.popup-preview {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 280px;
  overflow: hidden;
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--gradient);
  color: white;
  font-weight: 600;
}

.popup-icon {
  width: 28px;
  height: 28px;
}

.popup-body {
  padding: 20px;
}

.summary-preview {
  margin-bottom: 20px;
}

.summary-line {
  height: 10px;
  background: var(--background-alt);
  border-radius: 5px;
  margin-bottom: 8px;
}

.summary-line.short { width: 60%; }
.summary-line.medium { width: 80%; }

.popup-buttons {
  display: flex;
  gap: 10px;
}

.preview-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: var(--gradient);
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.preview-btn.secondary {
  background: var(--background-alt);
  color: var(--text);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(79, 182, 194, 0.1) 0%, transparent 50%);
  z-index: -1;
}

/* =====================================================
   Highlights Section
   ===================================================== */

.highlights {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--background-alt) 100%);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.highlight-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: white;
  border-radius: 20px;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.highlight-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(79, 182, 194, 0.15);
  transform: translateY(-4px);
}

.highlight-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.highlight-icon.local-ai {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.highlight-icon.mcp {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.highlight-content {
  flex: 1;
}

.highlight-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(79, 182, 194, 0.1);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.highlight-card:first-child .highlight-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.highlight-card:last-child .highlight-badge {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.highlight-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.highlight-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.highlight-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.highlight-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(79, 182, 194, 0.1);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}

/* =====================================================
   Features Section
   ===================================================== */

.features {
  padding: 100px 0;
  background: var(--background-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
}

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

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 182, 194, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.feature-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, rgba(79, 182, 194, 0.05) 0%, rgba(79, 182, 194, 0.02) 100%);
  position: relative;
}

.feature-card.featured .feature-icon {
  background: var(--gradient);
  color: white;
}

.feature-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: var(--gradient);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* =====================================================
   How It Works Section
   ===================================================== */

.how-it-works {
  padding: 100px 0;
}

.steps {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 24px;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-content p {
  color: var(--text-light);
}

/* =====================================================
   Providers Section
   ===================================================== */

.providers {
  padding: 100px 0;
  background: var(--background-alt);
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.provider-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.provider-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin: 0 auto 20px;
}

.provider-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.provider-icon.openai {
  background: #FFFFFF;
  border: 1px solid var(--border);
}

.provider-icon.openrouter {
  background: #FFFFFF;
  border: 1px solid var(--border);
}

.provider-icon.lmstudio {
  background: #635BE1;
}

.provider-icon.ollama {
  background: #0A0A0A;
}

.provider-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.provider-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.provider-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.provider-tag.cloud {
  background: #dbeafe;
  color: #1d4ed8;
}

.provider-tag.local {
  background: #d1fae5;
  color: #047857;
}

/* =====================================================
   CTA Section
   ===================================================== */

.cta {
  padding: 100px 0;
  background: var(--gradient);
}

.cta-content {
  text-align: center;
  color: white;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta .btn-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
  padding: 48px 0;
  background: var(--secondary);
  color: white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* =====================================================
   Responsive Design
   ===================================================== */

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

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
    display: none;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

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

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

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

  .highlight-card {
    flex-direction: column;
    text-align: center;
  }

  .highlight-icon {
    margin: 0 auto;
  }

  .highlight-list {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

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

  .cta h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* =====================================================
   Animations
   ===================================================== */

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

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

.hero-image {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.feature-card {
  animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }

.highlight-card {
  animation: fadeInUp 0.6s ease-out both;
}

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