:root {
  --void: #0a0406;
  --ash: #14090c;
  --coal: #1d0d12;
  --crimson: #b81734;
  --crimson-bright: #e11d3f;
  --ember: #ff3b5c;
  --blood-glow: rgba(184, 23, 52, 0.35);
  --bone: #f2e6e9;
  --smoke: #a9939a;
  --dim: #6e5960;
  --gold: #d4a24e;
  --edge: rgba(184, 23, 52, 0.22);
  --display: "Cinzel", Georgia, serif;
  --body: "Spectral", Georgia, serif;
  --ui: "Space Grotesk", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(184,23,52,0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(184,23,52,0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,4,6,0.94), rgba(10,4,6,0.72));
  border-bottom: 1px solid var(--edge);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .sigil { color: var(--crimson-bright); filter: drop-shadow(0 0 8px var(--blood-glow)); }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--ui);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--smoke);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--bone); background: rgba(184,23,52,0.14); }
.nav-toggle { display: none; background: none; border: 1px solid var(--edge); color: var(--bone); font-size: 1.3rem; padding: 4px 12px; cursor: pointer; border-radius: 2px; }

/* ---------- HERO ---------- */
.hero { padding: 90px 0 70px; text-align: center; position: relative; }
.eyebrow {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.7rem;
  color: var(--crimson-bright);
  margin-bottom: 26px;
  display: block;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--bone) 30%, var(--crimson) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px var(--blood-glow);
}
.hero .sub {
  font-size: clamp(1.02rem, 2.4vw, 1.32rem);
  color: var(--smoke);
  max-width: 640px;
  margin: 22px auto 0;
  font-style: italic;
}
.hero-cta { margin-top: 42px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--ui);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 2px;
  transition: transform 0.18s, box-shadow 0.25s, background 0.2s;
  display: inline-block;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-bright) 100%);
  color: #fff;
  box-shadow: 0 6px 30px var(--blood-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 44px rgba(225,29,63,0.5); }
.btn-ghost { border-color: var(--edge); color: var(--bone); background: rgba(184,23,52,0.06); }
.btn-ghost:hover { background: rgba(184,23,52,0.16); transform: translateY(-2px); }

/* ---------- SECTIONS ---------- */
section { padding: 66px 0; position: relative; }
.section-head { margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: 0.02em;
}
.section-head p { color: var(--smoke); max-width: 620px; margin-top: 14px; font-size: 1.05rem; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--crimson), transparent); opacity: 0.5; margin: 0 auto; max-width: 1180px; }

/* ---------- BOT CARDS ---------- */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.bot-card {
  background: linear-gradient(160deg, var(--coal), var(--ash));
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.bot-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--ember));
  opacity: 0.8;
}
.bot-card:hover { transform: translateY(-6px); border-color: var(--crimson); box-shadow: 0 18px 50px rgba(0,0,0,0.6), 0 0 40px var(--blood-glow); }
.bot-card .role {
  font-family: var(--ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--crimson-bright);
  margin-bottom: 16px;
  display: block;
}
.bot-card h3 { font-family: var(--display); font-size: 1.75rem; margin-bottom: 12px; letter-spacing: 0.03em; }
.bot-card p { color: var(--smoke); font-size: 0.98rem; margin-bottom: 20px; }
.bot-card ul { list-style: none; margin-bottom: 26px; }
.bot-card li { font-size: 0.92rem; color: var(--bone); padding: 6px 0 6px 22px; position: relative; }
.bot-card li::before { content: "✦"; position: absolute; left: 0; color: var(--crimson-bright); font-size: 0.8rem; }
.bot-card .card-link { font-family: var(--ui); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ember); text-decoration: none; }
.bot-card .card-link:hover { color: var(--bone); }

/* ---------- FEATURE / STEP LISTS ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature {
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 26px 24px;
  background: rgba(29,13,18,0.5);
  transition: border-color 0.2s, background 0.2s;
}
.feature:hover { border-color: var(--crimson); background: rgba(29,13,18,0.85); }
.feature .num { font-family: var(--display); font-size: 1.1rem; color: var(--crimson-bright); letter-spacing: 0.1em; }
.feature h4 { font-family: var(--display); font-size: 1.24rem; margin: 12px 0 10px; }
.feature p { color: var(--smoke); font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--edge); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.2rem;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.02em;
}
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--crimson-bright); font-size: 1.6rem; font-family: var(--ui); transition: transform 0.25s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--smoke); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 0 24px; font-size: 1rem; }

/* ---------- COMMAND TABLE ---------- */
.cmd-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cmd-table th {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--crimson-bright);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid var(--edge);
}
.cmd-table td { padding: 14px 16px; border-bottom: 1px solid rgba(184,23,52,0.12); color: var(--smoke); }
.cmd-table td code { font-family: var(--ui); color: var(--ember); background: rgba(184,23,52,0.1); padding: 3px 9px; border-radius: 2px; font-size: 0.86rem; }
.cmd-table tr:hover td { background: rgba(184,23,52,0.05); color: var(--bone); }

/* ---------- CTA STRIP ---------- */
.cta-strip { text-align: center; padding: 80px 0; }
.cta-strip h2 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.cta-strip p { color: var(--smoke); max-width: 520px; margin: 0 auto 34px; font-size: 1.08rem; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--edge); padding: 48px 0 40px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--dim); font-size: 0.9rem; max-width: 320px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--crimson-bright); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--smoke); text-decoration: none; font-size: 0.92rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--bone); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(184,23,52,0.1); color: var(--dim); font-size: 0.82rem; text-align: center; }

/* ---------- MINI MUSIC PLAYER (persists across pages) ---------- */
.player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 300px;
  background: linear-gradient(160deg, var(--coal), var(--void));
  border: 1px solid var(--crimson);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 30px var(--blood-glow);
  padding: 14px 16px;
  font-family: var(--ui);
  transition: transform 0.3s;
}
.player.hidden { transform: translateY(140%); }
.player-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.player-art {
  width: 42px; height: 42px; border-radius: 4px;
  background: radial-gradient(circle at 30% 30%, var(--crimson-bright), var(--void));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
  box-shadow: 0 0 14px var(--blood-glow);
}
.player-art.spin { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-meta { flex: 1; min-width: 0; }
.player-title { font-size: 0.82rem; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub { font-size: 0.68rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.player-close { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 1rem; }
.player-close:hover { color: var(--ember); }
.player-controls { display: flex; align-items: center; gap: 10px; }
.player-btn { background: none; border: none; color: var(--smoke); cursor: pointer; font-size: 1rem; padding: 4px; transition: color 0.2s; }
.player-btn:hover { color: var(--ember); }
.player-btn.play { color: var(--crimson-bright); font-size: 1.3rem; }
.player-bar { flex: 1; height: 4px; background: rgba(184,23,52,0.2); border-radius: 2px; overflow: hidden; }
.player-fill { height: 100%; width: 38%; background: linear-gradient(90deg, var(--crimson), var(--ember)); border-radius: 2px; transition: width 0.3s; }

/* ---------- PAGE HEADER (subpages) ---------- */
.page-head { padding: 70px 0 40px; text-align: center; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); background: linear-gradient(180deg, var(--bone), var(--crimson)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-head p { color: var(--smoke); max-width: 560px; margin: 18px auto 0; font-size: 1.08rem; }

/* status page bits */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.status-card { border: 1px solid var(--edge); border-radius: 4px; padding: 24px; background: rgba(29,13,18,0.5); display: flex; align-items: center; gap: 16px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot.up { background: #3ddc84; box-shadow: 0 0 12px rgba(61,220,132,0.6); }
.status-card h4 { font-family: var(--display); font-size: 1.2rem; }
.status-card span { font-family: var(--ui); font-size: 0.78rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.contact-card { border: 1px solid var(--edge); border-radius: 4px; padding: 30px; background: linear-gradient(160deg, var(--coal), var(--ash)); text-align: center; }
.contact-card .ico { font-size: 2rem; margin-bottom: 14px; }
.contact-card h4 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 8px; }
.contact-card p { color: var(--smoke); font-size: 0.94rem; margin-bottom: 18px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--ash); border-bottom: 1px solid var(--edge); padding: 12px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: block; }
  .footer-inner { flex-direction: column; }
  .player { width: calc(100vw - 40px); right: 20px; left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
