:root {
  color-scheme: dark;

  --background: #080d1c;
  --background-soft: #0e1428;
  --surface: #171d36;
  --surface-soft: #202844;
  --border: #303958;

  --text: #f7f4ff;
  --text-soft: #c5cce0;
  --text-muted: #929dbc;

  --primary: #c8adff;
  --primary-strong: #b695ff;
  --primary-text: #171126;
  --accent: #67e8f9;
  --danger: #ff9b9b;

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --content-width: 1120px;
  --reading-width: 760px;
  --radius-large: 28px;
  --radius-medium: 18px;
  --radius-small: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(103, 232, 249, 0.08), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(200, 173, 255, 0.13), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(48, 57, 88, 0.75);
  background: rgba(8, 13, 28, 0.88);
  backdrop-filter: blur(18px);
}

.navigation {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand span {
  color: var(--primary);
}

.navigation-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.navigation-links a {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 800;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  background: var(--primary-strong);
  color: var(--primary-text);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--primary);
  background: var(--surface-soft);
  color: var(--text);
}

.hero {
  padding: 104px 0 86px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid rgba(200, 173, 255, 0.35);
  border-radius: 999px;
  background: rgba(200, 173, 255, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 25px auto 22px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero h1 span {
  color: var(--primary);
}

.hero-description {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.feature-section {
  padding: 34px 0 100px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

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

.feature-card {
  min-height: 220px;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(145deg, rgba(200, 173, 255, 0.07), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow);
}

.feature-number {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.feature-card h3 {
  margin: 34px 0 10px;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
}

.page-hero {
  padding: 80px 0 36px;
}

.page-hero-inner {
  width: min(100%, var(--reading-width));
  margin-inline: auto;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.page-hero p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.document {
  width: min(calc(100% - 40px), var(--reading-width));
  margin: 0 auto 100px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document h2 {
  margin: 42px 0 10px;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.document h2:first-child {
  margin-top: 0;
}

.document h3 {
  margin: 28px 0 8px;
  font-size: 1.14rem;
}

.document p,
.document li {
  color: var(--text-soft);
}

.document ul,
.document ol {
  padding-left: 1.4rem;
}

.document li + li {
  margin-top: 8px;
}

.document strong {
  color: var(--text);
}

.notice {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: var(--radius-small);
  background: rgba(103, 232, 249, 0.06);
}

.notice p {
  margin: 0;
}

.danger-notice {
  border-color: rgba(255, 155, 155, 0.28);
  background: rgba(255, 155, 155, 0.06);
}

.danger-notice strong {
  color: var(--danger);
}

.steps {
  margin: 28px 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 48px;
  padding-left: 62px;
  counter-increment: steps;
}

.steps li + li {
  margin-top: 22px;
}

.steps li::before {
  position: absolute;
  top: -4px;
  left: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
  content: counter(steps);
  font-weight: 850;
}

.contact-card {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--background-soft);
}

.contact-card h2,
.contact-card h3 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 10, 22, 0.72);
}

.footer-inner {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.code-value {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--background-soft);
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .navigation {
    min-height: 68px;
  }

  .navigation-links a:not(.button) {
    display: none;
  }

  .hero {
    padding: 78px 0 65px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .page-hero {
    padding-top: 60px;
  }

  .document {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 40px 0;
  }

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

@media (max-width: 480px) {
  .container,
  .document {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .navigation-links .button {
    min-height: 42px;
    padding-inline: 17px;
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .document {
    padding: 24px 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}