:root {
  --bg: #02050a;
  --panel: rgba(8, 15, 25, 0.92);
  --panel-soft: rgba(10, 21, 35, 0.72);
  --text: #f4f8fc;
  --muted: #9cacbd;
  --cyan: #64dcff;
  --blue: #2e86ff;
  --orange: #ff9f43;
  --line: rgba(113, 204, 255, 0.25);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(1, 4, 8, 0.48), rgba(1, 4, 8, 0.8)),
    url("images/stars_background.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 42% 16%, rgba(43, 133, 205, 0.17), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.015) 50%, transparent 50%);
  background-size: auto, 100% 4px;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.75rem max(1rem, calc((100% - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 11, 0.84);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: clamp(0.88rem, 1.7vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(100, 220, 255, 0.28));
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 1.8vw, 1.3rem);
}

.site-header nav a {
  color: #b8c8d9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a.current {
  color: var(--cyan);
  outline: none;
}

.menu-toggle {
  display: none;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: rgba(8, 18, 30, 0.9);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

main,
footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(285px, 0.55fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: min(720px, calc(100vh - 76px));
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 218, 255, 0.95);
  text-shadow: 0 0 34px rgba(56, 172, 255, 0.2);
}

.intro {
  max-width: 760px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  border-color: rgba(100, 220, 255, 0.7);
  background: linear-gradient(135deg, rgba(34, 140, 201, 0.82), rgba(28, 83, 147, 0.82));
}

.button.secondary {
  background: rgba(8, 18, 30, 0.76);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--cyan);
  background: rgba(25, 75, 107, 0.58);
}

.system-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.system-summary div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: rgba(7, 16, 27, 0.93);
}

.system-summary span {
  color: var(--orange);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.system-summary strong {
  font-size: 0.96rem;
}

.content-section {
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 3.6vw, 2.7rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(9, 18, 30, 0.95), rgba(4, 9, 16, 0.91));
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1.6rem;
}

.section-number {
  min-width: 2.4ch;
  margin: -0.1rem 0 0;
  color: rgba(100, 220, 255, 0.26);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.detail-grid,
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  gap: 2rem;
}

.detail-copy p,
.feature-list p,
.metric-card p,
.section-note,
.section-intro,
.download-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.detail-copy p:last-child,
.download-panel p:last-child {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
}

.feature-list article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.feature-list article > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--orange);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.feature-list strong {
  display: block;
  margin-bottom: 0.4rem;
}

.feature-list p {
  margin: 0;
  font-size: 0.9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 16, 27, 0.76);
}

.metric-card span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--orange);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.metric-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.metric-card p {
  margin: 0;
  font-size: 0.9rem;
}

.section-note {
  max-width: 880px;
  margin: 1.5rem 0 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.screenshot-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(7, 16, 27, 0.78);
}

.image-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #030811;
  cursor: pointer;
}

.image-open img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.image-open span {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.45rem 0.58rem;
  border: 1px solid rgba(100, 220, 255, 0.38);
  border-radius: 5px;
  color: var(--text);
  background: rgba(3, 8, 14, 0.82);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-open:hover img,
.image-open:focus-visible img {
  transform: scale(1.025);
  opacity: 0.88;
}

.image-open:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.screenshot-card figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.screenshot-card small {
  color: var(--muted);
  line-height: 1.5;
}

.download-panel {
  align-items: center;
}

.download-note {
  font-size: 0.9rem;
}

.download-action {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.download-action > span {
  color: var(--orange);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.download-action strong {
  overflow-wrap: anywhere;
}

.download-action .button {
  margin-top: 0.35rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 2.5rem;
  color: #718296;
  font-size: 0.76rem;
  line-height: 1.5;
}

.footer-brand {
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
}

footer p {
  margin: 0;
  text-align: right;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox[aria-hidden="false"] {
  display: grid;
}

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  border: 1px solid rgba(100, 220, 255, 0.45);
  border-radius: 12px;
  background: #000;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(6, 14, 24, 0.92);
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

@media (max-width: 950px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.5rem;
  }

  .site-header nav.is-open {
    display: flex;
  }

  .site-header nav a {
    padding: 0.8rem 0.2rem;
    border-top: 1px solid rgba(113, 204, 255, 0.12);
  }

  .hero,
  .detail-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 5rem 0;
  }

  .system-summary {
    max-width: 620px;
  }

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

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  main,
  footer {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .site-header {
    min-height: 66px;
    padding-inline: 0.75rem;
  }

  .brand {
    gap: 0.55rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .brand-logo {
    width: 37px;
    height: 37px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .content-section {
    padding: 1rem;
    border-radius: 16px;
  }

  .section-heading {
    gap: 0.85rem;
  }

  .section-number {
    font-size: 2.7rem;
  }

  .metric-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 0.75rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  footer p {
    text-align: left;
  }
}

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

  .button,
  .image-open img {
    transition: none;
  }
}
