:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --fg: #e7e4dd;
  --muted: #b7b1a6;
  --accent: #8b0404;
  --accent-2: #c51616;
  --ring: #2a2a2e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: radial-gradient(
      1000px 600px at 50% -10%,
      rgba(139, 4, 4, 0.2),
      transparent 60%
    ),
    radial-gradient(
      600px 400px at 90% 10%,
      rgba(197, 22, 22, 0.1),
      transparent 50%
    ),
    linear-gradient(180deg, #0b0b0d 0%, #0b0b0d 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(720px, 100%);
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0)
    )
    var(--bg-2);
  border: 1px solid var(--ring);
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Noise overlay */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="table" tableValues="0 0 0 .08"/></feComponentTransfer></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.seal {
  width: 78px;
  height: 78px;
  flex: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand h1 {
  font-family: Cinzel, serif;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: clamp(22px, 4.2vw, 34px);
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand .tag {
  color: var(--muted);
  margin-top: 4px;
  font-size: clamp(13px, 2.6vw, 15px);
  letter-spacing: 0.12em;
}

.main {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.lead {
  font-size: clamp(18px, 3.8vw, 22px);
  line-height: 1.5;
  color: var(--fg);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: radial-gradient(
    120% 160% at 30% 10%,
    var(--accent-2),
    var(--accent)
  );
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(139, 4, 4, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(139, 4, 4, 0.45);
  filter: saturate(1.1);
}
.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--ring);
  box-shadow: none;
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.02);
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--ring);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.social {
  display: flex;
  gap: 10px;
}
.social a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--ring);
  padding: 8px 10px;
  border-radius: 12px;
}
.social a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.02);
}

/* Small helper for spacing on ultra-small screens */
@media (max-width: 360px) {
  header {
    gap: 12px;
  }
  .seal {
    width: 64px;
    height: 64px;
  }
}

/* Popup */
.mv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 9998;
}
.mv-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(560px, 92%);
  background: var(--bg-2, #111114);
  border: 1px solid var(--ring, #2a2a2e);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.6));
  color: var(--fg, #e7e4dd);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  z-index: 9999;
}
.mv-modal h2 {
  font-family: Cinzel, serif;
  font-size: clamp(20px, 4vw, 26px);
  margin: 0 0 6px;
}
.mv-sub {
  margin: 0 0 14px;
  color: var(--muted, #b7b1a6);
  font-size: 14px;
}

.mv-input {
  width: 100%;
  background: #0f0f12;
  color: var(--fg, #e7e4dd);
  border: 1px solid var(--ring, #2a2a2e);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.mv-input:focus {
  border-color: #3b3b40;
  box-shadow: 0 0 0 4px rgba(197, 22, 22, 0.18);
}
.mv-submit {
  width: 100%;
  margin-top: 10px;
}

.mv-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--ring, #2a2a2e);
  background: transparent;
  color: var(--fg, #e7e4dd);
  font-size: 20px;
  cursor: pointer;
}
.mv-close:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mv-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted, #b7b1a6);
  min-height: 1em;
}

/* accessibility helpers */
.mv-visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.mv-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.is-open #mv-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.is-open #mv-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
