/* ==========================================================================
   Ethio-Viral Lovable Extension — Official Design System
   Exact Spec Matching User Design Screenshots (Clean Light/Dark Hybrids)
   ========================================================================== */

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

:root {
  /* Ethio Brand Palette */
  --ethio-green: #009639;
  --ethio-yellow: #FFD100;
  --ethio-red: #EF212D;
  
  --brand-purple: #4C00B0;
  --brand-purple-hover: #3c008c;
  --brand-purple-light: #f3e8ff;
  --brand-purple-text: #6b21a8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark-footer: #20005C;
  
  --border-light: #e2e8f0;
  --border-focus: rgba(76, 0, 176, 0.4);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
}

/* Tri-Color Ethio Accent Bar */
.ethio-flag-bar {
  display: flex;
  height: 6px;
  width: 100%;
}

.flag-stripe {
  flex: 1;
  height: 100%;
}

.flag-stripe.green { background-color: var(--ethio-green); }
.flag-stripe.yellow { background-color: var(--ethio-yellow); }
.flag-stripe.red { background-color: var(--ethio-red); }

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

/* Typography & Links */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.025em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(76, 0, 176, 0.25);
  position: relative;
  overflow: hidden;
}

.brand-icon-box svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-titles h1 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-titles span {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ethio-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

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

/* Primary Purple Button */
.btn-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-purple);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(76, 0, 176, 0.3);
  transition: all 0.25s ease;
}

.btn-purple:hover {
  background: var(--brand-purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(76, 0, 176, 0.4);
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 2rem;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-pill-secondary:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--brand-purple-light);
  color: var(--brand-purple-text);
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  margin: 1rem 0;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Browser Packages Section */
.packages-section {
  padding: 4rem 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.package-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-purple);
  box-shadow: 0 12px 30px rgba(76, 0, 176, 0.1);
}

/* Trial Section (Matching Screenshot 4) */
.trial-section {
  background: #f4f5f9;
  padding: 4.5rem 0;
}

.trial-container-box {
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.trial-input-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0 1.25rem 0;
}

.trial-key-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
}

.copy-badge-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-purple);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--brand-purple-light);
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-badge-btn:hover {
  background: #e9d5ff;
}

/* Steps & Video */
.steps-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.alert-warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  padding: 1.25rem;
  color: #c2410c;
  font-size: 0.9rem;
  font-weight: 600;
}

.step-row-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}

.step-circle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--brand-purple-light);
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.video-frame-container {
  background: #09090b;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.video-mockup-header {
  background: #18181b;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #a1a1aa;
}

.video-screen {
  height: 360px;
  background: radial-gradient(circle at center, #1f1f23 0%, #09090b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-circle-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand-purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(76, 0, 176, 0.5);
  transition: all 0.3s ease;
}

.play-circle-btn:hover {
  transform: scale(1.1);
}

/* Error Cards */
.error-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.error-dark-modal {
  background: #09090b;
  border-radius: 1rem;
  padding: 1.25rem;
  color: #ffffff;
}

.fix-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.15rem;
  margin-bottom: 0.85rem;
}

.fix-icon-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand-purple-light);
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  z-index: 10000;
}

/* Footer (Matching Screenshot 3) */
.footer-dark {
  background-color: var(--bg-dark-footer);
  color: #ffffff;
  padding: 3rem 0 2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .nav-links {
    display: none;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
