:root {
  color-scheme: dark;
  --page: #080b10;
  --page-alt: #0c131c;
  --surface: #111923;
  --surface-strong: #172330;
  --text: #f6f8fb;
  --text-soft: #c5ced9;
  --muted: #8492a3;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --gold: #e3ad28;
  --gold-bright: #f5c84c;
  --gold-ink: #171006;
  --blue: #1689dd;
  --blue-soft: rgba(22, 137, 221, 0.16);
  --header: rgba(8, 11, 16, 0.94);
  --hero-cover: rgba(4, 7, 11, 0.66);
  --dialog-cover: rgba(2, 4, 7, 0.78);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

html[data-theme="light"] {
  color-scheme: light;
  --page: #f4f7fa;
  --page-alt: #ffffff;
  --surface: #ffffff;
  --surface-strong: #eaf0f5;
  --text: #111821;
  --text-soft: #354352;
  --muted: #667585;
  --line: rgba(17, 24, 33, 0.12);
  --line-strong: rgba(17, 24, 33, 0.22);
  --gold: #cf9408;
  --gold-bright: #e2a718;
  --gold-ink: #ffffff;
  --blue: #0877c7;
  --blue-soft: rgba(8, 119, 199, 0.11);
  --header: rgba(255, 255, 255, 0.94);
  --hero-cover: rgba(244, 247, 250, 0.77);
  --dialog-cover: rgba(18, 25, 34, 0.48);
  --shadow: 0 20px 60px rgba(34, 49, 63, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
a,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.page-width {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.header-download,
.primary-button,
.secondary-button,
.download-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.header-download {
  height: 40px;
  padding: 0 17px;
  border: 1px solid var(--gold);
  color: var(--gold-ink);
  background: var(--gold);
  font-size: 12px;
}

.header-download svg,
.primary-button svg,
.secondary-button svg,
.download-action svg {
  width: 17px;
  height: 17px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 94px));
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #030406;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: contain;
  object-position: 78% center;
  opacity: 0.78;
  filter: saturate(0.92) contrast(1.04);
}

.hero-shade {
  background: rgba(3, 4, 6, 0.42);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 74px 92px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--blue);
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 78px;
  line-height: 0.95;
  font-weight: 850;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.hero-copy {
  max-width: 580px;
  margin: 25px 0 0;
  color: #c9d1da;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 520;
}

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

.primary-button,
.secondary-button {
  min-width: 184px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 13px;
}

.primary-button {
  color: var(--gold-ink);
  border-color: var(--gold-bright);
  background: var(--gold);
  box-shadow: 0 12px 34px rgba(227, 173, 40, 0.18);
}

.primary-button:hover:not(:disabled),
.header-download:hover,
.download-action:hover {
  background: var(--gold-bright);
}

.primary-button:disabled {
  cursor: default;
  opacity: 0.46;
}

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

.secondary-button:hover {
  border-color: var(--gold);
}

.release-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  color: #93a0ae;
  font-size: 11px;
  font-weight: 650;
}

.live-dot {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.section-cue {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #dce3eb;
  background: rgba(8, 11, 16, 0.88);
}

.section-cue svg {
  width: 19px;
}

.story-section,
.launcher-section,
.community-section {
  padding: 100px 0;
}

.story-section {
  background: var(--page-alt);
  border-bottom: 1px solid var(--line);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 88px;
  align-items: start;
}

.section-heading h2 {
  max-width: 650px;
  margin: 0;
  color: var(--text);
  font-size: 40px;
  line-height: 1.12;
  font-weight: 800;
}

.section-heading > p:last-child,
.launcher-heading > p {
  color: var(--muted);
  line-height: 1.6;
}

.story-copy {
  padding-top: 22px;
  border-top: 2px solid var(--gold);
}

.story-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.75;
}

.story-copy .story-note {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 2px solid var(--blue);
  color: var(--muted);
  font-size: 13px;
}

.launcher-section {
  background: var(--page);
}

.launcher-heading {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: end;
}

.launcher-heading > p {
  margin: 0;
  font-size: 14px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 58px;
  border-block: 1px solid var(--line);
}

.feature-strip > div {
  min-width: 0;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.feature-strip > div:last-child {
  border-right: 0;
}

.feature-strip svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--gold);
}

.download-list {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.launcher-preview {
  margin: 42px 0 0;
}

.launcher-preview img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.launcher-preview figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.launcher-preview figcaption span:first-child {
  color: var(--gold);
}

.download-option {
  min-height: 104px;
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) auto 128px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.download-option.recommended {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.platform-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue);
  background: var(--surface);
}

.platform-icon svg {
  width: 21px;
  height: 21px;
}

.download-option h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.download-option p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.recommended-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-action {
  height: 44px;
  padding: 0 15px;
  border: 1px solid var(--gold);
  color: var(--gold-ink);
  background: var(--gold);
  font-size: 11px;
}

.release-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.community-section {
  border-block: 1px solid var(--line);
  background: var(--page-alt);
}

.community-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 90px;
}

.community-layout .section-heading > p:last-child {
  margin: 20px 0 0;
  font-size: 14px;
}

.social-links {
  border-top: 1px solid var(--line);
}

.social-link {
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.social-link > svg:first-child {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 7px;
  color: #ffffff;
}

.social-link.discord > svg:first-child {
  background: #5865f2;
}

.social-link.telegram > svg:first-child {
  background: #229ed9;
}

.social-link > svg:last-child {
  width: 18px;
  color: var(--muted);
}

.social-link span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.social-link strong {
  font-size: 15px;
}

.social-link small {
  color: var(--muted);
  font-size: 11px;
}

.social-link:hover > svg:last-child {
  color: var(--gold);
}

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  background: var(--page);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.footer-link {
  justify-self: end;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--gold);
}

.agreement-dialog {
  width: min(650px, calc(100% - 32px));
  max-height: min(760px, calc(100svh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.agreement-dialog::backdrop {
  background: var(--dialog-cover);
  backdrop-filter: blur(8px);
}

.agreement-shell {
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100svh - 32px));
}

.agreement-header,
.agreement-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
}

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

.agreement-header .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}

.agreement-header h2 {
  margin: 0;
  font-size: 23px;
}

.agreement-body {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px;
}

.agreement-body > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.agreement-body ol {
  margin: 20px 0;
  padding-left: 22px;
  color: var(--text-soft);
}

.agreement-body li {
  margin: 0 0 12px;
  padding-left: 7px;
  font-size: 12px;
  line-height: 1.55;
}

.agreement-body li::marker {
  color: var(--gold);
  font-weight: 800;
}

.agreement-check {
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: var(--page-alt);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.agreement-check input {
  position: absolute;
  opacity: 0;
}

.check-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: transparent;
  background: var(--surface);
}

.check-mark svg {
  width: 15px;
  height: 15px;
}

.agreement-check input:checked + .check-mark {
  color: var(--gold-ink);
  border-color: var(--gold);
  background: var(--gold);
}

.agreement-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.agreement-actions .secondary-button,
.agreement-actions .primary-button {
  min-width: 136px;
  min-height: 44px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 18px;
  }

  .main-nav {
    display: none;
  }

  .hero h1 {
    font-size: 62px;
  }

  .story-layout,
  .launcher-heading,
  .community-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-strip > div:nth-child(2) {
    border-right: 0;
  }

  .feature-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .download-option {
    grid-template-columns: 48px minmax(0, 1fr) 120px;
  }

  .recommended-label {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-width {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    height: 64px;
  }

  .brand span,
  .header-download span {
    display: none;
  }

  .header-download {
    width: 40px;
    padding: 0;
  }

  .hero {
    min-height: calc(100svh - 86px);
  }

  .hero-media {
    object-position: 58% center;
    opacity: 0.54;
  }

  .hero-content {
    padding-block: 62px 86px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy {
    max-width: 360px;
    font-size: 17px;
  }

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

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

  .section-cue {
    right: 16px;
    bottom: 16px;
  }

  .story-section,
  .launcher-section,
  .community-section {
    padding: 72px 0;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .story-copy p {
    font-size: 16px;
  }

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

  .feature-strip > div {
    height: 68px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-strip > div:last-child {
    border-bottom: 0;
  }

  .download-option,
  .download-option.recommended {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 18px 0;
    border-left: 0;
  }

  .download-action {
    width: 100%;
    grid-column: 1 / -1;
  }

  .release-meta {
    text-align: left;
  }

  .site-footer {
    min-height: 82px;
  }

  .footer-link {
    max-width: 130px;
    text-align: right;
  }

  .agreement-header,
  .agreement-actions {
    padding: 16px;
  }

  .agreement-body {
    padding: 18px 16px;
  }

  .agreement-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .agreement-actions .secondary-button,
  .agreement-actions .primary-button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
