/* =========================================================================
   MITHRACORP — design tokens & site styles
   Built on top of Bootstrap 5 (grid, utilities, components are Bootstrap's;
   everything visual/typographic here is custom).
   ========================================================================= */

:root {
  /* --- color: a mithraeum lit by torchlight, not a screen --- */
  --ink:           #100d0a;   /* page background — near-black, warm stone */
  --stone:         #1b1712;   /* section / card background */
  --stone-line:    #2c2419;   /* hairline borders, dividers */
  --parchment:     #eee6d3;   /* primary text */
  --parchment-dim: #b3a891;   /* secondary text */
  --gold:          #c9973e;   /* primary accent — torch / Sol */
  --gold-bright:   #e7bb69;   /* hover state, emphasis */
  --oxide:         #8b3a2b;   /* secondary accent — seal, wax, oath */
  --night:         #26384a;   /* tertiary accent — network / tech */
  --night-bright:  #4d7091;

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background-color: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

::selection { background: var(--oxide); color: var(--parchment); }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--parchment);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.text-parchment-dim { color: var(--parchment-dim); }
.text-gold { color: var(--gold); }
.mono { font-family: var(--font-mono); }

hr.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone-line) 20%, var(--stone-line) 80%, transparent);
  margin: 3rem 0;
}

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.mc-header {
  background: rgba(16, 13, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-line);
}

.mc-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--parchment) !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mc-brand:hover { color: var(--gold-bright) !important; }

.mc-mark-img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.navbar-nav .nav-link {
  color: var(--parchment-dim);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem !important;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--parchment);
}
.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.1rem;
  height: 2px;
  background: var(--gold);
}

.btn-mc {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.btn-mc:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }

.btn-mc-outline {
  background: transparent;
  border: 1px solid var(--stone-line);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.btn-mc-outline:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,151,62,0.14), transparent 60%),
    var(--ink);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.12;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--parchment-dim);
  max-width: 34rem;
}

/* signature emblem: Sol Invictus rendered as a network diagram */
.emblem-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.emblem { width: 100%; max-width: 420px; height: auto; }
.emblem .ring {
  fill: none;
  stroke: var(--stone-line);
  stroke-width: 1;
}
.emblem .ray {
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0.55;
}
.emblem .node {
  fill: var(--ink);
  stroke: var(--gold);
  stroke-width: 1.5;
}
.emblem .node.active { fill: var(--gold); }
.emblem .core {
  fill: var(--gold);
}
.emblem .rotor {
  transform-origin: 210px 210px;
  animation: rotor-spin 90s linear infinite;
}
@keyframes rotor-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--stone); border-top: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line); }

.card-mc {
  background: var(--stone);
  border: 1px solid var(--stone-line);
  border-radius: 3px;
  padding: 2.2rem;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card-mc:hover { border-color: var(--gold); transform: translateY(-3px); }

.card-mc .icon-mc {
  width: 42px; height: 42px;
  margin-bottom: 1.2rem;
  color: var(--gold);
}

.stat-strip {
  font-family: var(--font-mono);
  border-top: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
}
.stat-strip .stat-num {
  font-size: 2rem;
  color: var(--gold);
  font-family: var(--font-display);
}
.stat-strip .stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}

.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6fae6a;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(111,174,106,0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111,174,106,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(111,174,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,174,106,0); }
}

/* region grid (world coverage) */
.region-row {
  border-bottom: 1px solid var(--stone-line);
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.region-row:first-of-type { border-top: 1px solid var(--stone-line); }

/* seal / oath callout */
.seal-block {
  border: 1px solid var(--oxide);
  background: linear-gradient(180deg, rgba(139,58,43,0.08), transparent);
  padding: 2.5rem;
  border-radius: 3px;
}

/* timeline for About page (a real sequence — history) */
.mc-timeline { position: relative; padding-left: 2.2rem; }
.mc-timeline::before {
  content: "";
  position: absolute; left: 6px; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--stone-line);
}
.mc-timeline-item { position: relative; padding-bottom: 2.6rem; }
.mc-timeline-item::before {
  content: "";
  position: absolute; left: -2.2rem; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
}
.mc-timeline-item:last-child { padding-bottom: 0; }
.mc-timeline-year {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.mc-footer {
  background: var(--stone);
  border-top: 1px solid var(--stone-line);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--parchment-dim);
}
.mc-footer h6 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 1rem;
}
.mc-footer a { color: var(--parchment-dim); }
.mc-footer a:hover { color: var(--gold); }
.mc-footer .bottom-line {
  border-top: 1px solid var(--stone-line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, .nav-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------
   Small reusable pill tag (quick-facts rows, etc.)
   --------------------------------------------------------------------- */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--stone-line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--parchment-dim);
}

/* ---------------------------------------------------------------------
   MithraVoice hero illustration
   --------------------------------------------------------------------- */
.mv-emblem-wrap { display: flex; align-items: center; justify-content: center; }
.mv-emblem { width: 100%; max-width: 460px; height: auto; }
.mv-emblem .mv-screen { fill: var(--stone); stroke: var(--stone-line); stroke-width: 1.5; }
.mv-emblem .mv-live-dot { fill: var(--gold); animation: mv-pulse 2s infinite; }
.mv-emblem .mv-live-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  fill: var(--gold);
  text-transform: uppercase;
}
.mv-emblem .mv-wave-bar { fill: var(--stone-line); }
.mv-emblem .mv-caption { fill: var(--ink); stroke: var(--stone-line); stroke-width: 1; }
.mv-emblem .mv-badge-en { fill: var(--gold); }
.mv-emblem .mv-badge-fa { fill: var(--parchment); }
.mv-emblem .mv-badge-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}
.mv-emblem .mv-line-en { stroke: var(--gold-bright); stroke-width: 5; stroke-linecap: round; }
.mv-emblem .mv-line-fa { stroke: var(--parchment); stroke-width: 5; stroke-linecap: round; }
.mv-emblem .mv-mic { stroke: var(--gold); stroke-width: 1.6; fill: none; stroke-linecap: round; }

@keyframes mv-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ---------------------------------------------------------------------
   MithraVoice pricing tables
   --------------------------------------------------------------------- */
.mv-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stone-line);
  border-radius: 6px;
  background: var(--stone);
}
.mv-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.mv-table th, .mv-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--stone-line);
  white-space: nowrap;
}
.mv-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.mv-table td { color: var(--parchment-dim); font-size: 0.92rem; }
.mv-table td:first-child { color: var(--parchment); font-weight: 600; white-space: normal; }
.mv-table td.mv-price { color: var(--gold-bright); font-weight: 700; }
.mv-table tr:last-child td { border-bottom: none; }
.mv-table td.mv-notes { white-space: normal; min-width: 220px; }
.mv-buy-btn {
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  white-space: nowrap;
  display: inline-block;
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-link.active::after { display: none; }
  .hero { padding: 5rem 0 3.5rem; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
}
