:root {
  --bg: #090a0d;
  --bg-soft: #11131a;
  --surface: #151821;
  --surface-2: #1b1f2a;
  --text: #f6f7fb;
  --muted: #aeb5c4;
  --quiet: #737b8d;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #5965ff;
  --primary-2: #ff5d91;
  --mint: #35d39d;
  --warning: #ffbf5f;
  --danger: #ff5570;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(89, 101, 255, 0.22), transparent 34%),
    linear-gradient(315deg, rgba(53, 211, 157, 0.14), transparent 36%),
    #090a0d;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 10, 13, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.nav a.active,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a.active,
.nav a[aria-current="page"] {
  padding: 6px 9px;
  border: 1px solid rgba(89, 101, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 22px rgba(89, 101, 255, 0.18);
}

.nav-docs {
  flex: 1;
  min-width: 0;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
}

.nav-docs a {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-switch a {
  min-width: 42px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lang-switch a.active {
  color: #fff;
  background: var(--primary);
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 10, 13, 0.38), #090a0d 92%),
    linear-gradient(90deg, rgba(9, 10, 13, 0.92), rgba(9, 10, 13, 0.48)),
    var(--hero-image) right 8% center / min(58vw, 620px) no-repeat;
  opacity: 0.96;
}

.hero-content {
  width: min(720px, 100%);
  padding: 82px 0 96px;
}

.hero-layout {
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: 48px;
}

.hero-visual {
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(89, 101, 255, 0.22), rgba(255, 93, 145, 0.16)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-visual img {
  width: min(70%, 250px);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(53, 211, 157, 0.3);
  border-radius: 999px;
  color: #a5f5d7;
  background: rgba(53, 211, 157, 0.08);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

h1 {
  margin-top: 22px;
  max-width: 780px;
  font-size: 58px;
  line-height: 1.02;
}

.lead {
  width: min(620px, 100%);
  margin: 22px 0 0;
  color: #d7dbea;
  font-size: 19px;
}

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

.button,
.plain-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.plain-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 38px rgba(89, 101, 255, 0.32);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.plain-button {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.trust-row li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 78px 0;
}

.section.compact {
  padding: 44px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 34px;
  line-height: 1.14;
}

.section-heading p {
  width: min(460px, 100%);
  margin: 0;
  color: var(--muted);
}

.feature-grid,
.plan-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.plan,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 24, 33, 0.86);
  box-shadow: var(--shadow);
}

.card,
.info-card {
  padding: 24px;
}

.card strong,
.info-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
}

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

.card-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.story-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  counter-increment: steps;
}

.step::before {
  content: "0" counter(steps);
  display: block;
  margin-bottom: 20px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 900;
}

.step h3 {
  font-size: 20px;
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.plan {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.plan.featured {
  border-color: rgba(255, 93, 145, 0.46);
}

.plan.max {
  border-color: rgba(255, 191, 95, 0.5);
}

.plan-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.plan h3 {
  margin-top: 14px;
  font-size: 26px;
}

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

.plan li {
  margin: 8px 0;
}

.legal-strip {
  border-top: 1px solid var(--line);
  background: #07080b;
}

.legal-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

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

.footer {
  border-top: 1px solid var(--line);
  background: #050609;
  color: var(--quiet);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 28px;
  padding: 36px 0;
}

.footer strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
}

.footer p {
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  font-size: 14px;
}

.footer-links a {
  color: #cbd1df;
}

.footer-links a:hover {
  color: #fff;
}

.article {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 0;
  font-size: 40px;
}

.meta {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  color: var(--quiet);
  font-size: 14px;
}

.article-body h2 {
  margin: 42px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
}

.article-body h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body li {
  margin: 8px 0;
}

.notice {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid rgba(53, 211, 157, 0.28);
  border-radius: var(--radius);
  background: rgba(53, 211, 157, 0.08);
}

.warning {
  border-color: rgba(255, 191, 95, 0.34);
  background: rgba(255, 191, 95, 0.08);
}

.danger {
  border-color: rgba(255, 85, 112, 0.34);
  background: rgba(255, 85, 112, 0.08);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.summary-grid .info-card {
  padding: 18px;
}

.fine-print {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 14px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 6, 9, 0.82);
  backdrop-filter: blur(10px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-box h3 {
  font-size: 24px;
}

.modal-box p {
  color: var(--muted);
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

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

  h1 {
    font-size: 44px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(9, 10, 13, 0.44), #090a0d 94%),
      linear-gradient(90deg, rgba(9, 10, 13, 0.9), rgba(9, 10, 13, 0.55)),
      var(--hero-image) right -80px center / 520px no-repeat;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-visual {
    justify-self: start;
    width: min(260px, 72vw);
    margin-bottom: 54px;
  }

  .feature-grid,
  .plan-grid,
  .info-grid,
  .steps,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-strip-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .topbar-inner {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-content {
    padding: 56px 0 20px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(9, 10, 13, 0.35), #090a0d 92%),
      linear-gradient(90deg, rgba(9, 10, 13, 0.94), rgba(9, 10, 13, 0.58)),
      var(--hero-image) right -130px center / 420px no-repeat;
  }

  .hero-layout {
    min-height: auto;
  }

  .hero-visual {
    width: min(220px, 68vw);
    margin-bottom: 54px;
  }

  .actions,
  .header-actions {
    gap: 8px;
  }

  .button,
  .plain-button {
    width: 100%;
  }

  .topbar .plain-button {
    width: auto;
    min-height: 38px;
    padding: 0 12px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading h2,
  .article-header h1 {
    font-size: 30px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}
