/* ==========================================
   CSS Reset & Base Styles
   ========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   CSS Custom Properties (Design Tokens)
   ========================================== */

:root {
  /* Purple/Blue Gradient Theme */
  --primary-purple: #8B5CF6;
  --primary-blue: #3B82F6;
  --primary-dark: #5B21B6;
  --primary-light: #A78BFA;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #5B21B6 0%, #8B5CF6 50%, #3B82F6 100%);
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  --gradient-accent: linear-gradient(90deg, #A78BFA 0%, #60A5FA 100%);

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-bg: #F9FAFB;
  --color-bg-dark: #111827;
  --color-text: #1F2937;
  --color-text-light: #6B7280;
  --color-text-dark: #F3F4F6;

  /* Accent Colors */
  --color-success: #10B981;
  --color-accent: #F59E0B;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 80px;
  --spacing-4xl: 120px;
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* ==========================================
   Layout Utilities
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   Header
   ========================================== */

.header {
  background: white;
  border-bottom: 1px solid #E5E7EB;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

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

.header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 200ms;
}

.header .logo:hover {
  opacity: 0.8;
}

.header .nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header .nav-link {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 200ms;
}

.header .nav-link:hover {
  color: var(--primary-purple);
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 300ms ease;
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-white {
  background: white;
  color: var(--primary-purple);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.btn-white:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  padding: 30px 20px 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-content {
  color: white;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.hero-stats {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.mockup-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.gradient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.gradient-circle-1 {
  width: 200px;
  height: 200px;
  background: var(--primary-purple);
  top: -50px;
  left: -50px;
}

.gradient-circle-2 {
  width: 250px;
  height: 250px;
  background: var(--primary-blue);
  bottom: -50px;
  right: -50px;
  animation-delay: -2s;
}

.mockup-content {
  position: relative;
  z-index: 2;
}

.icon-hero {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* ==========================================
   Features Section
   ========================================== */

.features {
  padding: var(--spacing-4xl) 20px;
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-label {
  display: inline-block;
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all 300ms ease;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

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

.feature-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              var(--gradient-primary) border-box;
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gradient-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon .icon {
  width: 48px;
  height: 48px;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.feature-description {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  color: var(--color-text);
  font-size: 0.9375rem;
}

.feature-list .icon {
  width: 20px;
  height: 20px;
  color: var(--primary-purple);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================
   How It Works Timeline
   ========================================== */

.how-it-works {
  margin-top: var(--spacing-3xl);
}

.subsection-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-2xl);
  color: var(--color-text);
}

.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

.timeline-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 600ms ease;
}

.timeline-step.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-sm);
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  box-shadow: var(--shadow-lg);
}

.step-title {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.step-description {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.timeline-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
  display: none;
}

/* ==========================================
   CTA Section
   ========================================== */

.cta {
  background: linear-gradient(135deg, #1F2937 0%, #5B21B6 100%);
  padding: var(--spacing-3xl) 20px;
  color: var(--color-text-dark);
  position: relative;
  overflow: hidden;
}

.cta-container {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: white;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  align-items: center;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1rem;
}

.cta-feature .icon {
  width: 20px;
  height: 20px;
  color: var(--color-success);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.cta-note {
  font-size: 0.875rem;
  opacity: 0.7;
  margin: 0;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-dark);
  padding: var(--spacing-2xl) 20px var(--spacing-md);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand {
  margin-bottom: var(--spacing-md);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.footer-tagline {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
}

.footer-column-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: white;
}

.footer-link {
  display: block;
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: var(--spacing-xs);
  transition: color 200ms ease;
}

.footer-link:hover {
  color: var(--primary-light);
}

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

.footer-copyright {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================
   Icons
   ========================================== */

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* ==========================================
   Responsive Design
   ========================================== */

/* Mobile (max 640px) */
@media (max-width: 640px) {
  .header .nav {
    gap: 1rem;
  }

  .header .nav-link {
    font-size: 0.875rem;
  }

  .header .logo {
    font-size: 1.25rem;
  }
}

/* Tablet (641px - 1024px) */
@media (min-width: 641px) {
  h1 {
    font-size: 3rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-connector {
    display: block;
  }

  .timeline {
    flex-wrap: nowrap;
  }

  .footer-container {
    grid-template-columns: 2fr 3fr;
  }

  .cta-features {
    flex-direction: row;
    justify-content: center;
  }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
  h1 {
    font-size: 3.5rem;
  }

  .hero {
    padding: 50px 20px 60px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-title {
    font-size: 3rem;
  }
}

/* Extra Large (1440px+) */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 4rem;
  }
}
