/* Voideron site. Palette and chamfer follow the game UI. */

:root {
  --bg: #050510;
  --bg-deep: #0a0a1a;
  --purple: #9b59ff;
  --purple-dark: #5a2d9e;
  --cyan: #40e0ff;
  --cyan-dim: #1a8a9e;
  --text: #e8e0ff;
  --text-dim: #9a90b8;
  --white-70: rgba(232, 224, 255, 0.72);
  --white-40: rgba(232, 224, 255, 0.42);
  --white-15: rgba(232, 224, 255, 0.15);
  --panel: rgba(18, 8, 31, 0.82);
  --edge: #6a6a90;
  --metal: #3a3a55;
  --chamfer: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(155, 89, 255, 0.16), transparent 42%),
    radial-gradient(circle at 80% 90%, rgba(64, 224, 255, 0.06), transparent 36%),
    var(--bg);
}

.bg-layers::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='48' viewBox='0 0 84 48'><path d='M21 1 L41 12.5 V35.5 L21 47 L1 35.5 V12.5 Z M63 1 L83 12.5 V35.5 L63 47 L43 35.5 V12.5 Z' fill='none' stroke='%236a6a90' stroke-opacity='0.45' stroke-width='1'/></svg>");
  background-size: 84px 48px;
  opacity: 0.55;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.chamfer {
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 16, 0.88);
  border-bottom: 1px solid rgba(106, 106, 144, 0.45);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 28px;
  height: 28px;
  display: block;
}

.logo-text {
  font-size: 15px;
  letter-spacing: 3px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--cyan);
}

.hero {
  padding: 88px 0 72px;
  text-align: center;
}

.hero-mark {
  width: min(640px, 100%);
  height: auto;
  display: block;
  margin: 0 auto 28px;
}

.hero h1 {
  margin: 0;
}

.tagline {
  margin: 0;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--cyan);
}

.lead {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--white-70);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn,
.soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--cyan-dim);
}

.btn-primary {
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(155, 89, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 26px rgba(64, 224, 255, 0.35);
}

.soon {
  background: rgba(18, 8, 31, 0.9);
  color: var(--cyan);
  cursor: default;
  user-select: none;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 76px;
}

.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-header .title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.story {
  max-width: 760px;
}

.story p {
  margin: 0 0 18px;
  color: var(--white-70);
  font-size: 17px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid rgba(64, 224, 255, 0.28);
  padding: 22px 22px 20px;
  min-height: 112px;
}

.feature-card p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery-item,
.gallery-video {
  background: var(--panel);
  border: 1px solid rgba(106, 106, 144, 0.7);
  overflow: hidden;
}

.gallery-item {
  cursor: zoom-in;
  padding: 0;
  color: inherit;
  text-align: left;
  width: 100%;
  font: inherit;
}

.gallery-item img,
.gallery-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.caption {
  padding: 12px 16px 14px;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.gallery-span {
  grid-column: 1 / -1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.92);
  padding: 64px 80px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(155, 89, 255, 0.25);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--metal);
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.download {
  text-align: center;
}

.download .lead {
  margin-bottom: 28px;
}

.site-footer {
  border-top: 1px solid rgba(106, 106, 144, 0.45);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .fine {
  margin-top: 10px;
  font-size: 12px;
  color: var(--white-40);
}

.privacy-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0 72px;
}

.privacy-content h1 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
}

.privacy-content h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 500;
}

.privacy-content p,
.privacy-content li {
  color: var(--white-70);
}

.privacy-content ul {
  padding-left: 22px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 1px;
}

.back-link:hover {
  color: var(--cyan);
}

.missing {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.missing h1 {
  margin: 0 0 12px;
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 6px;
}

.missing p {
  margin: 0 0 28px;
  color: var(--white-70);
  font-size: 20px;
}

@media (max-width: 800px) {
  .features-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    padding: 12px 0 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .section-header .title {
    font-size: 26px;
  }

  .lightbox {
    padding: 72px 16px;
  }
}
