:root {
  --bg0: #07090e;
  --bg1: #10141c;
  --bg2: #171c27;
  --text: #eef2fa;
  --muted: #97a1b5;
  --accent: #8b7cf6;
  --accent-2: #6ea8fe;
  --accent-soft: rgba(139, 124, 246, 0.16);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --font: "Play", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg0);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 8% -8%, rgba(139, 124, 246, 0.24), transparent 58%),
    radial-gradient(820px 480px at 96% 4%, rgba(110, 168, 254, 0.14), transparent 52%),
    radial-gradient(720px 460px at 55% 108%, rgba(139, 124, 246, 0.1), transparent 58%),
    linear-gradient(180deg, #0d1119 0%, var(--bg0) 46%, #05070b 100%);
}

.atmosphere-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

.atmosphere-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.atmosphere-orb-a {
  width: 280px;
  height: 280px;
  top: 12%;
  right: 18%;
  background: rgba(139, 124, 246, 0.28);
  animation: drift 14s ease-in-out infinite;
}

.atmosphere-orb-b {
  width: 220px;
  height: 220px;
  bottom: 18%;
  left: 8%;
  background: rgba(110, 168, 254, 0.18);
  animation: drift 18s ease-in-out infinite reverse;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem var(--pad);
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 9, 14, 0.72);
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.brand-mark span span,
.brand-hero span,
.footer-brand span {
  background: linear-gradient(135deg, #d7ceff, #8b7cf6 55%, #6ea8fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topnav {
  display: none;
  gap: 1.35rem;
  margin-left: 0.5rem;
}

.topnav a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

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

.topnav a:hover::after {
  transform: scaleX(1);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  min-width: 2.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.35), rgba(110, 168, 254, 0.22));
  color: #fff;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn i {
  font-size: 0.92em;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b7cf6, #6ea8fe);
  box-shadow:
    0 10px 28px rgba(139, 124, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  box-shadow:
    0 16px 36px rgba(139, 124, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(196, 184, 255, 0.35);
}

.topbar .btn-ghost {
  min-height: 2.2rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.9rem;
}

/* —— Hero —— */
.hero {
  min-height: calc(100svh - 4.2rem);
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--pad) clamp(2.5rem, 7vh, 4.5rem);
}

.hero-copy {
  max-width: 34rem;
  animation: rise 0.9s ease both;
}

.brand-hero {
  margin: 0 0 0.85rem;
  font-size: clamp(3rem, 8.5vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

.lede {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta i {
  color: #c4b8ff;
  font-size: 0.95em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: rise 1s ease 0.12s both;
}

.hero-glow {
  position: absolute;
  inset: 12% 10%;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.35), transparent 68%);
  filter: blur(28px);
  z-index: 0;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  border-radius: 28px;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.48));
}

/* —— Screenshots —— */
.section-shots {
  border-top: 1px solid var(--border);
}

.shots {
  display: grid;
  gap: 2rem;
}

.shot {
  margin: 0;
  animation: rise 0.9s ease both;
}

.shot:nth-child(2) {
  animation-delay: 0.08s;
}

.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-open:hover,
.shot-open:focus-visible {
  transform: translateY(-3px);
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 124, 246, 0.5);
}

.shot-open img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background: var(--bg1);
}

.shot figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  outline: none;
  animation: rise 0.28s ease both;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 5.5rem);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: var(--bg1);
}

.lightbox-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(18, 21, 28, 0.92);
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(139, 124, 246, 0.22);
  border-color: rgba(139, 124, 246, 0.45);
  outline: none;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .lightbox-close {
    top: 0;
    right: 0;
  }
}

/* —— Sections —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
  animation: rise 0.8s ease both;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 124, 246, 0.28);
  background: var(--accent-soft);
  color: #d7ceff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-kicker i {
  font-size: 0.85em;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.85rem 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.2s ease;
}

.feature-list li:hover {
  background: linear-gradient(90deg, rgba(139, 124, 246, 0.06), transparent 55%);
}

.feature-key {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  padding-top: 0.35rem;
}

.feature-list h3 {
  margin: 0;
  grid-column: 2;
  font-size: 1.15rem;
}

.feature-list p {
  margin: 0;
  grid-column: 2;
  color: var(--muted);
  max-width: 40rem;
}

.section-plugins {
  border-top: 1px solid var(--border);
}

.section-local {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(600px 240px at 10% 0%, rgba(139, 124, 246, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 70%);
}

.local-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 40rem;
}

.local-points li {
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  color: var(--text);
}

.local-points li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #c4b8ff;
}

.download-row {
  display: grid;
  gap: 0.85rem;
}

.dl {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.dl-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(139, 124, 246, 0.28);
  background: linear-gradient(145deg, rgba(139, 124, 246, 0.22), rgba(110, 168, 254, 0.1));
  color: #d7ceff;
  font-size: 1.35rem;
}

.dl-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dl strong {
  font-size: 1.15rem;
}

.dl-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.dl-arrow {
  color: var(--muted);
  font-size: 0.95rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dl:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 124, 246, 0.42);
  background:
    linear-gradient(180deg, rgba(139, 124, 246, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.dl:hover .dl-copy span {
  color: #c4b8ff;
}

.dl:hover .dl-arrow {
  color: #fff;
  transform: translateY(2px);
}

.download-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-feedback {
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 7vh, 4.5rem);
}

.section-feedback .section-head {
  margin-bottom: 1.35rem;
}

/* —— Footer —— */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--pad) 3.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.site-footer > p {
  margin: 0 0 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  color: #c4b8ff;
  border-bottom-color: rgba(196, 184, 255, 0.45);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -14px); }
}

@media (min-width: 720px) {
  .topnav {
    display: flex;
  }

  .feature-list li {
    grid-template-columns: 8.5rem minmax(0, 14rem) 1fr;
    align-items: baseline;
  }

  .feature-list h3 {
    grid-column: 2;
  }

  .feature-list p {
    grid-column: 3;
  }

  .download-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }

  .hero-visual {
    justify-content: end;
  }

  .hero-art {
    width: min(100%, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy,
  .hero-visual,
  .section-head,
  .shot,
  .hero-art,
  .atmosphere-orb {
    animation: none !important;
  }
  .btn:hover,
  .dl:hover,
  .shot-open:hover {
    transform: none;
  }

  .lightbox-dialog {
    animation: none !important;
  }
}
