/* 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: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  background-color: #ffffff;
}

/* Variables */
:root {
  --color-primary: #ff4d4d;
  --color-primary-dark: #e53935;
  --color-primary-light: #ff8080;
  --color-secondary: #404040;
  --color-secondary-light: #666666;
  --color-accent: #29b6f6;
  --color-light: #ffffff;
  --color-dark: #222222;
  --color-gray: #f5f5f5;
  --color-gray-dark: #e0e0e0;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  
  --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;
  font-weight: 700;
  color: var(--color-secondary);
}

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

h2 {
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
}

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

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

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

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

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

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

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

.btn-secondary:hover {
  background: rgba(255, 77, 77, 0.05);
  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: 1.75rem;
  height: 1.75rem;
  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: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

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

.nav-cta {
  background: var(--color-primary);
  color: white;
  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, 77, 77, 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;
  background: linear-gradient(135deg, #fff5f5, #fff);
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 77, 77, 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;
  max-width: 500px;
  margin-left: auto;
}

.hero-svg {
  width: 100%;
  height: auto;
}

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

.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 h2 {
  margin-bottom: var(--space-lg);
}

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

.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-dark);
  transition: all 0.3s ease;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 77, 77, 0.1);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

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

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

.how-it-works h2 {
  margin-bottom: var(--space-lg);
}

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

.step {
  position: relative;
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

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

.cta h2 {
  color: white;
}

.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);
}

.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;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  nav ul {
    display: none;
  }
  
  .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;
  }
}
