/* VR Realms — dark theme with purple accents.
   Inspired by the look of devgames3085.com. */

:root {
  --bg:           #0a0612;
  --bg-2:         #120a22;
  --panel:        #16102b;
  --panel-2:      #1d1638;
  --border:       #2a1f4d;
  --text:         #e8e6ef;
  --muted:        #9b94b3;
  --accent:       #8b5cf6;
  --accent-2:     #a855f7;
  --accent-soft:  rgba(139, 92, 246, 0.18);
  --danger:       #f87171;
  --ok:           #4ade80;
  --warn:         #fbbf24;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 8px 40px rgba(0,0,0,0.45);
  --maxw:         1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 700px at 80% -200px, rgba(139,92,246,0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(168,85,247,0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #c9b3ff; text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; gap: 22px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600; letter-spacing: 0.06em;
  text-decoration: none;
}
.brand img { height: 32px; width: 32px; object-fit: contain; }
.brand strong { color: var(--accent-2); }
.brand.small img { height: 24px; width: 24px; }

nav.primary {
  display: flex; align-items: center; gap: 8px;
  margin-left: 12px; flex: 1;
}
nav.primary a {
  color: var(--text); text-decoration: none;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  opacity: 0.85;
}
nav.primary a:hover { background: var(--accent-soft); opacity: 1; }
nav.primary a.active { background: var(--accent-soft); color: #fff; opacity: 1; }

.cta-row { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 24px rgba(139,92,246,0.35);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--accent-soft); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05; margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #c4b5fd, #a855f7 60%, #7c3aed);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 540px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 1 / 1; max-width: 420px; margin-left: auto;
  background:
    radial-gradient(closest-side, rgba(168,85,247,0.45), transparent 70%),
    linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-art img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(139,92,246,0.5)); }

.tag {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: #d6c5ff;
  border: 1px solid var(--border);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---------- Generic sections ---------- */
section.block { padding: 64px 0; border-top: 1px solid var(--border); }
section.block.no-border { border-top: 0; }
h2.section-title {
  font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px;
  letter-spacing: -0.01em;
}
p.section-sub { color: var(--muted); margin: 0 0 32px; max-width: 720px; }

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

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-3px); border-color: #3a2a6e; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p  { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: #d6c5ff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
  border: 1px solid var(--border);
}
.card a.more { display: inline-block; margin-top: 14px; font-size: 14px; }

/* ---------- Status / What's working ---------- */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.status {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  font-size: 14px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.dot.ok   { background: var(--ok);   box-shadow: 0 0 8px rgba(74,222,128,0.6); }
.dot.warn { background: var(--warn); box-shadow: 0 0 8px rgba(251,191,36,0.6); }
.dot.todo { background: var(--muted); }
.dot.live { background: var(--accent-2); box-shadow: 0 0 8px rgba(168,85,247,0.6); }

/* ---------- Video ---------- */
.video-wrap {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Doc / long-form content ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 40px; font-size: 26px; }
.prose h3 { margin-top: 30px; font-size: 20px; color: #d6c5ff; }
.prose p, .prose li { color: #d6d4df; }
.prose code {
  background: #1a1234; padding: 2px 6px; border-radius: 5px;
  font-size: 13.5px; color: #f1e9ff;
  border: 1px solid var(--border);
}
.prose pre {
  background: #0f0a1f; border: 1px solid var(--border);
  padding: 16px; border-radius: var(--radius-sm);
  overflow-x: auto; font-size: 13px;
}
.prose pre code { background: transparent; border: 0; padding: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.prose blockquote {
  margin: 18px 0; padding: 12px 18px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 6px; color: #ece6ff;
}

.callout {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139,92,246,0.08), rgba(139,92,246,0.02));
  border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 22px 0;
  display: flex; gap: 14px;
}
.callout .lab {
  font-weight: 700; color: var(--accent-2); letter-spacing: 0.06em;
  text-transform: uppercase; font-size: 12px; min-width: 70px;
}
.callout.warn { border-color: #5a3d10; background: linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.02)); }
.callout.warn .lab { color: var(--warn); }
.callout.tip  { /* default */ }
.callout.todo { border-color: #2a1f4d; background: rgba(255,255,255,0.02); }
.callout.todo .lab { color: var(--muted); }

table.kv {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px;
}
table.kv th, table.kv td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
table.kv th { color: var(--muted); font-weight: 600; }
table.kv td code { font-size: 13px; }

/* ---------- Doc page layout ---------- */
.doc-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px;
  padding: 48px 0;
}
.doc-layout aside { position: sticky; top: 84px; align-self: start; }
.doc-layout aside h5 {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.doc-layout aside ul { list-style: none; padding: 0; margin: 0 0 22px; }
.doc-layout aside li a {
  display: block; padding: 6px 10px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: 14px;
}
.doc-layout aside li a:hover { background: var(--accent-soft); }

/* ---------- Page hero (smaller than home) ---------- */
.page-hero {
  padding: 60px 0 30px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); }
.page-hero p  { margin: 0; color: var(--muted); max-width: 720px; }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(168,85,247,0.10));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 36px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px; margin: 64px 0;
}
.cta-strip h3 { margin: 0 0 6px; font-size: 22px; }
.cta-strip p  { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: #07040d;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  padding: 56px 24px 32px;
}
.footer-grid h4 { color: #d6c5ff; font-size: 14px; margin: 0 0 12px; letter-spacing: 0.05em; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 6px 0; font-size: 14px; }
.link-list li a { color: var(--text); opacity: 0.85; }
.link-list li a:hover { opacity: 1; color: #fff; }
.footer-bottom { padding: 18px 24px 32px; color: var(--muted); border-top: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 50px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 300px; margin: 0 auto; }
  .grid-3, .grid-2, .status-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-layout aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  nav.primary { display: none; }
  .cta-row .btn-ghost { display: none; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
