:root {
  --bg: #f6f8fb;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e1ec;
  --panel: #ffffff;
  --green: #22c55e;
  --blue: #2563eb;
  --navy: #0e1726;
  --cyan: #0891b2;
  --shadow: 0 18px 50px rgba(15, 23, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(246, 248, 251, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 225, 236, .8);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
}

.nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.nav a,
.footer-links a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--blue);
}

.footer-links a:hover {
  color: #ffffff;
  border-color: #86efac;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  padding: 80px 5vw 120px;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(circle at 78% 20%, rgba(34, 197, 94, .3), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(37, 99, 235, .28), transparent 32%),
    linear-gradient(135deg, #0e1726 0%, #152337 48%, #0b3a43 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, transparent, rgba(246, 248, 251, 1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan);
}

.hero .eyebrow {
  color: #86efac;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 8vw, 96px);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 640px;
  font-size: clamp(18px, 2vw, 23px);
  color: #dbeafe;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.button.primary {
  color: #082f49;
  background: #86efac;
}

.plan-buy,
.checkout-submit {
  width: 100%;
  margin-top: auto;
  color: #ffffff;
  background: var(--blue);
}

.button.secondary {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, .34);
  background: rgba(255, 255, 255, .08);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .85;
}

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 9px rgba(134, 239, 172, .1), 0 0 30px rgba(134, 239, 172, .6);
}

.node-a { right: 12%; top: 24%; }
.node-b { right: 32%; top: 52%; background: #60a5fa; }
.node-c { right: 18%; bottom: 18%; }
.node-d { left: 52%; top: 18%; background: #67e8f9; }

.line {
  position: absolute;
  width: 310px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 219, 254, .7), transparent);
  transform-origin: left center;
}

.line-a { right: 14%; top: 29%; transform: rotate(28deg); }
.line-b { right: 28%; top: 55%; transform: rotate(-24deg); }
.line-c { right: 22%; bottom: 22%; transform: rotate(162deg); }

.section {
  padding: 76px 5vw;
}

.section.compact {
  padding-top: 34px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid,
.plans,
.legal-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.plan,
.legal-card,
.contact-grid section {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.feature p,
.plan p,
.legal-card p {
  color: var(--muted);
}

.legal-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.legal-card h3,
.legal-card p {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--blue);
  font-weight: 800;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.doc-actions {
  margin: 0 0 18px;
}

.doc-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 8px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 800;
}

.icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #064e3b;
  background: #bbf7d0;
  font-size: 12px;
  font-weight: 900;
}

.tinted {
  background: #eaf6f2;
  border-block: 1px solid #cfe7de;
}

.plan.selected {
  border-color: rgba(37, 99, 235, .38);
  box-shadow: var(--shadow);
}

.plan {
  display: flex;
  flex-direction: column;
}

.checkout-note {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  text-align: center;
}

.checkout-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .32);
}

.checkout-dialog::backdrop {
  background: rgba(14, 23, 38, .72);
  backdrop-filter: blur(4px);
}

.checkout-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 30px;
}

.checkout-form h2,
.checkout-form p {
  margin-bottom: 0;
}

.checkout-plan {
  padding: 12px 14px;
  color: var(--navy);
  background: #eaf6f2;
  border-radius: 8px;
  font-weight: 900;
}

.checkout-form label:not(.consent) {
  margin-top: 6px;
  font-weight: 800;
}

.checkout-form input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.field-help,
.payment-caption {
  color: var(--muted);
  font-size: 13px;
}

.field-help a,
.consent a {
  color: var(--blue);
  font-weight: 700;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 8px 0;
  font-size: 14px;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.checkout-error {
  min-height: 24px;
  color: #b91c1c;
  font-weight: 700;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.checkout-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.price {
  margin-bottom: 12px;
  color: var(--navy) !important;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.price-note {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.split,
.notice {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

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

.steps li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span,
.muted {
  color: var(--muted);
}

.notice {
  margin: 0 5vw 70px;
  padding: 34px;
  border-radius: 8px;
  color: #e5eefb;
  background: linear-gradient(135deg, #122033, #18374a);
}

.notice .eyebrow {
  color: #86efac;
}

.notice p {
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 42px 5vw;
  color: #d1d5db;
  background: #0e1726;
}

.site-footer a,
.site-footer strong {
  color: #f8fafc;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer .footer-links {
  align-content: start;
  align-items: start;
  flex-direction: column;
  gap: 8px;
}

.site-footer.small {
  grid-template-columns: 1fr;
}

.legal {
  font-size: 14px;
}

.doc {
  width: min(900px, 90vw);
  margin: 0 auto;
  padding: 72px 0 90px;
}

.doc h1 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(34px, 6vw, 58px);
}

.doc section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doc a {
  color: var(--blue);
  font-weight: 700;
}

.contacts {
  width: min(1040px, 90vw);
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
}

@media (max-width: 840px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 16px;
  }

  .nav {
    gap: 10px 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .feature-grid,
  .plans,
  .legal-grid,
  .split,
  .notice,
  .site-footer,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .notice {
    margin-inline: 5vw;
  }

  .hero-bg {
    transform: translateX(22%);
  }
}

@media (max-width: 520px) {
  .section,
  .hero {
    padding-inline: 22px;
  }

  .notice {
    margin-inline: 22px;
    padding: 24px;
  }

  .site-footer {
    padding-inline: 22px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
