@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f8f4fa;
  --muted: #b4a9bf;
  --subtle: #a398ae;
  --surface: #151019;
  --page: #0e0b11;
  --line: #2e2437;
  --accent: var(--colorMain, #c203fc);
  --orchid: #e393ff;
  --button: #a605d4;
  --radius: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Geist, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

[hidden] { display: none !important; }

h1, h2, h3, p, figure { margin: 0; }

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

button { font: inherit; }

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

:focus-visible {
  outline: 2px solid var(--orchid);
  outline-offset: 4px;
}

.shell {
  width: min(1240px, 100% - 96px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: .65rem 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  transform: translateY(-170%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #100c14ed;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 73px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.brand-client { color: var(--muted); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 530;
}

.primary-nav a,
.text-link { transition: color 150ms ease; }

.primary-nav a:hover,
.text-link:hover { color: var(--orchid); }

.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: .65rem 1.06rem;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 660;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.button span[aria-hidden] { font-size: 17px; }

.button-outline {
  border-color: #443052;
  background: #1a1023;
}

.button-outline:hover {
  border-color: #a543ce;
  background: #271535;
}

.button-primary {
  border-color: #cd65f1;
  background: var(--button);
  color: #fff;
  box-shadow: 0 4px 24px #9f02d035;
}

.button-primary:hover { background: #b31cdb; }

.nav-download {
  min-height: 40px;
  justify-self: end;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 81% 51%, #311241 0, #160d1e 42%, var(--page) 72%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to right, #bd73e512 1px, transparent 1px),
    linear-gradient(to bottom, #bd73e512 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 68% 94% at 77% 46%, #000 14%, transparent 80%);
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(60px, 7vw, 105px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e9affb;
  font-size: 12px;
  font-weight: 670;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.edition-marker,
.preview-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 15px #c203fc9c;
}

.hero h1 {
  margin: 15px 0 23px;
  font-size: clamp(72px, 8.35vw, 133px);
  font-weight: 830;
  line-height: .85;
  letter-spacing: -.059em;
}

.hero h1 span {
  display: block;
  padding-bottom: .075em;
  color: #d490ff;
  background: linear-gradient(110deg, #eac1ff 0%, #cf58f9 57%, #ae27e2 95%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 390px;
  color: #d7cde0;
  font-size: clamp(16px, 1.42vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 26px;
}

.text-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  color: #dfd0e9;
  font-size: 14px;
  font-weight: 620;
}

.release-note {
  margin-top: 13px;
  color: var(--subtle);
  font-size: 12px;
}

.hero-preview {
  overflow: hidden;
  border: 1px solid #56366b;
  border-radius: var(--radius);
  background: #150d1c;
  box-shadow: 0 24px 90px #08040dc9, 0 0 44px #a323e223;
}

.preview-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: #d9cae4;
  border-bottom: 1px solid #543367;
  font-size: 12px;
  font-weight: 550;
}

.preview-bar > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-bar > span:last-child { color: var(--muted); }

.hero-preview a {
  display: block;
  outline-offset: -4px;
}

.hero-preview img,
.gallery-image img {
  width: 100%;
  height: auto;
}

.compatibility {
  border-bottom: 1px solid var(--line);
  background: #110d16;
}

.compatibility-list {
  display: grid;
  grid-template-columns: .8fr 1fr 1.2fr;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.compatibility-list li {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 89px;
  padding: 14px clamp(12px, 3vw, 45px);
  border-right: 1px solid var(--line);
}

.compatibility-list li:first-child { padding-left: 0; }
.compatibility-list li:last-child { border: 0; }

.compatibility-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.compatibility-list strong {
  font-size: clamp(14px, 1.65vw, 21px);
  font-weight: 650;
  line-height: 1.25;
}

.version-divider {
  padding-inline: .2em;
  color: var(--orchid);
}

.section { padding-block: clamp(58px, 6.25vw, 90px); }

.section-heading { margin-bottom: 25px; }

h2 {
  font-size: clamp(32px, 4.1vw, 55px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -.058em;
}

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

.feature {
  min-width: 0;
  padding: clamp(19px, 2.3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #17101e, #120e17 80%);
}

.feature-icon {
  display: grid;
  width: 39px;
  height: 39px;
  margin-bottom: 17px;
  place-items: center;
  color: var(--orchid);
  border: 1px solid #57316e;
  border-radius: 8px;
  background: #281436;
  font-family: "Segoe UI Symbol", sans-serif;
  font-size: 21px;
  line-height: 1;
}

.terminal-icon {
  font-family: Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
}

.feature h3 {
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -.028em;
  line-height: 1.25;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-section {
  border-block: 1px solid var(--line);
  background: #100c15;
}

.gallery-enhanced {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(204px, 1fr);
  grid-template-areas: "stage controls";
  gap: 16px;
  align-items: start;
}

.gallery-stage {
  display: grid;
  grid-area: stage;
  gap: 18px;
}

.gallery-stage figure {
  overflow: hidden;
  border: 1px solid #46314f;
  border-radius: 12px;
  background: var(--surface);
}

.gallery-image {
  position: relative;
  display: block;
  outline-offset: -4px;
}

.enlarge-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  color: var(--ink);
  border: 1px solid #876598;
  border-radius: 5px;
  background: #100a18f0;
  font-size: 12px;
  line-height: 1.25;
}

.gallery-image:is(:hover, :focus-visible) .enlarge-label {
  border-color: var(--orchid);
}

.gallery-stage figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 15px;
  color: var(--muted);
  font-size: 13px;
}

.gallery-stage figcaption strong { color: var(--ink); }

.gallery-controls {
  display: grid;
  grid-area: controls;
  gap: 8px;
}

.gallery-controls button {
  display: grid;
  grid-template-columns: minmax(48px, 75px) 1fr;
  gap: 11px;
  align-items: center;
  padding: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #17111d;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.gallery-controls button:hover { background: #23152d; }

.gallery-controls button[aria-selected="true"] {
  color: var(--ink);
  border-color: #a94dd7;
  background: #271532;
}

.gallery-controls img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.download-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(27px, 5vw, 67px);
  border: 1px solid #66367f;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 95% 30%, #361247, transparent 60%), #191020;
}

.download-panel p {
  max-width: 49ch;
  margin-top: 13px;
  color: #d8c9e2;
}

.download-panel .button { margin-top: 23px; }

.download-mark {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(24px, 6vw, 84px);
  width: clamp(120px, 21vw, 275px);
  height: auto;
  opacity: .44;
  transform: translateY(-50%);
}

.site-footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 17px;
}

.not-found {
  min-height: calc(100svh - 74px);
  display: grid;
  align-content: center;
}

.lightbox {
  max-width: min(1200px, 100% - 32px);
  max-height: calc(100% - 32px);
  padding: 0;
  color: var(--ink);
  border: 1px solid #654278;
  border-radius: 13px;
  background: #100c15;
}

.lightbox::backdrop { background: #08060bed; }

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 5px 9px 5px 14px;
  font-size: 14px;
  font-weight: 620;
}

.lightbox-toolbar .button {
  width: 36px;
  min-height: 34px;
  padding: 0;
}

.lightbox > img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 88px);
  object-fit: contain;
}

@media (max-width: 960px) {
  .shell { width: min(1240px, 100% - 56px); }
  .hero-inner { gap: 24px; }
  .hero h1 { font-size: clamp(65px, 10vw, 105px); }
  .hero-actions { gap: 8px 14px; }
}

@media (max-width: 740px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 31px;
    padding-block: 49px 39px;
  }

  .hero h1 {
    margin: 13px 0 17px;
    font-size: clamp(55px, 12vw, 85px);
    line-height: .98;
  }

  .hero h1 span { display: inline; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gallery-enhanced {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "controls" "stage";
  }

  .gallery-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-controls button { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .gallery-controls button span { padding-inline: 2px; }
}

@media (max-width: 500px) {
  html { scroll-padding-top: 122px; }
  .shell { width: calc(100% - 32px); }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 9px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 25px;
    min-height: 38px;
  }

  .primary-nav a { padding: 8px 0; }

  .hero-actions { margin-top: 20px; }
  .hero-preview { border-radius: 11px; }
  .preview-bar { min-height: 35px; padding-inline: 10px; }

  .compatibility-list {
    grid-template-columns: .78fr 1.08fr 1.1fr;
  }

  .compatibility-list li { min-height: 76px; gap: 5px; padding: 8px 9px; }
  .compatibility-label { font-size: 11px; }
  .compatibility-list strong { font-size: 13px; }

  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 17px 19px 19px; }
  .feature-icon { margin-bottom: 12px; }
  .gallery-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-controls button { grid-template-columns: 50px minmax(0, 1fr); }

  .download-mark { right: -34px; width: 190px; opacity: .16; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
