:root {
  --bg: #070604;
  --bg-2: #100c08;
  --panel: rgba(18, 13, 8, 0.86);
  --panel-strong: rgba(26, 18, 10, 0.92);
  --text: #f6e4bf;
  --muted: rgba(246, 228, 191, 0.72);
  --faint: rgba(246, 228, 191, 0.52);
  --gold: #d9a45e;
  --gold-2: #f0c984;
  --gold-line: rgba(240, 201, 132, 0.28);
  --danger: #ffd0c7;
  --shadow: rgba(0, 0, 0, 0.46);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

body {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen {
  position: fixed;
  inset: 0;
  display: none;
}

.screen.active {
  display: block;
}

.um-toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.um-toast {
  padding: 12px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(14, 9, 5, 0.94);
  color: var(--text);
  box-shadow: 0 18px 45px var(--shadow);
}

.landing-screen {
  overflow-y: auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(7, 6, 4, 0.96), rgba(16, 12, 8, 0.98)),
    repeating-linear-gradient(90deg, rgba(240, 201, 132, 0.04) 0 1px, transparent 1px 112px);
  scroll-behavior: smooth;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--gold-line);
  background: rgba(7, 6, 4, 0.7);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.landing-brand {
  display: grid;
  color: var(--text);
  font-family: var(--serif);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.9;
}

.landing-brand span {
  color: var(--muted);
  font-size: 1.05rem;
}

.landing-brand strong {
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 700;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.landing-nav-links a {
  color: rgba(246, 228, 191, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.landing-nav-links a:hover {
  color: var(--gold-2);
}

.landing-nav-actions,
.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-link-button,
.landing-gold-button,
.landing-ghost-button,
.auth-back-btn,
.premium-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(20, 14, 8, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.landing-gold-button,
.premium-button {
  border-color: rgba(240, 201, 132, 0.52);
  color: #201205;
  background: linear-gradient(135deg, #f0c984, #c4873d);
  font-weight: 800;
}

.landing-ghost-button {
  color: var(--text);
}

.landing-button-lg {
  min-height: 50px;
  padding: 0 24px;
}

.landing-hero {
  position: relative;
  min-height: calc(100svh - 72px);
  padding: 0;
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 56% 46%, rgba(240, 201, 132, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(7, 6, 4, 0.05), rgba(7, 6, 4, 0.28) 64%, rgba(7, 6, 4, 0.82));
  z-index: 1;
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: clamp(18px, 5vw, 76px);
  right: clamp(18px, 5vw, 76px);
  bottom: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 201, 132, 0.52), transparent);
  z-index: 1;
}

.landing-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.landing-hero-content {
  position: relative;
  grid-column: 1;
  z-index: 2;
  max-width: 540px;
  padding-top: 0;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.78);
}

.landing-kicker,
.premium-eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section-heading h2,
.landing-final-cta h2,
.premium-panel h1,
.profile-panel h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
}

.landing-hero h1 {
  max-width: 560px;
  font-size: clamp(4.1rem, 7vw, 6.25rem);
}

.landing-subtitle {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.landing-hero-actions {
  margin-top: 32px;
}

.landing-hero-rail {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 5vw, 76px);
  bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 1rem;
  text-transform: uppercase;
}

.landing-hero-rail span:not(:last-child)::after {
  content: "·";
  padding-left: 14px;
  color: rgba(240, 201, 132, 0.64);
}

.landing-feature-showcase {
  width: 100%;
  margin: 0;
}

.landing-feature-showcase img {
  width: 100%;
  display: block;
  border: 1px solid rgba(240, 201, 132, 0.3);
  border-radius: 12px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.landing-museum {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 22px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(240, 201, 132, 0.06), transparent 24%),
    linear-gradient(145deg, rgba(30, 22, 14, 0.78), rgba(8, 6, 4, 0.88));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48);
}

.landing-museum::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 24px;
  height: 72px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  transform: perspective(420px) rotateX(68deg);
  background: rgba(240, 201, 132, 0.05);
}

.museum-frame {
  position: relative;
  height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 201, 132, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(240, 201, 132, 0.08), transparent 18%, transparent 82%, rgba(240, 201, 132, 0.08)),
    linear-gradient(180deg, #152018, #080907);
  box-shadow: inset 0 0 0 8px rgba(240, 201, 132, 0.05), 0 22px 50px rgba(0, 0, 0, 0.38);
}

.museum-frame-right {
  background:
    linear-gradient(90deg, rgba(240, 201, 132, 0.08), transparent 18%, transparent 82%, rgba(240, 201, 132, 0.08)),
    linear-gradient(180deg, #111722, #07080b);
}

.museum-frame span {
  max-width: 160px;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.museum-display {
  height: 430px;
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 34px 22px 58px;
  border: 1px solid rgba(240, 201, 132, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(240, 201, 132, 0.08), transparent 34%),
    linear-gradient(180deg, #21180f, #0b0805);
}

.museum-brain-mark {
  width: 104px;
  height: 104px;
  margin-bottom: 40px;
  border: 2px solid var(--gold-2);
  border-radius: 50%;
  position: relative;
}

.museum-brain-mark::before,
.museum-brain-mark::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  width: 32px;
  border: 2px solid var(--gold-2);
  border-radius: 50%;
}

.museum-brain-mark::before {
  left: 18px;
}

.museum-brain-mark::after {
  right: 18px;
}

.museum-book {
  width: min(260px, 80%);
  height: 88px;
  border: 1px solid rgba(240, 201, 132, 0.34);
  border-radius: 8px 8px 20px 20px;
  background:
    linear-gradient(90deg, rgba(246, 228, 191, 0.72) 0 49%, rgba(150, 101, 48, 0.72) 49.2% 50.8%, rgba(246, 228, 191, 0.72) 51%),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(93, 57, 28, 0.2) 12px 13px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

.landing-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.landing-story,
.landing-evidence-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: start;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.landing-section-heading h2,
.landing-final-cta h2 {
  max-width: 760px;
  font-size: 3.35rem;
}

.story-copy p,
.evidence-copy p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.9;
}

.story-copy {
  display: grid;
  gap: 18px;
}

.story-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.story-metrics span {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(29, 20, 12, 0.72), rgba(10, 7, 4, 0.76));
}

.story-metrics strong {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.route-grid,
.myth-grid,
.benefit-grid,
.how-grid,
.faq-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-card,
.myth-card,
.benefit-grid span,
.how-grid article,
.faq-grid details {
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(29, 20, 12, 0.84), rgba(12, 8, 5, 0.88));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.route-card,
.how-grid article {
  min-height: 238px;
  padding: 24px;
}

.route-card span,
.how-grid span {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 2.1rem;
}

.route-card h3,
.how-grid h3,
.myth-card h3,
.glossary-item h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.route-card p,
.how-grid p,
.myth-card p,
.glossary-item p {
  color: var(--muted);
  line-height: 1.7;
}

.how-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-find-section {
  padding-top: 96px;
}

.landing-evidence-section {
  grid-template-columns: 0.75fr 1.25fr;
}

.evidence-layout {
  display: grid;
  gap: 24px;
}

.evidence-copy {
  display: grid;
  gap: 18px;
}

.evidence-copy ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-copy li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.evidence-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-2);
  transform: rotate(45deg);
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid details {
  min-height: 122px;
  padding: 20px 22px;
}

.faq-grid summary {
  color: var(--text);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.12;
}

.faq-grid summary::marker {
  color: var(--gold-2);
}

.faq-grid p {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.myth-section {
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.myth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.myth-card {
  padding: 24px;
}

.myth-label,
.truth-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.myth-label {
  color: #f1a695;
}

.truth-label {
  color: var(--gold-2);
}

.myth-card h3 {
  margin: 10px 0 22px;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-grid span {
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--text);
  font-weight: 700;
}

.landing-final-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 72px;
  padding: 64px;
  border: 1px solid rgba(240, 201, 132, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(240, 201, 132, 0.12), transparent),
    linear-gradient(180deg, rgba(29, 20, 12, 0.92), rgba(10, 7, 4, 0.94));
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.42);
}

.landing-final-cta button {
  margin-top: 28px;
}

.landing-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--gold-line);
  color: var(--muted);
}

.landing-footer p {
  margin: 0;
  text-align: center;
}

.auth-screen {
  overflow-y: auto;
  background: #050403;
}

.auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-bg::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 201, 132, 0.48), transparent);
}

.auth-bg-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.auth-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(240, 201, 132, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(5, 4, 3, 0.62), rgba(5, 4, 3, 0.18), rgba(5, 4, 3, 0.62)),
    linear-gradient(180deg, rgba(5, 4, 3, 0.2), rgba(5, 4, 3, 0.58));
}

.auth-bg-door {
  position: absolute;
  top: 18%;
  width: 22%;
  max-width: 320px;
  min-width: 180px;
  height: 62%;
  border: 1px solid rgba(240, 201, 132, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(33, 24, 15, 0.72), rgba(8, 6, 4, 0.28));
}

.auth-bg-door-left {
  left: 5%;
}

.auth-bg-door-right {
  right: 5%;
}

.auth-bg-light {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 260px;
  height: 66%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(240, 201, 132, 0.18), transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  opacity: 0.8;
}

.auth-back-btn {
  position: fixed;
  z-index: 8;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-content-host {
  position: relative;
  z-index: 3;
  width: min(680px, calc(100vw - 32px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 76px 0 30px;
}

.lp-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 28px 32px;
  border: 1px solid rgba(240, 201, 132, 0.32);
  border-radius: 18px;
  background: rgba(14, 10, 6, 0.76);
  color: var(--text);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
}

.lp-auth-card--login-h {
  max-width: 420px;
}

.lp-auth-card--wide-h {
  max-width: 640px;
}

.lp-auth-head {
  text-align: center;
  margin-bottom: 16px;
}

.lp-auth-brain {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
}

.lp-auth-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.28rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lp-auth-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lp-auth-row {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.lp-auth-row--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lp-auth-row--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-auth-field {
  display: grid;
  gap: 5px;
}

.lp-auth-field label,
.auth-field-group label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lp-auth-field input,
.lp-auth-field select,
.auth-input {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(240, 201, 132, 0.24);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(7, 6, 4, 0.55);
  outline: none;
}

.lp-auth-field input:focus,
.lp-auth-field select:focus,
.auth-input:focus {
  border-color: rgba(240, 201, 132, 0.72);
  box-shadow: 0 0 0 3px rgba(240, 201, 132, 0.14);
}

.lp-auth-section-title {
  margin-top: 14px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lp-auth-section-title span {
  color: var(--muted);
  font-weight: 500;
}

.lp-auth-forgot a,
.lp-auth-switch {
  color: var(--muted);
  font-size: 0.78rem;
}

.lp-auth-forgot {
  margin: 8px 0 0;
  text-align: right;
}

.lp-auth-forgot a,
.lp-auth-switch button {
  color: var(--gold-2);
}

.lp-auth-error {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 166, 149, 0.45);
  border-radius: 8px;
  color: #ffd6d2;
  background: rgba(120, 28, 22, 0.22);
}

.lp-auth-cta,
.btn-dark {
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid rgba(240, 201, 132, 0.58);
  border-radius: 999px;
  color: #201205;
  background: linear-gradient(135deg, #f0c984, #c4873d);
  font-weight: 800;
}

.lp-auth-switch {
  margin-top: 12px;
  text-align: center;
}

.lp-auth-switch button {
  border: 0;
  background: transparent;
  text-decoration: underline;
}

.app-shell,
.app-content {
  width: 100%;
  height: 100%;
}

.visual-page,
.premium-page {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #050403;
}

.visual-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(240, 201, 132, 0.1), transparent 44%),
    #050403;
}

.visual-page::before {
  content: "";
  position: absolute;
  inset: -42px;
  background-image: var(--visual-bg);
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  opacity: 0.42;
  transform: scale(1.08);
  pointer-events: none;
  z-index: 0;
}

.visual-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, transparent 32%, rgba(5, 4, 3, 0.32) 72%),
    linear-gradient(90deg, rgba(5, 4, 3, 0.38), transparent 20%, transparent 80%, rgba(5, 4, 3, 0.38));
  pointer-events: none;
  z-index: 0;
}

.visual-stage {
  position: relative;
  z-index: 1;
  width: min(100vw, 150svh);
  aspect-ratio: 3 / 2;
  max-width: 100vw;
  max-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.42);
}

.visual-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}

.visual-hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.visual-hotspot {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.debug-hotspots .visual-hotspot {
  border: 1px solid rgba(255, 43, 43, 0.9);
  background: rgba(255, 0, 0, 0.14);
}

.visual-hotspot:focus-visible {
  outline: 2px solid rgba(240, 201, 132, 0.95);
  outline-offset: 3px;
}

.certificate-page .visual-stage {
  animation: certificateFade 240ms ease both;
}

.certificate-stage-lobby {
  width: min(100vw, 66.666svh);
  aspect-ratio: 2 / 3;
}

.certificate-image {
  pointer-events: none;
}

.certificate-lock-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.certificate-lock {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(240, 201, 132, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(240, 201, 132, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(5, 4, 3, 0.64), rgba(15, 10, 6, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 184, 0.08),
    inset 0 0 28px rgba(0, 0, 0, 0.42),
    0 14px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(5px) saturate(0.72);
}

.certificate-lock::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(240, 201, 132, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(240, 201, 132, 0.12) 45% 47%, transparent 48%),
    linear-gradient(225deg, transparent 0 44%, rgba(240, 201, 132, 0.08) 45% 47%, transparent 48%);
}

.certificate-lock::after {
  content: "LOCKED";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(112px, 70%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 201, 132, 0.6);
  border-radius: 50%;
  color: rgba(240, 201, 132, 0.72);
  font-size: clamp(0.42rem, 0.68vw, 0.64rem);
  font-weight: 900;
  letter-spacing: 0;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: rgba(8, 6, 4, 0.5);
  box-shadow: 0 0 28px rgba(240, 201, 132, 0.12);
}

.certificate-lock-seal {
  position: relative;
  z-index: 2;
  max-width: 82%;
  margin-top: 42%;
  padding: 0.45em 0.75em;
  border: 1px solid rgba(240, 201, 132, 0.42);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(5, 4, 3, 0.6);
  font-size: clamp(0.48rem, 0.74vw, 0.72rem);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

@keyframes certificateFade {
  from {
    opacity: 0;
    transform: scale(0.992);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.visual-back {
  position: fixed;
  z-index: 22;
  top: calc(24px + env(safe-area-inset-top));
  left: calc(32px + env(safe-area-inset-left));
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 6, 4, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.visual-menu-button {
  position: fixed;
  z-index: 24;
  top: calc(18px + env(safe-area-inset-top));
  left: calc(18px + env(safe-area-inset-left));
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 0;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(8, 6, 4, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.visual-menu-button span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 0 14px rgba(240, 201, 132, 0.5);
}

.visual-menu-panel {
  position: fixed;
  z-index: 23;
  top: 0;
  left: 0;
  width: min(310px, 86vw);
  height: 100svh;
  padding: calc(88px + env(safe-area-inset-top)) 18px 22px;
  transform: translateX(-104%);
  transition: transform 220ms ease;
  border-right: 1px solid var(--gold-line);
  background: rgba(10, 7, 4, 0.86);
  backdrop-filter: blur(26px);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.42);
}

.visual-menu.is-open .visual-menu-panel {
  transform: translateX(0);
}

.visual-menu-brand {
  padding: 4px 8px 22px;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0;
}

.visual-menu-brand span,
.visual-menu-brand strong {
  display: block;
}

.visual-menu-brand span {
  color: var(--muted);
  font-size: 1.2rem;
}

.visual-menu-brand strong {
  color: var(--text);
  font-size: 2rem;
}

.visual-menu-panel button {
  width: 100%;
  min-height: 46px;
  margin: 4px 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.visual-menu-panel button:hover {
  border-color: var(--gold-line);
  background: rgba(240, 201, 132, 0.1);
}

.visual-menu-panel .visual-menu-danger {
  margin-top: 16px;
  color: var(--danger);
}

.premium-page {
  padding: 88px 16px 28px;
  background:
    linear-gradient(180deg, rgba(7, 6, 4, 0.98), rgba(16, 12, 8, 0.98)),
    repeating-linear-gradient(90deg, rgba(240, 201, 132, 0.035) 0 1px, transparent 1px 120px);
}

.premium-panel,
.profile-panel {
  width: min(640px, calc(100vw - 32px));
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(240, 201, 132, 0.32);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
  backdrop-filter: blur(24px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.premium-panel h1,
.profile-panel h1 {
  font-size: 4.2rem;
}

.premium-button {
  margin-top: 28px;
}

.profile-panel {
  text-align: left;
}

.profile-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(240, 201, 132, 0.18);
}

.profile-list dt {
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-list dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.glossary-panel {
  width: min(960px, calc(100vw - 32px));
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.glossary-item {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.glossary-item h2 {
  margin: 0;
  font-size: 1.6rem;
}

.glossary-item p {
  margin: 10px 0 0;
}

.route-gallery-panel,
.learning-panel {
  width: min(1120px, calc(100vw - 32px));
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(240, 201, 132, 0.32);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.route-gallery-panel h1,
.learning-panel h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.route-gallery-panel > p,
.learning-head p,
.assessment-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.learning-head p,
.assessment-panel p {
  white-space: pre-line;
}

.route-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.route-gallery-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(10, 7, 4, 0.78);
  color: var(--text);
  text-align: left;
}

.route-gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 220ms ease, opacity 220ms ease;
}

.route-gallery-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.route-gallery-card:hover img {
  opacity: 0.68;
  transform: scale(1.035);
}

.learning-panel {
  width: min(1040px, calc(100vw - 32px));
}

.learning-head {
  max-width: 780px;
}

.learning-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-line);
  color: var(--muted);
}

.learning-topbar button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.learning-topbar span {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 22px;
}

.book-cover-card,
.book-modules-card {
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.book-cover-card {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 12%, rgba(240, 201, 132, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(32, 22, 12, 0.72), rgba(7, 6, 4, 0.88));
}

.book-cover-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.book-cover-card h2 {
  margin: 12px 0 0;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 1.48rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.book-cover-card p {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

.book-cover-card dl {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
}

.book-cover-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(240, 201, 132, 0.16);
}

.book-cover-card dt {
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.book-cover-card dd {
  margin: 0;
  color: var(--text);
}

.book-progress {
  height: 8px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
}

.book-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0c984, #c4873d);
}

.book-modules-card {
  padding: 24px;
}

.book-modules-card .learning-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: 0;
}

.competency-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(240, 201, 132, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.competency-list span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.competency-list span::before {
  content: "•";
  margin-right: 8px;
  color: var(--gold-2);
}

.learning-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.module-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.module-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 110px 1fr 132px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.module-row span,
.module-row small {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.module-row strong {
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.05;
}

.module-row.is-locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.module-row.is-progress {
  background: rgba(240, 201, 132, 0.1);
}

.premium-button:disabled,
.module-row:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.module-progress {
  margin-bottom: 22px;
}

.module-grid,
.module-detail-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card,
.module-detail-grid section {
  min-height: 154px;
  padding: 18px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.module-card span,
.module-detail-grid span {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.module-card strong,
.module-detail-grid h2 {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

.module-card small,
.module-detail-grid p {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.module-card-exam {
  background: linear-gradient(180deg, rgba(240, 201, 132, 0.13), rgba(255, 255, 255, 0.035));
}

.module-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

@media (max-width: 1120px) {
  .landing-hero {
    grid-template-columns: minmax(280px, 0.48fr) minmax(0, 0.52fr);
  }

  .landing-hero h1 {
    font-size: 4.8rem;
  }

  .landing-museum {
    min-height: 480px;
  }

  .route-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .landing-nav {
    align-items: center;
    min-height: 70px;
    padding: 12px 16px;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-brand strong {
    font-size: 1.35rem;
  }

  .landing-nav-actions {
    justify-content: flex-end;
  }

  .landing-link-button,
  .landing-gold-button,
  .landing-ghost-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .landing-hero {
    min-height: auto;
    min-height: calc(100svh - 70px);
    padding: 0;
  }

  .landing-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    object-position: center;
    box-shadow: none;
  }

  .landing-hero-content {
    grid-column: 1;
    grid-row: 1;
    max-width: 680px;
  }

  .landing-hero-rail {
    position: relative;
    left: auto;
    bottom: auto;
    grid-column: 1;
    grid-row: 3;
  }

  .landing-hero h1 {
    font-size: 3.65rem;
  }

  .landing-subtitle {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .landing-museum {
    min-height: 430px;
    grid-template-columns: 1fr 1fr;
  }

  .museum-display {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 260px;
  }

  .museum-frame {
    height: 260px;
  }

  .museum-frame span {
    font-size: 1.35rem;
  }

  .landing-story,
  .landing-evidence-section,
  .story-metrics,
  .route-grid,
  .myth-grid,
  .benefit-grid,
  .how-grid,
  .faq-grid,
  .book-layout,
  .lp-auth-row--2col,
  .lp-auth-row--3col,
  .profile-list div,
  .glossary-list,
  .module-grid,
  .module-detail-grid {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 64px 0;
  }

  .landing-section-heading h2,
  .landing-final-cta h2 {
    font-size: 2.5rem;
  }

  .landing-final-cta {
    padding: 34px 22px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer p {
    text-align: left;
  }

  .visual-stage {
    width: 100vw;
  }

  .visual-back {
    top: calc(24px + env(safe-area-inset-top));
    left: calc(32px + env(safe-area-inset-left));
  }

  .premium-panel h1,
  .profile-panel h1,
  .route-gallery-panel h1,
  .learning-panel h1 {
    font-size: 3rem;
  }

  .route-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .landing-nav {
    position: relative;
  }

  .landing-nav-actions {
    gap: 8px;
  }

  .landing-hero h1 {
    font-size: 3.05rem;
  }

  .landing-hero-bg {
    aspect-ratio: auto;
    object-position: center;
  }

  .landing-hero-rail {
    font-size: 0.86rem;
  }

  .landing-hero-actions {
    flex-direction: column;
  }

  .landing-hero-actions button,
  .landing-final-cta button {
    width: 100%;
  }

  .landing-museum {
    padding: 14px;
    gap: 12px;
  }

  .museum-display {
    height: 230px;
    padding: 22px 14px 38px;
  }

  .museum-frame {
    height: 210px;
  }

  .lp-auth-title {
    font-size: 2.05rem;
  }

  .auth-content-host {
    width: min(calc(100vw - 20px), 420px);
    padding-top: 74px;
  }

  .lp-auth-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .route-gallery-grid {
    grid-template-columns: 1fr;
  }

  .route-gallery-card {
    min-height: 160px;
  }
}
