:root {
  color-scheme: dark;
  --bg-base: #081324;
  --bg-top: #0c1a31;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f7f8fb;
  --accent-cyan: #00e5ff;
  --button-border: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.34);
  --radius-lg: 24px;
  --page-padding: clamp(10px, 1.8vh, 18px);
  --transition: 220ms ease;
  font-family: "Inter", "SF Pro Display", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 78% 18%, rgba(73, 140, 199, 0.2), transparent 18%),
    radial-gradient(circle at 22% 84%, rgba(0, 229, 255, 0.08), transparent 22%),
    linear-gradient(180deg, var(--bg-top), var(--bg-base) 62%, #07101d 100%);
}

body.landing-body,
body.content-body {
  overflow-y: auto;
}

body::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.18;
}

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

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

button {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  padding: var(--page-padding);
}

.landing-shell {
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 14px;
}

.document-shell {
  min-height: 100svh;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 40px) clamp(16px, 4vw, 28px) 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.document-page {
  width: min(100%, 760px);
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
}

.brand-mark img {
  width: clamp(44px, 5vw, 52px);
  height: clamp(44px, 5vw, 52px);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(255, 125, 47, 0.16);
}

.brand-mark span {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--button-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(12, 22, 40, 0.96), rgba(8, 15, 28, 0.98));
  box-shadow: var(--shadow-soft);
  opacity: 0.82;
}

.app-store-button svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

.app-store-text {
  display: grid;
}

.app-store-text strong {
  font-size: clamp(0.94rem, 1.3vw, 1.02rem);
}

.page-bottom-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.page-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 0.88rem;
  color: rgba(232, 237, 247, 0.48);
}

.page-bottom-links a {
  color: inherit;
  transition: color var(--transition);
}

.page-bottom-links a:hover,
.page-bottom-links a:focus-visible,
.page-bottom-links a[aria-current="page"] {
  color: rgba(247, 248, 251, 0.84);
}

.landing-simple {
  width: min(100%, 560px);
  margin-top: auto;
  padding-top: clamp(26px, 6vh, 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.landing-shell .page-bottom-footer {
  margin-top: auto;
}

.landing-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.landing-brand-icon {
  width: clamp(92px, 11vw, 132px);
  height: clamp(92px, 11vw, 132px);
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(255, 125, 47, 0.16);
}

.landing-brand-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.landing-store-button {
  align-self: center;
  justify-content: center;
}

.landing-product-note {
  width: 100%;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(0, 229, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 18, 34, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  text-align: left;
}

.landing-note-title {
  margin: 0;
  color: rgba(232, 237, 247, 0.56);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-note-lead {
  margin: 12px 0 0;
  color: rgba(247, 248, 251, 0.92);
  font-size: 1rem;
  line-height: 1.72;
}

.landing-note-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: rgba(232, 237, 247, 0.78);
  line-height: 1.78;
}

.landing-note-list li + li {
  margin-top: 10px;
}

.landing-note-list strong {
  color: var(--text-primary);
}

.document-brand-mark {
  margin-bottom: 22px;
}

.document-header {
  display: grid;
  gap: 12px;
}

.document-kicker {
  margin: 0;
  color: rgba(232, 237, 247, 0.52);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.document-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.document-summary,
.document-meta {
  margin: 0;
  color: rgba(232, 237, 247, 0.62);
  font-size: 1rem;
  line-height: 1.7;
}

.document-body {
  margin-top: 28px;
}

.document-body section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.document-body h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.document-body h3 {
  margin: 22px 0 8px;
  font-size: 0.98rem;
}

.document-body p {
  margin: 0;
  color: rgba(232, 237, 247, 0.76);
  line-height: 1.8;
}

.document-body p + p {
  margin-top: 14px;
}

.document-body ul,
.document-body ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: rgba(232, 237, 247, 0.76);
  line-height: 1.8;
}

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

.inline-link {
  color: #97f3ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.milestone-list {
  display: grid;
  gap: 18px;
}

.milestone-card {
  padding: clamp(18px, 2.3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 18, 34, 0.82);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.milestone-card-current {
  background:
    radial-gradient(circle at top right, rgba(0, 229, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 18, 34, 0.86);
}

.milestone-header {
  display: grid;
  gap: 8px;
}

.milestone-label {
  margin: 0;
  color: rgba(232, 237, 247, 0.56);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.milestone-version {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.milestone-meta {
  margin: 0;
  color: rgba(232, 237, 247, 0.66);
  line-height: 1.65;
}

.milestone-feature-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: rgba(232, 237, 247, 0.78);
  line-height: 1.8;
}

.milestone-feature-list strong {
  color: var(--text-primary);
}

@media (max-width: 760px) {
  .page-shell {
    padding: 12px;
  }

  .landing-shell {
    padding-bottom: 12px;
  }

  .brand-mark {
    gap: 10px;
  }

  .brand-mark span {
    font-size: 1rem;
  }

  .app-store-button {
    width: 100%;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .page-bottom-links {
    gap: 14px;
    font-size: 0.84rem;
  }

  .landing-simple {
    width: min(100%, 560px);
    gap: 20px;
    padding-top: 32px;
  }

  .landing-brand-block {
    gap: 16px;
  }

  .landing-brand-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .landing-product-note {
    padding: 16px 14px 14px;
    border-radius: 20px;
  }

  .landing-note-lead,
  .landing-note-list {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .document-shell {
    padding: 18px 14px 12px;
    gap: 22px;
  }

  .document-brand-mark {
    margin-bottom: 18px;
  }

  .document-body {
    margin-top: 22px;
  }

  .document-body section + section {
    margin-top: 22px;
    padding-top: 22px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-padding: 10px;
  }

  .page-shell {
    padding: 10px;
  }

  .landing-simple {
    width: min(100%, 320px);
    padding-top: 28px;
  }

  .landing-note-title {
    font-size: 0.72rem;
  }

  .landing-note-lead,
  .landing-note-list {
    font-size: 0.88rem;
  }

  .landing-brand-icon {
    width: 88px;
    height: 88px;
  }
}
