:root {
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  padding: 5rem 2rem;
  border-radius: 24px;
  margin: 2rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  color: #93C5FD;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #94A3B8;
  line-height: 1.6;
  margin: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

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

.hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-badges .badge {
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: #CBD5E1;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Architecture Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.architecture-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(12px);
}

.architecture-header {
  margin-bottom: 1rem;
}

.architecture-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94A3B8;
  text-transform: uppercase;
  margin: 0;
}

.architecture-diagram {
  padding: 0.5rem 0;
}

.vpc-container {
  border: 2px dashed rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(59, 130, 246, 0.05);
}

.vpc-label {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  background: #1E293B;
  color: #60A5FA;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.5rem;
  letter-spacing: 0.05em;
}

.aws-service {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.aws-service.internet {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.aws-service.load-balancer {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FCD34D;
}

.aws-service.ec2 {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93C5FD;
  flex: 1;
  justify-content: center;
}

.aws-service.rds {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #C4B5FD;
}

.ec2-row {
  display: flex;
  gap: 0.5rem;
}

/* ============================================================
   Stats Section
   ============================================================ */
.stats-section {
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  padding: 3rem 2rem;
}

.stats-section .stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  border-radius: 12px;
}

.stat-item-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item-label {
  font-size: 0.9375rem;
  color: #6B7280;
  font-weight: 500;
}

/* ============================================================
   Features Section
   ============================================================ */
.features-section {
  padding: 5rem 2rem;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #1F2937;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6B7280;
  margin: 0;
}

.features-section .features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.feature-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1);
  border-color: #93C5FD;
}

.feature-card.feature-highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  margin-top: 0;
  padding: 1.75rem;
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 0.5rem;
}

.feature-description {
  font-size: 0.9375rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.feature-link {
  color: #3B82F6;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 200ms ease;
}

.feature-link:hover {
  color: #2563EB;
}

/* ============================================================
   How It Works Section
   ============================================================ */
.how-it-works {
  background: #F9FAFB;
  padding: 5rem 2rem;
}

.how-it-works .section-header {
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.steps-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 0.5rem;
}

.step-description {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

.step-connector {
  color: #93C5FD;
  font-size: 1.75rem;
  font-weight: 300;
  align-self: center;
  padding-bottom: 2rem;
  flex-shrink: 0;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #1E3A5F 0%, #312E81 100%);
  padding: 5rem 2rem;
  text-align: center;
}

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

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 1.125rem;
  color: #CBD5E1;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.btn-cta-lg {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background: white;
  color: #1E3A5F;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
  font-family: inherit;
}

.btn-cta-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.cta-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

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

  .hero-visual {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .hero-section {
    padding: 3rem 1.5rem;
  }

  .stats-section {
    padding: 2rem 1.5rem;
  }

  .stats-section .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .features-section {
    padding: 3rem 1.5rem;
  }

  .features-section .features-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    padding: 3rem 1.5rem;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    transform: rotate(90deg);
    padding-bottom: 0;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }
}

/* ===== Pricing Section ===== */
.pricing-section {
  padding: 5rem 2rem;
  background: #F9FAFB;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card--featured {
  border-color: #3B82F6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.pricing-card--popular {
  border-color: #8B5CF6;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3B82F6;
  background: #DBEAFE;
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-badge--popular {
  color: #7C3AED;
  background: #EDE9FE;
}

.pricing-card-header {
  text-align: center;
}

.pricing-tier-name {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 0.4rem;
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: 0.875rem;
  color: #6B7280;
  text-align: center;
  margin-top: 0.25rem;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
  flex-grow: 1;
}

.pricing-feature-locked {
  color: #D1D5DB;
  text-decoration: line-through;
}

.pricing-cta {
  display: block;
  text-align: center;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.pricing-cta--primary {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: white;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.pricing-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.4);
}

.pricing-cta--secondary {
  background: white;
  color: #374151;
  border: 1.5px solid #D1D5DB;
}

.pricing-cta--secondary:hover {
  border-color: #3B82F6;
  color: #3B82F6;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-section {
    padding: 3rem 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
