:root {
  --bg: #07111f;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: #101b2e;
  --text: #f4f7fb;
  --muted: #9fb0c8;
  --primary: #21c7a8;
  --primary-strong: #14a17d;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(33, 199, 168, 0.24), transparent 22%),
    linear-gradient(135deg, var(--bg) 0%, #0f172a 100%);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(7, 17, 31, 0.75);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--primary), #4f8cff);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 12px 24px rgba(33, 199, 168, 0.24);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 4.5rem 0 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.metric {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  min-width: 120px;
}

.metric strong {
  display: block;
  font-size: 1.2rem;
}

.hero-card {
  padding: 1.25rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card .panel {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.05);
  margin-bottom: 0.9rem;
}

.hero-card .panel strong {
  display: block;
  margin-bottom: 0.3rem;
}

.section {
  padding: 2rem 0 3rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

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

.section-heading p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 650px;
}

.grid {
  display: grid;
  gap: 1rem;
}

.features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.25rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
}

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

.pricing-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  margin: 0 auto 1.5rem;
}

.switch-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.switch-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  position: relative;
  padding: 1.5rem;
}

.pricing-card.featured {
  border-color: rgba(33, 199, 168, 0.6);
  transform: translateY(-6px);
}

.payment-btn {
  width: 100%;
  margin-top: 1rem;
}

.plan-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.plan-summary strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.plan-summary span,
.plan-price {
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 17, 31, 0.8);
  backdrop-filter: blur(8px);
  padding: 1rem;
  z-index: 50;
  overflow-y: auto;
}

.modal.hidden {
  display: none;
}

.modal-dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 2rem);
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(11, 22, 41, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  position: relative;
  overflow-y: auto;
}

.modal-dialog::-webkit-scrollbar {
  width: 8px;
}

.modal-dialog::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.modal-dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.toggle-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.toggle-label {
  color: var(--text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.form-group input:focus {
  outline: none;
  border-color: rgba(33,199,168,0.8);
  box-shadow: 0 0 0 3px rgba(33,199,168,0.12);
}

.form-message {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-size: 0.95rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.4rem 0 0.2rem;
}

.price small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

li + li {
  margin-top: 0.5rem;
}

.cta {
  text-align: center;
  padding: 2rem 0 3rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

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

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

  .btn {
    width: 100%;
  }
}
