/* Coverla.app Landing Page Design System & Stylesheet */

:root {
  /* Colors */
  --bg-primary: #0a0c10;
  --bg-secondary: #11141c;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.3);
  
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.35);
  
  --green: #10b981;
  --red: #ef4444;
  
  /* Glassmorphism card properties */
  --glass-bg: rgba(17, 20, 28, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --header-height: 72px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Blur Blobs */
.blur-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}
.blob-1 {
  background-color: var(--primary);
  top: 10%;
  left: -100px;
}
.blob-2 {
  background-color: var(--blue);
  top: 40%;
  right: -100px;
}
.blob-3 {
  background-color: var(--primary);
  bottom: 10%;
  left: 20%;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-blue { color: var(--blue) !important; }
.text-purple { color: var(--primary) !important; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-headings);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--blue-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.glow-on-hover {
  position: relative;
}
.glow-on-hover::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 20px 4px var(--primary-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.glow-on-hover:hover::after {
  opacity: 1;
}

.w-100 { width: 100%; }

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--glass-shadow);
}

/* --- HEADER --- */
.header {
  height: var(--header-height);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  gap: 8px;
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--primary) 100%);
}

.nav-menu {
  display: flex;
  gap: 32px;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
  position: relative;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  color: #c084fc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mock Dashboard Showcase */
.mock-dashboard {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mock-header {
  background-color: rgba(10, 12, 16, 0.4);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}
.mock-dots {
  display: flex;
  gap: 6px;
}
.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}
.mock-dots span:nth-child(1) { background-color: var(--red); }
.mock-dots span:nth-child(2) { background-color: #f59e0b; }
.mock-dots span:nth-child(3) { background-color: var(--green); }

.mock-title {
  margin-left: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mock-body {
  display: flex;
  height: 280px;
}
.mock-sidebar {
  width: 50px;
  background-color: rgba(10, 12, 16, 0.2);
  border-right: 1px solid var(--glass-border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mock-sidebar span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
}
.mock-sidebar span.active {
  background-color: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--primary);
}

.mock-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.3rem;
  font-family: var(--font-headings);
  font-weight: 700;
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list-item {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.item-title {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.item-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.badge-new {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--green);
}
.badge-applied {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

/* --- SECTIONS --- */
.section {
  padding: 100px 0;
  position: relative;
}

.bg-glass-layer {
  background: linear-gradient(180deg, rgba(10, 12, 16, 0) 0%, rgba(17, 20, 28, 0.4) 50%, rgba(10, 12, 16, 0) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* --- FEATURES GRID --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 30px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.05);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

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

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- HOW IT WORKS STEPS --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-card {
  position: relative;
  padding: 30px;
}

.step-num {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.step-h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- INTERACTIVE AI DEMO --- */
.demo-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.text-left { text-align: left; margin-left: 0; }

.demo-inputs {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-select, .form-input {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}
.form-select:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Interactive Letter Editor mockup */
.letter-editor {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  height: 380px;
  display: flex;
  flex-direction: column;
}
.editor-header {
  background-color: rgba(10, 12, 16, 0.4);
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}
.editor-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.editor-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.letter-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.editor-divider {
  border: 0;
  height: 1px;
  background-color: var(--glass-border);
  margin-bottom: 20px;
}

.letter-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  flex: 1;
  overflow-y: auto;
}

.editor-cursor {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 2px;
  height: 16px;
  background-color: var(--primary);
  display: none;
  animation: blink 0.8s infinite;
}

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

/* --- PRICING SECTION --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  padding: 4px 10px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
}

.price-name {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.price-value-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}
.price-annual {
  display: block;
  font-size: 0.8rem;
  color: #c084fc;
  font-weight: 600;
  margin-bottom: 16px;
}
.price-val {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-headings);
}
.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 6px;
}
.price-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  min-height: 42px;
}

.price-features {
  list-style: none;
  margin-bottom: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

/* --- FAQ SECTION --- */
.faqs-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--glass-border);
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
}
.faq-icon-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background-color: rgba(10, 12, 16, 0.2);
}
.faq-answer p {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.faq-item.active {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.03);
}
.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: 80px 0;
}
.cta-container {
  padding: 60px 40px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.glow-purple {
  box-shadow: 0 0 50px 0 rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}
.cta-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

/* --- FOOTER --- */
.footer {
  background-color: #050608;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 20px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  max-width: 320px;
}
.footer-desc {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}
.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Animations --- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in { animation: fadeIn 1s ease forwards; }
.animate-slide-up { animation: slideUp 0.8s ease forwards; }

.animate-slide-up-delay {
  opacity: 0;
  animation: slideUp 0.8s ease 0.2s forwards;
}
.animate-slide-up-delay-2 {
  opacity: 0;
  animation: slideUp 0.8s ease 0.4s forwards;
}
.animate-fade-in-delay {
  opacity: 0;
  animation: fadeIn 1.2s ease 0.6s forwards;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .demo-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .nav-menu {
    display: none; /* Mobile menu hidden by default */
  }
  
  .header-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Mobile Navigation Menu */
  .header.mobile-open {
    background-color: var(--bg-secondary);
    height: 100vh;
    align-items: flex-start;
    padding-top: 24px;
  }
  .header.mobile-open .header-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 40px;
  }
  .header.mobile-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .header.mobile-open .header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .header.mobile-open .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .header.mobile-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
  }
  .header.mobile-open .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .cta-title {
    font-size: 1.8rem;
  }
  .footer-links {
    gap: 40px;
  }
}
