/* ---------- Theme tokens ---------- */
:root{
  --bg:#0b0e13;
  --panel:#121622;
  --panel-2:#0f1320;
  --text:#bad9ff;      /* Bright white for main text */
  --muted:#8b95b5;     /* Lighter gray-blue for muted text */
  --neon:#00d9ff;      /* Brighter cyan neon */
  --neon-2:#ff6bd6;    /* magenta neon */
  --accent:#70ffa5;    /* lime mint */
  --danger:#ff5f5f;
  --ok:#7cf0ff;
  --shadow: 0 0 12px rgba(0,217,255,.45), 0 0 48px rgba(0,217,255,.25);
  --radius:18px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(101,247,255,.08), transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, rgba(255,107,214,.07), transparent 65%),
    linear-gradient(180deg, #0b0e13, #0a0d12 40%, #0a0c10 100%);
  background-color: #0a0c10;
}

a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Ensure strong/bold text maintains proper color */
strong, b { color: var(--text); font-weight: 700; }

/* Ensure proper text rendering */
p, li, div { color: inherit; }

.wrap { width: min(1200px, 94vw); margin-inline: auto; }

/* ---------- Header / Brand ---------- */
header { position: relative; padding: 28px 0 0; }
.brand { display: flex; align-items: center; gap: 14px; letter-spacing: .5px; }
.brand > div { color: var(--text); }

/* Logo with hexagon backing and glowing orb effect */
.brand .logo {
  width: 42px;
  height: 42px;
  position: relative;
  /* Hexagon shape */
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: 
    url("../../logo.png") center/80% no-repeat,
    radial-gradient(circle at 30% 30%, var(--neon), transparent 55%),
    radial-gradient(circle at 70% 60%, var(--neon-2), transparent 45%),
    #0d1220;
  /* Unclipped shadow using filter instead of box-shadow */
  filter: drop-shadow(0 0 12px rgba(0,217,255,.45)) drop-shadow(0 0 48px rgba(0,217,255,.25));
}

nav { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
nav a { opacity: .9; }

/* ---------- Hero ---------- */
.hero {
  margin: 34px 0 28px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(15,20,34,.85), rgba(12,16,28,.75));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(0,0,0,.45);
  position: relative;
  overflow: hidden;
}

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: .4;
}

.type {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: #0a101b;
  color: #bde8ff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 20px rgba(101,247,255,.08);
}

.type .cursor {
  display: inline-block;
  width: 10px;
  background: var(--neon);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
section { padding: 22px 0; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
}

h2 {
  font-size: 1.4rem;
  letter-spacing: .6px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2 .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--shadow);
}

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

/* ---------- Grid & Cards ---------- */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #12182a, #0f1525);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(101,247,255,.35);
}

.node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  letter-spacing: .3px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--muted);
}

.pill {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(124,240,255,.6), 0 0 22px rgba(124,240,255,.25);
  animation: breath 3s ease-in-out infinite;
}

.pill.warn {
  background: #ffd36b;
  box-shadow: 0 0 10px rgba(255,211,107,.6), 0 0 22px rgba(255,211,107,.25);
}

.pill.down {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255,95,95,.6), 0 0 22px rgba(255,95,95,.25);
}

@keyframes breath {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.25); opacity: 1; }
}

.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Character Cards ---------- */
.char-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

/* ---------- Other Elements ---------- */
.quote {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: #0a101b;
  color: #bde8ff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 20px rgba(101,247,255,.08);
  margin: 10px 0;
}

.tag {
  display: inline-block;
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: #0a101b;
  color: #bde8ff;
  box-shadow: inset 0 0 16px rgba(101,247,255,.08);
  margin: 6px 6px 0 0;
}

.eyebrow { font-size: .85rem; color: var(--muted); letter-spacing: .2px; }
.subtitle { color: var(--muted); }
.crumbs { margin-top: 8px; }

.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px;
}

.kv div {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}

.kv .k { color: var(--muted); }

.subgrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mini h3 { margin: .2rem 0 .4rem; font-size: 1.05rem; }
.mini p { margin: .2rem 0 0; }

footer { margin: 28px 0 40px; }
