/* Quadrant Front site chrome — shared by index, privacy, troubleshooting, releases */

:root {
  --bg: #050510;
  --cyan: #00e5ff;
  --cyan-dim: #00b8cc;
  --magenta: #ff2bd6;
  --purple: #9b5cff;
  --glass: rgba(8, 12, 28, 0.72);
  --glass-border: rgba(0, 229, 255, 0.22);
  --text: #e8f4ff;
  --muted: #8ba3b8;
  --radius: 16px;
  --max: 1120px;
}

body.page-doc {
  --max: 880px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Rajdhani", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}
body.page-doc { line-height: 1.55; }

/* ========== BACKGROUND ========== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #020208;
}
.bg-layer img,
.bg-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bg-layer img {
  z-index: 0;
  transition: opacity 1.2s ease;
}
.bg-layer video {
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bg-layer video.is-ready { opacity: 1; }
.bg-veil { z-index: 2; }
.bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0, 40, 80, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(2, 4, 12, 0.55) 0%, rgba(2, 4, 12, 0.75) 45%, rgba(2, 4, 12, 0.92) 100%);
  pointer-events: none;
}

/* ========== LAYOUT ========== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== TOP BAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(4, 8, 20, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}
.topbar-brand {
  justify-self: start;
  min-width: 0;
}
.topbar-logo {
  height: 36px;
  width: auto;
  display: block;
}
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar nav a:hover { color: var(--cyan); }
.topbar nav a.nav-page { color: var(--purple); }
.topbar nav a.nav-page:hover { color: var(--cyan); }
.topbar-end {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.topbar a.back {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.topbar a.back:hover { color: var(--cyan); }

.mute-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 20, 40, 0.6);
  color: var(--cyan);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.mute-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}
.mute-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ========== HERO / CTA ========== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
}
.hero-logo {
  width: min(520px, 88vw);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.35)) drop-shadow(0 0 48px rgba(255, 43, 214, 0.2));
}
.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}
.hero .pitch {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #00c4e0, #0090c0);
  color: #041018;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(0, 229, 255, 0.55); }
.btn-ghost {
  background: rgba(0, 30, 50, 0.5);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--cyan);
}
.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.hashtag {
  font-size: 0.95rem;
  color: var(--purple);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.hashtag a,
.tag-link {
  color: var(--purple);
  text-decoration: none;
}
.hashtag a:hover,
.tag-link:hover { color: var(--cyan); }

/* ========== HOME SECTIONS ========== */
section {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.factions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}
@media (max-width: 900px) {
  .factions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .factions-grid {
    grid-template-columns: 1fr;
  }
}
.faction-card {
  padding: 1.1rem 1rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.faction-card:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.15);
  transform: translateY(-3px);
}
.faction-card img {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 0.85rem;
  display: block;
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.faction-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}
.faction-card .hero-name {
  font-size: 0.85rem;
  color: var(--purple);
  margin-bottom: 0;
  font-weight: 600;
  flex-shrink: 0;
}
.faction-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: auto;
  padding-top: 0.85rem;
}
.faction-card .tag {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.rule-card { padding: 1.35rem 1.25rem; }
.rule-card .num {
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  color: var(--magenta);
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}
.rule-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.rule-card p { color: var(--muted); font-size: 1rem; }

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr; }
}
.gallery-main,
.gallery-side .shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-main:hover,
.gallery-side .shot:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}
.gallery-main { min-height: 420px; }
.gallery-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gallery-side .shot {
  flex: 1;
  min-height: 200px;
}
.gallery-main img,
.gallery-side .shot img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 1rem);
  max-height: calc(100% - 1rem);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.gallery-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.85rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 4, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: pointer;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-inner {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(6, 10, 24, 0.95);
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 0.6rem;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: calc(92vh - 1.2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}
body.lightbox-open { overflow: hidden; }

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  .dual { grid-template-columns: 1fr; }
}
.dual-card { padding: 1.5rem 1.35rem; }
.dual-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.dual-card p { color: var(--muted); font-size: 1.05rem; }

.download-block {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin: 1rem auto 2rem;
  max-width: 640px;
}
.download-block p {
  color: var(--muted);
  margin: 0.75rem 0 1.5rem;
  font-size: 1.05rem;
}

/* ========== DOC PAGES (privacy / troubleshooting / releases) ========== */
.page-doc main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  width: 100%;
}
.panel,
.privacy-panel {
  padding: 2rem 1.6rem 2.25rem;
}
.page-doc main h1 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-align: center;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
}
.updated {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}
.page-doc main h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin: 1.6rem 0 0.55rem;
}
.page-doc main p,
.page-doc main li {
  color: var(--muted);
  font-size: 1.05rem;
}
.page-doc main p { margin-bottom: 0.75rem; }
.page-doc main ul,
.page-doc main ol {
  margin: 0.4rem 0 0.9rem 1.25rem;
}
.page-doc main li { margin-bottom: 0.35rem; }
.page-doc main strong { color: var(--text); font-weight: 600; }
.page-doc main a {
  color: var(--cyan-dim);
}

code,
.flag {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 4px;
  padding: 0.05em 0.4em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 1.02rem;
}
.data-table th {
  text-align: left;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.25);
}
.data-table td {
  color: var(--muted);
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.placeholder {
  color: #5a7080;
  font-style: italic;
}

.release {
  border-top: 1px solid rgba(0, 229, 255, 0.14);
  padding: 1.15rem 0 0.35rem;
  margin-top: 0.9rem;
}
.release:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.4rem;
}
.release-version {
  font-family: "Orbitron", sans-serif;
  color: var(--cyan);
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  margin: 0;
}
.release-channel {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid rgba(255, 43, 214, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.release-channel[data-channel="stable"] {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.35);
}
.release-date { color: #5a7080; font-size: 0.95rem; }
.release-notes { margin-bottom: 0.35rem; }
.release-files {
  margin: 0.35rem 0 0.6rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.release-files li { margin-bottom: 0.45rem; }
.file-hash {
  display: block;
  margin-top: 0.15rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  color: #5a7080;
  word-break: break-all;
}

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  background: rgba(2, 4, 12, 0.7);
  margin-top: auto;
}
footer .socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
footer .socials a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
footer .socials a:hover { color: var(--cyan); }
footer .footer-links { margin: 0.35rem 0 0; }
footer .footer-links a,
footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
footer .footer-links a:hover,
footer a:hover { color: var(--cyan); }
footer .hashtag { margin-bottom: 0.5rem; }
footer .legal {
  font-size: 0.8rem;
  color: #5a7080;
  margin-top: 0.75rem;
}

@media (max-width: 720px) {
  .topbar nav { display: none; }
  .topbar { padding: 0.65rem 1rem; }
  .hero { padding-top: 2.25rem; }
}
