/* index.css */

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

body {
  font-family: var(--font-family);
  background: var(--bg-base);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Hero Section */
.hero {
  padding: var(--space-9) 0;
  text-align: left;
}

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

.hero-display {
  font-size: var(--text-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-display);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  max-width: 540px;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-actions--centered {
  justify-content: center;
}

/* Button Component */
.btn {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: var(--border-thin) solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing-base),
              border-color var(--duration-fast) var(--easing-base),
              transform var(--duration-fast) var(--easing-base);
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--neutral-0);
  border-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--bg-subtle);
  }
}

/* Features Section */
.features {
  padding: var(--space-7) 0;
}

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

.feature-card {
  background: var(--bg-surface);
  border: var(--border-thin) solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  grid-column: span 4;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-size: var(--text-heading);
  color: var(--accent);
}

.feature-title {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.feature-text {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--text-secondary);
}

/* Value Props Section */
.value-props {
  padding: var(--space-7) 0;
  border-top: var(--border-thin) solid var(--border-default);
}

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

.value-prop {
  grid-column: span 6;
  padding: var(--space-4);
}

.value-prop-number {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.value-prop-title {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.value-prop-text {
  font-size: var(--text-body);
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  padding: var(--space-7) 0;
  background: var(--bg-surface);
  border: var(--border-thin) solid var(--border-default);
  border-radius: var(--radius-lg);
  margin: var(--space-7) 0;
  text-align: center;
}

.cta-title {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.cta-text {
  font-size: var(--text-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  max-width: 540px;
  margin-inline: auto;
}

/* Footer */
.footer {
  background: var(--bg-surface);
  border-top: var(--border-thin) solid var(--border-default);
  padding: var(--space-7) 0;
  margin-top: var(--space-7);
}

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

.footer-links {
  display: flex;
  gap: var(--space-4);
}

.footer-link {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-base);
}

@media (hover: hover) and (pointer: fine) {
  .footer-link:hover {
    color: var(--text-primary);
  }
}

.footer-copy {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(var(--space-3));
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fade-in {
    animation: fadeInUp var(--duration-base) var(--easing-base) forwards;
  }

  .fade-in:nth-child(1) { animation-delay: 0ms; }
  .fade-in:nth-child(2) { animation-delay: 50ms; }
  .fade-in:nth-child(3) { animation-delay: 100ms; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-7) 0;
  }

  .hero-display {
    font-size: var(--text-heading);
    line-height: var(--leading-heading);
  }

  .feature-card {
    grid-column: span 12;
  }

  .value-prop {
    grid-column: span 12;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-3);
  }
}
