@property --gradient-x1 {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 18%;
}

@property --gradient-y1 {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 24%;
}

@property --gradient-x2 {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 78%;
}

@property --gradient-y2 {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 38%;
}

@property --gradient-x3 {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 42%;
}

@property --gradient-y3 {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 82%;
}

:root {
  color-scheme: dark;
  --bg: #05030a;
  --text: #fdfdfd;
  --muted: #c7c7c7;
  --accent-pink: #ff6fe8;
  --accent-green: #6fffc1;
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.14);
  --shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
  font-synthesis: none;
  transition:
    --gradient-x1 12s ease-in-out,
    --gradient-y1 12s ease-in-out,
    --gradient-x2 14s ease-in-out,
    --gradient-y2 14s ease-in-out,
    --gradient-x3 16s ease-in-out,
    --gradient-y3 16s ease-in-out;
}

@font-face {
  font-family: "Roboto Flex";
  src: url("RobotoFlex-Latin-Cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #000;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 52% at var(--gradient-x1) var(--gradient-y1), #121416 0%, rgba(18, 20, 22, 0.72) 24%, transparent 66%),
    radial-gradient(ellipse 52% 64% at var(--gradient-x2) var(--gradient-y2), #101214 0%, rgba(16, 18, 20, 0.62) 22%, transparent 68%),
    radial-gradient(ellipse 62% 50% at var(--gradient-x3) var(--gradient-y3), #0c0e10 0%, rgba(12, 14, 16, 0.55) 24%, transparent 70%);
  filter: blur(54px);
  opacity: 1;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    transition: none;
  }
}

body::after {
  content: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 111, 232, 0.4) 1px, transparent 0),
    radial-gradient(circle, rgba(111, 255, 193, 0.3) 1px, transparent 0);
  background-size: 160px 160px, 220px 220px;
  background-position: 0 0, 60px 80px;
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: driftDots 26s linear infinite;
  z-index: 0;
}

.spark-field {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.spark-field span {
  font-size: clamp(46px, 20vw, 140px);
  letter-spacing: 30px;
  line-height: 1.2;
  color: rgba(255, 111, 232, 0.16);
  filter: drop-shadow(0 0 22px rgba(255, 111, 232, 0.4));
  animation: drift 18s linear infinite;
  text-align: center;
  display: block;
}

.spark-field span.secondary {
  color: rgba(111, 255, 193, 0.18);
  letter-spacing: 36px;
  animation: driftAlt 22s linear infinite reverse;
  filter: drop-shadow(0 0 18px rgba(111, 255, 193, 0.35));
}

@keyframes drift {
  from {
    transform: translate3d(-30px, 0, 0) rotate(-1deg);
  }
  to {
    transform: translate3d(60px, -24px, 0) rotate(1deg);
  }
}

@keyframes driftAlt {
  from {
    transform: translate3d(40px, -18px, 0) rotate(1deg);
  }
  to {
    transform: translate3d(-50px, 26px, 0) rotate(-1deg);
  }
}

@keyframes driftDots {
  from {
    background-position: 0 0, 60px 80px;
  }
  to {
    background-position: 220px -140px, -140px 220px;
  }
}

@keyframes float {
  0% {
    transform: translateY(-12px) scale(1);
  }
  50% {
    transform: translateY(14px) scale(1.02);
  }
  100% {
    transform: translateY(-8px) scale(1.01);
  }
}

a {
  color: var(--text);
  text-decoration: none;
  font-family: "Roboto Flex", "Arial Narrow", Arial, sans-serif;
  font-weight: 900;
  font-stretch: 120%;
  font-variation-settings: "wght" 900, "wdth" 120;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-green);
}

img {
  max-width: 100%;
  height: auto;
}

main {
  position: relative;
  z-index: 2;
}

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 160px 22px 220px;
}

.landing__title {
  margin: 0;
  font-size: clamp(120px, 24vw, 220px);
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-shadow: 0 12px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(111, 255, 193, 0.25),
    0 0 110px rgba(255, 111, 232, 0.28);
}

.page-content {
  max-width: 940px;
  margin: 0 auto;
  padding: 140px 22px 220px;
  position: relative;
  z-index: 1;
}

.page-title {
  margin: 12px 0 12px;
  font-size: clamp(36px, 6vw, 82px);
  letter-spacing: -0.02em;
}

.page-lede {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.section-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.section-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.section-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-card ul {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
  margin: 0;
}

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

.home-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.home-chip:hover,
.home-chip:focus-visible {
  border-color: rgba(111, 255, 193, 0.8);
  color: var(--text);
}

.page-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  justify-content: center;
  width: 100%;
  padding: 20px 0 40px;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.copyright a {
  color: inherit;
  border-bottom: 0;
}

.copyright a:hover,
.copyright a:focus-visible {
  color: var(--accent-green);
}

.release-title,
.releases-list h2,
.back-button,
.home-chip {
  font-family: "Roboto Flex", "Arial Narrow", Arial, sans-serif;
  font-weight: 1000;
  font-stretch: 140%;
  font-variation-settings: "wght" 1000, "wdth" 140;
}

.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  border: none;
  z-index: 1000;
  transition: background 0.3s ease;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menu-bar::-webkit-scrollbar {
  display: none;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
  position: relative;
}

.menu-link img {
  max-height: 44px;
  width: auto;
  transition: transform 0.3s ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  transform: translateY(-2px);
}


.menu-link[aria-current="page"] {
  box-shadow: none;
}

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

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

.links-list a:hover {
  color: var(--accent-green);
}

@media (max-width: 820px) {
  .menu-bar {
    gap: 10px;
    padding: 12px;
  }
}

@media (max-width: 640px) {
  .landing { padding: 140px 16px 200px; }
  .landing__title { font-size: clamp(92px, 26vw, 180px); }
  .page-content { padding: 120px 16px 200px; }
  .menu-bar {
    padding: 15px 10px;
    justify-content: space-around;
    gap: 0;
  }
}

.gg-lang-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.55);
  backdrop-filter: blur(12px);
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.gg-lang-switch:hover,
.gg-lang-switch:focus-within {
  opacity: 1;
}

.gg-lang-switch .gg-lang-btn,
.gg-lang-switch .gg-mode-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  font: 600 11px/1 "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.gg-lang-switch .gg-lang-btn:hover,
.gg-lang-switch .gg-mode-btn:hover {
  color: var(--text);
}

.gg-lang-switch .gg-lang-btn.active,
.gg-lang-switch .gg-mode-btn.active {
  color: #08100d;
  background: var(--accent-green);
}

.gg-lang-switch .gg-lang-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 2px;
}

.gg-lang-switch .gg-mode-group {
  display: flex;
  gap: 4px;
}

@media (max-width: 600px) {
  .gg-lang-switch {
    top: 8px;
    right: 8px;
    padding: 5px;
    gap: 3px;
  }

  .gg-lang-switch .gg-lang-btn,
  .gg-lang-switch .gg-mode-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
}
