/* Who is Mr Manual — v1 manifest (archived layout) */
:root {
  --wmm-accent: #4ade80;
  --wmm-accent-hot: #22c55e;
  --wmm-text: #e5e7eb;
  --wmm-muted: #94a3b8;
  --wmm-card: rgba(8, 14, 24, 0.88);
}

html.page-whoismrmanual-v1 {
  scroll-behavior: smooth;
}

html.theme-cyber.page-whoismrmanual-v1 {
  background-color: #020617;
  background-image:
    url("/assets/training-hex-grid.svg"),
    radial-gradient(ellipse 120vw 80vh at 50% -10%, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(180deg, #000 0%, #030a06 40%, #000 100%);
  background-size: 224px calc(224px * 168 / 193.99), 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
}

body.page-whoismrmanual-v1 {
  margin: 0;
  color: var(--wmm-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.wmm-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.wmm-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 20px 36px;
  margin: 0 -16px 28px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.25);
}

.wmm-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.35) 0%, rgba(2, 6, 23, 0.72) 55%, rgba(2, 6, 23, 0.95) 100%),
    url("/assets/cyber-stadium-night.png") center 30% / cover no-repeat;
  transform: scale(1.04);
  animation: wmm-hero-zoom 18s ease-in-out infinite alternate;
}

@keyframes wmm-hero-zoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

.wmm-hero-grid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(74, 222, 128, 0.03) 2px,
    rgba(74, 222, 128, 0.03) 4px
  );
  pointer-events: none;
  opacity: 0.6;
}

.wmm-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.wmm-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(0, 32, 16, 0.55);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #86efac;
}

.wmm-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 11vw, 4.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.wmm-hero h1 .wmm-glitch {
  display: block;
  color: var(--wmm-accent);
  text-shadow:
    0 0 20px rgba(74, 222, 128, 0.55),
    0 0 48px rgba(34, 197, 94, 0.25);
}

.wmm-hero-sub {
  margin: 0 0 18px;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  line-height: 1.45;
  color: #cbd5e1;
  max-width: 32rem;
}

.wmm-matrix-line {
  display: inline-block;
  margin: 0 0 22px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(0, 18, 8, 0.65);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: clamp(0.72rem, 2.5vw, 0.88rem);
  letter-spacing: 0.12em;
  color: #d1fae5;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.45);
}

.wmm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wmm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.5);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(6, 78, 59, 0.35));
  color: #ecfdf5;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.22);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.wmm-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 183, 0.8);
  box-shadow: 0 12px 36px rgba(34, 197, 94, 0.35);
}

.wmm-btn--ghost {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  box-shadow: none;
}

.wmm-btn--ghost:hover {
  border-color: rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.wmm-scroll-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  animation: wmm-bounce 2s ease-in-out infinite;
}

@keyframes wmm-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.wmm-section {
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.wmm-section.wmm-visible {
  opacity: 1;
  transform: none;
}

.wmm-punch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.wmm-punch-card {
  padding: 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(160deg, rgba(69, 10, 10, 0.35), rgba(15, 23, 42, 0.9));
  text-align: center;
}

.wmm-punch-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fca5a5;
}

.wmm-punch-card span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--wmm-muted);
}

.wmm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.wmm-card {
  padding: 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 197, 94, 0.1), transparent 70%),
    var(--wmm-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.wmm-card--dark {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.92);
}

.wmm-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  line-height: 1.25;
  color: #f8fafc;
}

.wmm-card h2 em {
  font-style: normal;
  color: var(--wmm-accent);
}

.wmm-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--wmm-muted);
}

.wmm-card p + p {
  margin-top: 10px;
}

.wmm-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.3);
  min-height: 220px;
  background: #020617;
}

.wmm-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wmm-visual-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(2, 6, 23, 0.92));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbf7d0;
}

.wmm-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.wmm-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(6, 78, 59, 0.25);
  font-size: 0.72rem;
  font-weight: 600;
  color: #86efac;
}

.wmm-quote {
  margin: 22px 0;
  padding: 20px 18px;
  border-left: 3px solid var(--wmm-accent-hot);
  border-radius: 0 16px 16px 0;
  background: rgba(34, 197, 94, 0.08);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  color: #ecfdf5;
}

.wmm-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  font-style: normal;
  color: var(--wmm-muted);
}

.wmm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wmm-step {
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  background: rgba(0, 24, 12, 0.35);
  text-align: center;
}

.wmm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.45);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--wmm-accent);
}

.wmm-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.wmm-step span {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--wmm-muted);
}

.wmm-dream {
  text-align: center;
  padding: 28px 20px;
  border-radius: 22px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background:
    url("/assets/entrance-gate.png") center / cover no-repeat,
    linear-gradient(180deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.92));
  background-blend-mode: overlay, normal;
}

.wmm-dream h2 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.wmm-dream p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cbd5e1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.wmm-final {
  text-align: center;
  padding: 32px 20px;
  border-radius: 22px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(34, 197, 94, 0.2), transparent 70%),
    var(--wmm-card);
}

.wmm-final h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: var(--wmm-accent);
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
}

.wmm-final p {
  margin: 0 0 20px;
  color: var(--wmm-muted);
  font-size: 0.92rem;
}

.wmm-final .wmm-hero-cta {
  justify-content: center;
}

@media (max-width: 720px) {
  .wmm-punch,
  .wmm-split,
  .wmm-steps {
    grid-template-columns: 1fr;
  }

  .wmm-hero {
    min-height: 88vh;
    padding-bottom: 44px;
  }

  .wmm-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wmm-hero-bg,
  .wmm-scroll-hint,
  .wmm-section {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
