:root {
  --background: #f7f8fc;
  --surface: #ffffff;
  --primary: #4a5cff;
  --primary-dark: #2c39d6;
  --accent: #f9d348;
  --text: #101323;
  --muted: #5a6175;
  --border: #e1e5f2;
  --success: #2ecc71;
  --warning: #ff9966;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--background);
}

body {
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 252, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a,
.cta-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.cta-link:hover {
  color: var(--primary);
}

.cta-link {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.hero {
  padding: 6rem 0 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-copy p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 420px;
}

.signup-form input[type='email'] {
  flex: 1 1 220px;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
}

.signup-form button {
  flex: 0 0 auto;
  padding: 0.95rem 1.6rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signup-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(74, 92, 255, 0.25);
}

.form-caption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(16, 19, 35, 0.08);
  padding: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-weight: 600;
}

.card-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.card-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3f4ff;
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(74, 92, 255, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.pill.success {
  background: rgba(46, 204, 113, 0.18);
  color: var(--success);
}

.pill.warning {
  background: rgba(255, 153, 102, 0.2);
  color: var(--warning);
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.card-footer p {
  font-style: italic;
  margin: 0 0 0.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: var(--surface);
}

.section-inner h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.section-inner p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: 0 10px 20px rgba(16, 19, 35, 0.08);
}

.columns {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: start;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

.steps li {
  background: #f1f2ff;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid #dfe2ff;
}

.step-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.testimonials {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.6rem;
  box-shadow: 0 12px 24px rgba(16, 19, 35, 0.08);
}

.testimonial-card p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.attribution {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.cta.section {
  text-align: center;
}

.cta p {
  margin: 0 auto 2rem auto;
  max-width: 540px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(16, 19, 35, 0.55);
  z-index: 40;
  animation: modal-fade-in 0.25s ease;
}

.modal[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  width: min(480px, 100%);
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(16, 19, 35, 0.25);
  padding: 2.75rem 2.25rem;
  animation: modal-slide-up 0.25s ease;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.modal-content p {
  margin-top: 0;
  margin-bottom: 1.6rem;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--primary);
}

.modal-form {
  flex-direction: column;
  gap: 0.9rem;
  max-width: none;
}

.modal-form input[type='email'],
.modal-form button {
  width: 100%;
  flex: none;
}

.modal-form input[type='email'] {
  padding: 0.65rem 0.9rem;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .header-nav {
    display: none;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-card {
    order: -1;
  }

  .signup-form {
    width: 100%;
  }

  .signup-form button {
    width: 100%;
  }

  .cta-link {
    display: none;
  }
}

@media (max-width: 540px) {
  .modal {
    padding: 1.5rem;
  }

  .modal-dialog {
    padding: 2.25rem 1.6rem;
    border-radius: 20px;
  }

  .modal-close {
    top: 0.6rem;
    right: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
