/* Homepage - Stripe Design System (Tighter Spacing) */

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-8) var(--space-5);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0A2540 0%, #1a3a60 50%, #0A2540 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
}

.hero .subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-on-dark-muted);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto var(--space-5);
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: white;
  color: var(--stripe-blue);
  padding: 14px 24px;
  font-size: 15px;
  box-shadow: var(--shadow-float);
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 40px 80px -20px rgba(50, 50, 93, 0.3);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 24px;
  font-size: 15px;
}

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

/* === Section Defaults === */
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stripe-purple);
  text-align: center;
  margin-bottom: var(--space-3);
}

.container {
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* === How It Works === */
.how-it-works {
  background: var(--bg-white);
  padding: var(--space-7) var(--space-5);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.step {
  background: var(--bg-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.step:hover {
  border-color: var(--gray-200);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--stripe-purple), var(--stripe-cyan));
  color: white;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: var(--space-3);
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.step p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

/* === Problem Section === */
.problem {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-7) var(--space-5);
}

.problem .section-label {
  color: var(--stripe-cyan);
}

.problem .lead {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-on-dark);
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-5);
  line-height: 1.4;
  font-weight: 500;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.problem-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.problem-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.problem-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: var(--space-2);
}

.problem-item p {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
  margin: 0;
}

/* === Value Props === */
.value-props {
  background: var(--bg-light);
  padding: var(--space-7) var(--space-5);
}

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

.prop {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
  transition: all var(--transition-base);
}

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

.prop h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.prop p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

/* === Benefits Grid === */
.what-you-get {
  background: var(--bg-white);
  padding: var(--space-7) var(--space-5);
}

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

.benefit {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.benefit:hover {
  border-color: var(--gray-200);
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--space-3);
}

.benefit h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.benefit p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

/* === Who Section === */
.who {
  background: var(--bg-white);
  padding: var(--space-7) var(--space-5);
  border-top: 1px solid var(--gray-100);
}

.who .container {
  max-width: var(--container-width);
  text-align: center;
}

.who h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.who > .container > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto var(--space-5);
}

.founder-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  text-align: left;
}

.founder-type {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-fast);
}

.founder-type:hover {
  border-color: var(--gray-200);
}

.founder-type h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.founder-type p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

/* === Process Detail === */
.process-detail {
  background: var(--bg-light);
  padding: var(--space-7) var(--space-5);
}

.process-detail .container {
  max-width: var(--container-width);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.process-step {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: all var(--transition-base);
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.step-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.1), rgba(0, 212, 255, 0.1));
  color: var(--stripe-purple);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process-step h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.process-step p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

/* === Final CTA === */
.final-cta {
  background: linear-gradient(135deg, var(--stripe-blue) 0%, #1a3a60 100%);
  padding: var(--space-7) var(--space-5);
  text-align: center;
}

.final-cta .btn-primary {
  background: white;
  color: var(--stripe-blue);
  padding: 16px 32px;
  font-size: 16px;
  box-shadow: var(--shadow-float);
}

.final-cta .btn-primary:hover {
  transform: translateY(-2px);
}

.final-cta .note {
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* === Footer === */
footer {
  background: var(--bg-white);
  padding: var(--space-5) var(--space-5);
  text-align: center;
  border-top: 1px solid var(--gray-100);
}

footer p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .props-grid,
  .benefits-grid,
  .founder-types {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: var(--space-6) var(--space-4);
  }

  .steps,
  .problem-grid,
  .props-grid,
  .benefits-grid,
  .founder-types {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

  .how-it-works,
  .problem,
  .value-props,
  .what-you-get,
  .who,
  .process-detail {
    padding: var(--space-6) var(--space-4);
  }
}

/* === Dark Mode === */
body.dark-mode .how-it-works,
body.dark-mode .what-you-get,
body.dark-mode .who {
  background: var(--bg-dark);
}

body.dark-mode .who h2 {
  color: var(--text-on-dark);
}

body.dark-mode .step,
body.dark-mode .prop,
body.dark-mode .benefit,
body.dark-mode .founder-type,
body.dark-mode .process-step {
  background: var(--gray-900);
  border-color: var(--border-dark);
}

body.dark-mode .step h3,
body.dark-mode .prop h3,
body.dark-mode .benefit h3,
body.dark-mode .founder-type h4,
body.dark-mode .process-step h4 {
  color: var(--text-on-dark);
}

body.dark-mode .step p,
body.dark-mode .prop p,
body.dark-mode .benefit p,
body.dark-mode .founder-type p,
body.dark-mode .process-step p {
  color: var(--text-on-dark-muted);
}

body.dark-mode .who > .container > p {
  color: var(--text-on-dark-muted);
}

body.dark-mode .value-props,
body.dark-mode .process-detail {
  background: var(--gray-900);
}

body.dark-mode footer {
  background: var(--bg-dark);
  border-top-color: var(--border-dark);
}

body.dark-mode footer p {
  color: var(--text-on-dark-muted);
}
