:root {
  color-scheme: dark;
  --text: #f5ede4;
  --text-muted: rgba(245, 237, 228, 0.74);
  --gold: #d8ae71;
  --gold-bright: #f0d3a2;
  --gold-pale: rgba(240, 211, 162, 0.72);
  --gold-soft: rgba(216, 174, 113, 0.2);
  --gold-faint: rgba(216, 174, 113, 0.08);
  --panel: rgba(28, 17, 10, 0.76);
  --panel-strong: rgba(44, 28, 16, 0.86);
  --border: rgba(216, 174, 113, 0.22);
  --border-strong: rgba(216, 174, 113, 0.4);
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(216, 174, 113, 0.14), transparent 32%),
    linear-gradient(180deg, #090706 0%, #050303 100%);
  font-family: Inter, "Segoe UI", sans-serif;
}

body {
  position: relative;
  padding: 34px 20px 48px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(4, 2, 2, 0.18), rgba(4, 2, 2, 0.82)),
    url("assets/onboarding_bg.png") center top / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("assets/onboarding_glow_overlay.png") center top / cover no-repeat;
  opacity: 0.32;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell,
.page-shell {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(216, 174, 113, 0.18);
  background:
    linear-gradient(180deg, rgba(33, 20, 11, 0.78), rgba(13, 9, 7, 0.7));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.wordmark {
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(216, 174, 113, 0.16);
}

.topnav,
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav a,
.page-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.01);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.topnav a:hover,
.page-nav a:hover {
  color: var(--gold-bright);
  border-color: rgba(216, 174, 113, 0.22);
  background: rgba(216, 174, 113, 0.06);
  transform: translateY(-1px);
}

.hero,
.section-card,
.page-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(56, 35, 18, 0.72), rgba(12, 8, 6, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero::before,
.section-card::before,
.page-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(240, 211, 162, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(216, 174, 113, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%);
  pointer-events: none;
}

.hero {
  margin-bottom: 22px;
  padding: 34px 34px 30px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/onboarding_frame_overlay.png") center center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  margin-bottom: 176px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(74, 49, 26, 0.8), rgba(28, 17, 10, 0.9)),
    url("assets/onboarding_badge_bg.png") center / cover no-repeat;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.hero-orbit {
  position: absolute;
  top: 6px;
  right: -10px;
  left: -10px;
  height: 340px;
  background:
    radial-gradient(circle at center top, rgba(216, 174, 113, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(4, 2, 2, 0.04), rgba(4, 2, 2, 0.38)),
    url("assets/onboarding_hero_art.png") center top / contain no-repeat;
  opacity: 0.98;
  pointer-events: none;
  filter: drop-shadow(0 18px 34px rgba(216, 174, 113, 0.12));
}

.hero-copy,
.section-card,
.page-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(31, 19, 11, 0.5);
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-panel h1 {
  margin: 0 0 16px;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-copy p,
.section-card p,
.mini-card p,
.page-panel p,
.page-panel li {
  color: var(--text-muted);
  line-height: 1.76;
}

.hero-copy {
  max-width: 640px;
}

.section-card {
  padding: 26px 28px;
  margin-bottom: 18px;
}

.policy-list {
  display: grid;
  gap: 16px;
}

.mini-card {
  display: block;
  padding: 20px 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 174, 113, 0.2);
  background:
    linear-gradient(180deg, rgba(30, 19, 11, 0.76), rgba(14, 9, 6, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 211, 162, 0.34);
  background:
    linear-gradient(180deg, rgba(37, 23, 13, 0.84), rgba(16, 10, 7, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.26);
  color: inherit;
}

.mini-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mini-card strong,
.page-panel h2 {
  display: block;
  margin-bottom: 10px;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.18;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 6px 0;
  color: rgba(245, 237, 228, 0.54);
  font-size: 0.9rem;
}

.page-panel {
  padding: 34px 34px 38px;
}

.page-hero-art {
  height: 152px;
  margin: -10px -10px 24px;
  border-radius: 24px;
  border: 1px solid rgba(216, 174, 113, 0.12);
  background:
    linear-gradient(180deg, rgba(4, 2, 2, 0.16), rgba(4, 2, 2, 0.72)),
    url("assets/onboarding_hero_art.png") center top / contain no-repeat,
    url("assets/onboarding_glow_overlay.png") center top / cover no-repeat;
  opacity: 0.94;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.page-panel h2 {
  margin: 30px 0 10px;
}

.page-panel ul {
  padding-left: 18px;
}

.page-panel .lede {
  margin-top: 0;
  font-size: 1.04rem;
  color: rgba(245, 237, 228, 0.82);
}

.page-panel a,
.hero-copy a,
.section-card a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(240, 211, 162, 0.28);
  text-underline-offset: 0.18em;
}

.page-panel a:hover,
.hero-copy a:hover,
.section-card a:hover {
  text-decoration-color: rgba(240, 211, 162, 0.54);
}

@media (max-width: 860px) {
  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .section-card,
  .page-panel {
    padding: 26px 24px;
  }

  .hero-badge {
    margin-bottom: 148px;
  }

  .hero-orbit {
    height: 292px;
  }
}

@media (max-width: 540px) {
  body {
    padding: 20px 14px 32px;
  }

  .wordmark {
    font-size: 0.96rem;
    letter-spacing: 0.14em;
  }

  .hero-badge {
    margin-bottom: 126px;
  }

  .hero-orbit {
    top: 10px;
    right: -14px;
    left: -14px;
    height: 240px;
  }

  .hero-copy h1,
  .page-panel h1 {
    line-height: 1;
  }

  .topnav a,
  .page-nav a {
    padding: 8px 12px;
  }
}
