/* Modern CSS with Mobile-first Approach */
:root {
  --primary: #10B981;      /* Emerald Green */
  --secondary: #0EA5E9;    /* Sky Blue */
  --accent: #8B5CF6;       /* Violet */
  --dark: #0F172A;         /* Slate-900 */
  --light: #F8FAFC;        /* Slate-50 */
  --gray-100: #F1F5F9;     /* Slate-100 */
  --gray-200: #E2E8F0;     /* Slate-200 */
  --gray-300: #CBD5E1;     /* Slate-300 */
  --gray-500: #64748B;     /* Slate-500 */
  --gray-700: #334155;     /* Slate-700 */
  --text: #0F172A;         /* Slate-900 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--light);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 60px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* Header */
header {
  background-color: white;
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  margin-right: 0.75rem;
}

.logo h1 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.logo span {
  color: var(--primary);
  font-weight: 400;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(to bottom, white, var(--gray-100));
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero h2 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-btn:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-btn.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--gray-100);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon {
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray-500);
  margin-bottom: 0;
}

/* How It Works */
.how-it-works {
  padding: 4rem 0;
  background-color: var(--gray-100);
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 300px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: none;
}

.cta-center {
  text-align: center;
}

/* FAQ Section */
.faq {
  padding: 4rem 0;
  background-color: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.faq-item {
  background-color: var(--gray-100);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.faq-item p {
  color: var(--gray-500);
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta-btn {
  background-color: white;
  color: var(--primary);
}

.cta-section .cta-btn:hover {
  background-color: var(--dark);
  color: white;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
  margin-right: 0.75rem;
}

.footer-logo span {
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--gray-300);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--gray-300);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: white;
    width: 100%;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: left 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .nav-menu a {
    display: block;
    padding: 0.5rem;
  }
  
  .menu-toggle {
    display: block;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }
  
  .step {
    margin-bottom: 0;
  }
  
  .step-arrow {
    display: block;
    align-self: center;
  }
  
  .hero .container {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
  
  .hero-content {
    margin-bottom: 0;
    margin-right: 2rem;
  }
  
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-logo {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
}
