/**
* Vindex Protocol - Livelihood Insurance Landing Page
* Updated: 2026
*/

/*--------------------------------------------------------------
# CSS Variables - Trust & Stability Color Palette
--------------------------------------------------------------*/
:root {
  /* Fonts */
  --default-font: 'Inter', system-ui, -apple-system, sans-serif;
  --heading-font: 'Space Grotesk', sans-serif;
  
  /* Trust & Stability Color Palette */
  --primary-navy: #0A192F;
  --royal-blue: #1E3A8A;
  --teal-accent: #14B8A6;
  --emerald-accent: #10B981;
  --soft-amber: #F59E0B;
  --light-grey: #F3F4F6;
  --text-grey: #6B7280;
  --card-bg: #FFFFFF;
  --border-color: #E5E7EB;
  
  /* Legacy compatibility */
  --background-color: #F3F4F6;
  --default-color: #0A192F;
  --heading-color: #0A192F;
  --accent-color: #14B8A6;
  --surface-color: #FFFFFF;
  --contrast-color: #FFFFFF;
}

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--default-font);
  background-color: var(--light-grey);
  color: var(--primary-navy);
  line-height: 1.6;
}

body::before {
  display: none;
}

a {
  color: var(--teal-accent);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--emerald-accent);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--primary-navy);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 997;
}

.sitename {
  color: var(--primary-navy);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0;
}

.text-teal {
  color: var(--teal-accent);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--royal-blue) 100%);
  padding: 100px 0 80px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.hero .lead {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.badge-trust {
  background: rgba(20, 184, 166, 0.2);
  color: var(--teal-accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary-vindex {
  background: var(--teal-accent);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 14px 35px;
  border: none;
  transition: all 0.3s;
  font-size: 1.05rem;
  display: inline-block;
}

.btn-primary-vindex:hover {
  background: var(--emerald-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
  color: white;
}

.btn-outline-vindex {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 50px;
  padding: 12px 35px;
  background: transparent;
  transition: all 0.3s;
  font-weight: 600;
  display: inline-block;
}

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

/*--------------------------------------------------------------
# Story Section
--------------------------------------------------------------*/
.story-section {
  padding: 80px 0;
  background: white;
}

.story-card {
  background: var(--light-grey);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
}

.story-card h3 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.story-card p {
  color: var(--text-grey);
  font-size: 1.1rem;
}

.highlight-text {
  color: var(--teal-accent);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Calculator Section
--------------------------------------------------------------*/
.calculator-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, var(--light-grey), white);
}

.calculator-container {
  background: white;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.calculator-header {
  text-align: center;
  margin-bottom: 40px;
}

.calculator-header h2 {
  color: var(--primary-navy);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.calculator-header p {
  color: var(--text-grey);
  font-size: 1.1rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s;
}

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

.form-label {
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 8px;
  display: block;
}

.form-control, .form-select {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s;
  width: 100%;
}

.form-control:focus, .form-select:focus {
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  outline: none;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toggle-input {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-input.active {
  background: var(--teal-accent);
}

.toggle-input::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all 0.3s;
}

.toggle-input.active::after {
  left: 33px;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--teal-accent);
  width: 30px;
  border-radius: 6px;
}

.btn-next, .btn-prev {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-next {
  background: var(--teal-accent);
  color: white;
}

.btn-next:hover {
  background: var(--emerald-accent);
}

.btn-prev {
  background: var(--light-grey);
  color: var(--primary-navy);
}

.btn-prev:hover {
  background: var(--border-color);
}

.result-card {
  background: linear-gradient(135deg, var(--teal-accent), var(--emerald-accent));
  color: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 30px;
}

.result-card h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: white;
}

.result-card .premium-amount {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 20px 0;
}

.result-card .coverage-amount {
  font-size: 1.3rem;
  opacity: 0.9;
}

/*--------------------------------------------------------------
# Risk Score Section
--------------------------------------------------------------*/
.risk-score-card {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-left: 5px solid var(--soft-amber);
  border-radius: 15px;
  padding: 25px;
  margin-top: 20px;
}

.risk-score-card h4 {
  color: #92400E;
  margin-bottom: 10px;
}

.risk-score-card p {
  color: #78350F;
  margin-bottom: 0;
}

.risk-meter {
  height: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
}

.risk-meter-fill {
  height: 100%;
  background: var(--soft-amber);
  border-radius: 10px;
  transition: width 0.5s;
}

/*--------------------------------------------------------------
# How It Works Section
--------------------------------------------------------------*/
.how-it-works {
  padding: 80px 0;
  background: var(--primary-navy);
  color: white;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: white;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s;
  height: 100%;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px);
  border-color: var(--teal-accent);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--teal-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

.feature-card h4 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: white;
}

.feature-card p {
  opacity: 0.8;
  line-height: 1.7;
}

/*--------------------------------------------------------------
# Benefits Section
--------------------------------------------------------------*/
.benefits-section {
  padding: 80px 0;
  background: white;
}

.benefit-item {
  display: flex;
  align-items: start;
  gap: 20px;
  margin-bottom: 30px;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: var(--teal-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-content h4 {
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.benefit-content p {
  color: var(--text-grey);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background: var(--primary-navy);
  color: white;
  padding: 40px 0 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

.footer-links a:hover {
  color: var(--teal-accent);
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--teal-accent);
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--teal-accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top i {
  font-size: 24px;
  color: white;
  line-height: 0;
}

.scroll-top:hover {
  background-color: var(--emerald-accent);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

  .calculator-container {
    padding: 30px 20px;
  }

  .calculator-header h2 {
    font-size: 2rem;
  }

  .result-card .premium-amount {
    font-size: 2.5rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

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

  .calculator-header h2 {
    font-size: 1.75rem;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .btn-primary-vindex,
  .btn-outline-vindex {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

/*--------------------------------------------------------------
# Open Source Community Section
--------------------------------------------------------------*/
.open-source-section {
  padding: 80px 0;
  background: white;
}

.open-source-section h2 {
  color: var(--primary-navy);
  font-size: 2.5rem;
}

.open-source-section .lead {
  font-size: 1.2rem;
  color: var(--text-grey);
}

.community-stats {
  margin-top: 30px;
}

.stat-card {
  background: var(--light-grey);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-card h3 {
  color: var(--teal-accent);
  font-size: 2rem;
  margin-bottom: 5px;
}

.stat-card p {
  color: var(--text-grey);
  margin: 0;
  font-size: 0.9rem;
}

.github-card {
  background: linear-gradient(135deg, var(--primary-navy), var(--royal-blue));
  color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.github-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.github-header i {
  font-size: 3rem;
  color: var(--teal-accent);
}

.github-header h3 {
  color: white;
  margin: 0;
}

.github-card p {
  opacity: 0.9;
  margin-bottom: 25px;
}

.repo-features {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: white;
}

.feature-item i {
  color: var(--teal-accent);
  font-size: 1.2rem;
}

.github-actions .btn-outline-vindex:hover {
  background: rgba(255, 255, 255, 0.1);
}

/*--------------------------------------------------------------
# Newsletter Section
--------------------------------------------------------------*/
.newsletter-section h3 {
  color: white;
  font-size: 1.8rem;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form .input-group {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 15px 25px;
  font-size: 1rem;
  border-radius: 50px 0 0 50px;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  border-color: transparent;
}

.newsletter-form .btn-primary-vindex {
  border-radius: 0 50px 50px 0;
  padding: 15px 30px;
  white-space: nowrap;
}

.input-group-text {
  background: white;
  border: 2px solid var(--border-color);
  border-right: none;
  color: var(--text-grey);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.text-center {
  text-align: center;
}

.text-muted {
  color: rgba(255, 255, 255, 0.75);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.d-flex {
  display: flex;
}

.gap-3 {
  gap: 1rem;
}

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

.align-items-center {
  align-items: center;
}

/* Made with Bob */
