/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  background-color: #ffffff;
}

/* Variables */
:root {
  --color-primary: #FFC107;
  --color-primary-dark: #FF9800;
  --color-primary-light: #FFECB3;
  --color-secondary: #263238;
  --color-secondary-light: #455A64;
  --color-accent: #29B6F6;
  --color-light: #ffffff;
  --color-dark: #212121;
  --color-gray: #f9f9f9;
  --color-gray-dark: #e0e0e0;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

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

h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-intro {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  border: none;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--color-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: var(--color-gray);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 1.25rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

nav a {
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

nav a:not(.nav-cta):hover {
  color: var(--color-primary-dark);
}

nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.25);
}

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

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-lg) 0 calc(var(--space-lg) * 2);
  background: linear-gradient(135deg, #FFF9C4, #FFF);
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero:after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.hero-image {
  position: relative;
}

.hero-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

/* Features Section */
.features {
  padding: var(--space-lg) 0;
  background: white;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.feature-card {
  background: var(--color-gray);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(255, 193, 7, 0.1);
  margin-bottom: var(--space-sm);
  color: var(--color-primary-dark);
}

.feature-icon svg {
  width: 35px;
  height: 35px;
}

/* How It Works Section */
.how-it-works {
  padding: var(--space-lg) 0;
  background: var(--color-gray);
  text-align: center;
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.step {
  position: relative;
  padding: var(--space-md) var(--space-sm);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: bold;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  font-size: 1.25rem;
}

/* FAQ Section */
.faq {
  padding: var(--space-lg) 0;
  background: white;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  text-align: left;
}

.faq-item {
  padding: var(--space-md);
  background: var(--color-gray);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.faq-item h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-secondary);
  font-size: 1.25rem;
}

/* CTA Section */
.cta {
  padding: var(--space-lg) 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-secondary);
  text-align: center;
}

.cta h2 {
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.cta h2::after {
  background: var(--color-secondary);
}

.cta p {
  max-width: 600px;
  margin: 0 auto var(--space-md);
  opacity: 0.9;
}

/* Footer */
footer {
  padding: var(--space-lg) 0 var(--space-md);
  background: var(--color-secondary);
  color: white;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: white;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-links-column h3 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: var(--space-sm);
}

.footer-links-column a {
  display: block;
  margin-bottom: var(--space-xs);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-links-column a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .footer-logo {
    justify-content: center;
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    margin: 0 auto;
    max-width: 400px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
}

@media (max-width: 640px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}
