:root {
  --primary: #4a2fc1;
  --secondary: #1cbaba;
  --accent: #ff9f1c;
  --dark: #121232;
  --light: #f9f9ff;
  --text: #2f2f4f;
  --muted: #6c6c8a;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--light);
}

.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;
}

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

header {
  background: white;
  box-shadow: 0 10px 40px rgba(18, 18, 50, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar img {
  height: 48px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 50, 0.15);
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

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

.nav-toggle[aria-expanded='true'] {
  background: rgba(74, 47, 193, 0.08);
  border-color: rgba(74, 47, 193, 0.3);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.nav-links a {
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s ease;
  display: inline-flex;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(74, 47, 193, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(74, 47, 193, 0.35);
}

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 0;
  color: var(--dark);
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 24px;
  color: var(--dark);
}

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

.card {
  background: white;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(18, 18, 50, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(74, 47, 193, 0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.lead-magnet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, rgba(74, 47, 193, 0.1), rgba(28, 186, 186, 0.1));
  padding: 32px;
  border-radius: 24px;
  margin-top: 32px;
  gap: 24px;
}

.lead-magnet h3 {
  margin: 0;
  font-size: 1.5rem;
}

.lead-magnet p {
  margin: 0;
  color: var(--muted);
}

.footer {
  background: #0f1028;
  color: white;
  padding: 48px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
}

.highlight {
  color: var(--primary);
}

.price-note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.price-note a {
  color: var(--dark);
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pricing-group + .pricing-group {
  margin-top: 48px;
}

.pricing-group-header {
  margin-bottom: 16px;
}

.price-card {
  background: white;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(18, 18, 50, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.price-card.popular::after {
  content: attr(data-popular-label);
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.price-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
}

.price-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-period {
  font-size: 1rem;
  color: var(--muted);
}

.price-hours {
  font-size: 1rem;
  color: var(--muted);
}

.price-features {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.tech-stack {
  font-size: 0.95rem;
  color: var(--muted);
}

.tech-stack span {
  font-weight: 600;
  color: var(--dark);
}

.deeplink-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  font-weight: 600;
  transition: background 0.2s ease;
}

.deeplink-cta:hover {
  background: var(--primary);
}

.tagline {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
}

.hero-illustration {
  background: linear-gradient(140deg, rgba(74, 47, 193, 0.12), rgba(255, 159, 28, 0.12));
  border-radius: 32px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-illustration span {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-illustration ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header p {
  max-width: 520px;
  color: var(--muted);
}

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

.testimonial {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(18, 18, 50, 0.08);
}

.testimonial cite {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.contact-form {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 48px rgba(18, 18, 50, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(18, 18, 50, 0.12);
  font: inherit;
}

.contact-form button {
  align-self: flex-start;
}

.form-status {
  font-size: 0.95rem;
  min-height: 1.5em;
  color: var(--muted);
}

.form-status[data-state='pending'] {
  color: var(--dark);
}

.form-status[data-state='success'] {
  color: #1b8f5a;
  font-weight: 600;
}

.form-status[data-state='error'] {
  color: #b42318;
  font-weight: 600;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.form-note a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
  }

  .navbar-brand {
    width: 100%;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links.is-collapsible {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(18, 18, 50, 0.08);
    padding-top: 12px;
    padding-bottom: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    gap: 12px;
  }

  .nav-links.is-collapsible a {
    width: 100%;
  }

  .nav-links.is-collapsible.is-open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 96px 20px 60px;
  }

  .section {
    padding: 60px 20px;
  }

  .lead-magnet {
    flex-direction: column;
    text-align: center;
  }
}

.hero-compact {
  padding-top: 80px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.quote-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quote-block {
  background: white;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(18, 18, 50, 0.08);
  box-shadow: 0 18px 40px rgba(18, 18, 50, 0.05);
}

.quote-block p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.quote-block span {
  font-weight: 600;
  color: var(--muted);
}

.tldr-list {
  margin: 32px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  border-radius: 24px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(18, 18, 50, 0.08);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.price-table th,
.price-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid rgba(18, 18, 50, 0.08);
}

.price-table th {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.table-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.table-note {
  margin-top: 16px;
  color: var(--muted);
}

.subscription-card {
  background: white;
  padding: 32px;
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(18, 18, 50, 0.08);
  flex-wrap: wrap;
}

.subscription-card h3 {
  margin: 0 0 8px;
}

.subscription-card p {
  margin: 0;
  color: var(--muted);
}

.subscription-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.subscription-meta span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}

.subscription-meta small {
  color: var(--muted);
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.note-list li {
  background: white;
  border-radius: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(18, 18, 50, 0.08);
}

.contact-cta {
  background: white;
  padding: 32px;
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 20px 60px rgba(18, 18, 50, 0.08);
}

.contact-cta h3 {
  margin: 0 0 8px;
}

@media (max-width: 640px) {
  .price-table th,
  .price-table td {
    padding: 16px;
  }

  .subscription-meta {
    text-align: left;
  }
}
