:root {
  --ee: cubic-bezier(0.19, 1, 0.22, 1);
  --eq: cubic-bezier(0.77, 0, 0.175, 1);
  --bg: #0a0e1a;
  --bg-2: #0d1220;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.7);
  --ink-3: rgba(255, 255, 255, 0.5);
  --ink-4: rgba(255, 255, 255, 0.3);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.06);
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(40px);
  --indigo: #6366f1;
  --indigo-soft: #a5b4fc;
  --pink: #ec4899;
  --pink-soft: #f9a8d4;
  --cyan: #22d3ee;
  --grad-a: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #ec4899 100%);
  --grad-b: linear-gradient(135deg, #6366f1, #ec4899);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --r-lg: 22px;
  --surface: #141a2e;
  --surface-light: #1c2540;
  --surface-active: #2a3560;
  --edge-dark: #080b14;
  --edge-mid: #1a2238;
  --highlight: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

/* ── Top bar with stars video ── */
.top-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 80px;
  overflow: hidden;
  border-bottom: 2px solid var(--edge-dark);
  box-shadow: 0 6px 28px var(--shadow);
}

.top-bar-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

.top-bar-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.75));
}

.nav-boxes {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-box {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  opacity: 1;
  border: 2px solid var(--edge-mid);
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 var(--highlight),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 3px 0 var(--edge-dark),
    0 4px 14px var(--shadow);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.nav-box:hover {
  background: var(--surface-light);
  transform: translateY(-1px);
}

.nav-box.active {
  background: var(--surface-active);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    0 2px 0 var(--edge-dark),
    0 0 0 2px var(--indigo),
    0 4px 14px rgba(99, 102, 241, 0.35);
}

/* ── Main content ── */
main {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

main.about-wide {
  max-width: 900px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 2.5rem 2.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 7px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--indigo-soft);
  width: fit-content;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 10px var(--indigo);
  animation: pip 2s infinite;
}

.server-status.checking {
  color: var(--ink-3);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.server-status.checking .dot {
  background: var(--ink-3);
  box-shadow: none;
}

.server-status.online {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(134, 239, 172, 0.1);
}

.server-status.online .dot {
  background: #86efac;
  box-shadow: 0 0 10px rgba(134, 239, 172, 0.8);
}

.server-status.offline {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.server-status.offline .dot {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.8);
  animation: none;
}

@keyframes pip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.h-display {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.h-display .grd {
  background: var(--grad-a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.body-lg {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 1rem;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-3);
}

.muted { color: var(--ink-3); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  color: var(--indigo-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealIn 0.9s var(--ee) forwards;
}

.reveal:nth-child(2) { animation-delay: 0.1s; }
.reveal:nth-child(3) { animation-delay: 0.2s; }
.reveal:nth-child(4) { animation-delay: 0.3s; }
.reveal:nth-child(5) { animation-delay: 0.4s; }

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

.meta-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.meta-row .sep {
  width: 20px;
  height: 1px;
  background: var(--ink-4);
}

/* ── About list ── */
.info-list {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-2);
}

.info-list .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--indigo-soft);
  letter-spacing: 0.12em;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Downloads ── */
.download-versions {
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.download-version {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.download-version-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--indigo-soft);
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.download-platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-platform {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s, transform 0.25s;
}

.download-platform:hover {
  border-color: rgba(165, 180, 252, 0.35);
  transform: translateX(4px);
}

.platform-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--ink-2);
}

.download-platform-info {
  flex: 1;
  min-width: 0;
}

.download-filename {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
}

.download-size {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.download-unavailable-note {
  font-size: 13px;
  color: var(--ink-3);
}

.btn-primary {
  background: #fff;
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--indigo-soft), #fff);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(165, 180, 252, 0.25);
}

.btn-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── News ── */
.news-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item {
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s, transform 0.25s;
}

.news-item:hover {
  border-color: rgba(165, 180, 252, 0.35);
  transform: translateX(4px);
}

.news-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.news-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
}

/* ── About accordion ── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}

.acc-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.acc-item[open] {
  border-color: rgba(165, 180, 252, 0.35);
  background: rgba(99, 102, 241, 0.06);
}

.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: background 0.2s;
}

.acc-item summary::-webkit-details-marker { display: none; }

.acc-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--indigo-soft);
  flex-shrink: 0;
  transition: transform 0.25s var(--ee);
}

.acc-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.acc-item summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.acc-body {
  padding: 0 1.25rem 1.25rem;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.acc-body p { margin-bottom: 0.75rem; }
.acc-body p:last-child { margin-bottom: 0; }

.acc-body ul,
.acc-body ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
}

.acc-body li { margin-bottom: 0.35rem; }

.acc-body strong { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .top-bar {
    height: auto;
    min-height: 80px;
  }

  .top-bar-inner {
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
  }

  .site-logo { height: 42px; }

  .nav-boxes { justify-content: center; }

  .glass-card { padding: 1.75rem 1.5rem; }
}
