:root {
  --bg: #07111b;
  --bg-2: #101a25;
  --panel: rgba(11, 20, 31, 0.86);
  --panel-strong: rgba(5, 12, 20, 0.95);
  --text: #eef6fb;
  --muted: #aebdcc;
  --line: rgba(128, 213, 255, 0.18);
  --gold: #caa66a;
  --red: #b94b5a;
  --cyan: #80d5ff;
  --violet: #8b83d6;
  --green: #69d69a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(128, 213, 255, 0.15), transparent 34rem),
    radial-gradient(circle at 86% 18%, rgba(185, 75, 90, 0.14), transparent 28rem),
    linear-gradient(135deg, #050b12 0%, var(--bg-2) 46%, #140d17 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-visible {
  background: rgba(5, 9, 15, 0.9);
  border-color: var(--line);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 36px, var(--content));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  direction: ltr;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(202, 166, 106, 0.62);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(202, 166, 106, 0.24), rgba(128, 213, 255, 0.13)),
    rgba(255, 255, 255, 0.07);
  color: var(--gold);
  box-shadow: 0 12px 32px rgba(128, 213, 255, 0.12);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
}

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

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(128, 213, 255, 0.09);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link-main {
  border: 1px solid rgba(202, 166, 106, 0.58);
  color: #fff3d0;
  background:
    linear-gradient(135deg, rgba(202, 166, 106, 0.22), rgba(185, 75, 90, 0.12)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(202, 166, 106, 0.12);
}

.nav-link-main:hover,
.nav-link-main:focus-visible {
  border-color: rgba(202, 166, 106, 0.82);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(202, 166, 106, 0.32), rgba(128, 213, 255, 0.12)),
    rgba(255, 255, 255, 0.09);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle {
  gap: 5px;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.13);
}

.button-primary {
  border-color: rgba(202, 166, 106, 0.78);
  color: #120d0d;
  background: linear-gradient(135deg, #ead49c, var(--gold) 52%, #9d3f4e);
  box-shadow: 0 18px 40px rgba(202, 166, 106, 0.22);
}

.button-primary:hover {
  box-shadow: 0 22px 54px rgba(185, 75, 90, 0.28);
}

.button-main-site {
  min-height: 58px;
  padding-inline: 26px;
  font-size: 1.02rem;
  box-shadow: 0 22px 58px rgba(202, 166, 106, 0.32);
}

.button-ghost {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100svh - 18px);
  padding: 118px 0 72px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 10, 16, 0.93), rgba(7, 17, 27, 0.56) 48%, rgba(4, 10, 16, 0.8)),
    radial-gradient(circle at 68% 35%, rgba(128, 213, 255, 0.14), transparent 28rem),
    linear-gradient(180deg, rgba(5, 9, 15, 0.08), rgba(7, 17, 27, 0.78)),
    url("images/a071573c-84ef-4105-bceb-ba8db7ff29db.webp") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title,
.page-title,
.section-title {
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
}

.hero-title {
  max-width: 760px;
  font-size: 5.75rem;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.62);
}

.hero-title span {
  display: block;
  color: var(--gold);
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: #e4e9ee;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(138px, 1fr));
  gap: 20px;
}

.social-link {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.social-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-link span {
  position: relative;
  z-index: 1;
  min-width: 78px;
  margin-bottom: 18px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 9, 15, 0.72);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(240, 184, 90, 0.6);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.4), 0 0 36px rgba(240, 184, 90, 0.18);
}

.section {
  padding: 82px 0;
}

.section-compact {
  padding: 54px 0;
}

.section-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-title {
  font-size: 2.35rem;
}

.section-lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat-item {
  min-height: 128px;
  padding: 24px;
  background: rgba(9, 15, 23, 0.76);
}

.stat-value {
  display: block;
  color: var(--gold);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(128, 213, 255, 0.06), rgba(185, 75, 90, 0.045)), rgba(255, 255, 255, 0.035);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 24px;
}

.card-spaced {
  margin-top: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

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

.realm-card {
  display: grid;
  gap: 18px;
}

.realm-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.realm-card-link:hover,
.realm-card-link:focus-visible {
  border-color: rgba(128, 213, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(128, 213, 255, 0.11), rgba(202, 166, 106, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.realm-card-link:focus-visible {
  outline: 2px solid rgba(128, 213, 255, 0.74);
  outline-offset: 4px;
}

.realm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e9eef5;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.83rem;
  font-weight: 800;
}

.tag-cyan {
  border-color: rgba(89, 199, 232, 0.32);
  color: #d8f7ff;
  background: rgba(89, 199, 232, 0.12);
}

.tag-red {
  border-color: rgba(228, 85, 85, 0.34);
  color: #ffe0e0;
  background: rgba(228, 85, 85, 0.12);
}

.tag-gold {
  border-color: rgba(240, 184, 90, 0.34);
  color: #ffe8bd;
  background: rgba(240, 184, 90, 0.12);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 36px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: steps;
}

.step {
  display: block;
  position: relative;
  padding: 22px 22px 22px 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.step-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.step-link:hover,
.step-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 184, 90, 0.56);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  outline: none;
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #15110a;
  background: var(--gold);
  font-weight: 900;
}

.step h3 {
  margin: 0 0 8px;
}

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

.step-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 6px;
  color: #120f0a;
  background: var(--gold);
  font-weight: 900;
}

.page-hero {
  padding: 134px 0 66px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(3, 10, 16, 0.93), rgba(7, 17, 27, 0.66)),
    url("images/a071573c-84ef-4105-bceb-ba8db7ff29db.webp") center 42% / cover no-repeat;
}

.page-title {
  max-width: 860px;
  font-size: 4rem;
}

.page-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e4e9ee;
  font-size: 1.1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #f6dfb2;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td {
  color: #e9eef5;
}

.online-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dcffe9;
  font-weight: 800;
}

.online-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(94, 208, 145, 0.12);
}

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

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

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

.code-line {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid rgba(89, 199, 232, 0.24);
  border-radius: var(--radius);
  color: #daf7ff;
  background: rgba(5, 9, 15, 0.78);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
}

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

.download-card .button {
  margin-top: 18px;
}

[dir="rtl"] .step {
  padding: 22px 72px 22px 22px;
}

[dir="rtl"] .step::before {
  right: 22px;
  left: auto;
}

[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td {
  text-align: right;
}

[dir="rtl"] .footer-links {
  justify-content: flex-start;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 15, 0.84);
}

.footer-inner {
  width: min(100% - 40px, var(--content));
  min-height: 112px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

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

.footer-links a {
  color: #e1e7ee;
  font-weight: 700;
}

[data-animate] {
  opacity: 1;
  transform: none;
}

.can-animate [data-animate] {
  animation: fade-up 520ms ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: 34px;
  }

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

@media (max-width: 920px) {
  .menu-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 84px;
    display: grid;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 9, 15, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-social {
    max-width: 560px;
  }

  .card-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container,
  .footer-inner {
    width: min(100% - 28px, var(--content));
  }

  .header-inner {
    width: min(100% - 28px, var(--content));
    min-height: 68px;
  }

  .brand-text span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 102px 0 56px;
  }

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

  .hero-copy,
  .page-copy {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-social {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 14px;
  }

  .social-link span {
    min-width: 68px;
    margin-bottom: 12px;
    font-size: 0.78rem;
  }

  .section {
    padding: 58px 0;
  }

  .section-title {
    font-size: 1.95rem;
  }

  .page-hero {
    padding: 112px 0 50px;
  }

  .page-title {
    font-size: 2.7rem;
  }

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

  .stat-item {
    min-height: auto;
  }

  .info-list li {
    display: grid;
    gap: 6px;
  }

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

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

@media (max-width: 430px) {
  .hero-title {
    font-size: 2.62rem;
  }

  .page-title {
    font-size: 2.28rem;
  }

  .hero-social {
    grid-template-columns: 1fr 1fr;
  }

  .step {
    padding: 68px 18px 20px;
  }

  .step::before {
    left: 18px;
    top: 18px;
  }

  [dir="rtl"] .step {
    padding: 68px 18px 20px;
  }

  [dir="rtl"] .step::before {
    right: 18px;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
