:root {
  --bg: #16181d;
  --bg-2: #3a2f26;
  --surface: #e1d3bb;
  --surface-2: #cdbfa5;
  --text: #f0e8d9;
  --ink: #202630;
  --accent: #4dab91;
  --soft: rgba(255, 255, 255, 0.12);
  --radius: 30px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --bg-shift-y: 0px;
  --bg-shift-x: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 15%, rgba(92, 86, 76, 0.24), transparent 28%),
    radial-gradient(circle at 16% 88%, rgba(92, 86, 76, 0.3), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.bg-layer-soft {
  background:
    radial-gradient(
      circle at 72% 20%,
      rgba(255, 255, 255, 0.03),
      transparent 22%
    ),
    radial-gradient(
      circle at 20% 86%,
      rgba(255, 255, 255, 0.02),
      transparent 18%
    );
  transform: translate3d(var(--bg-shift-x), calc(var(--bg-shift-y) * 0.75), 0);
}

.bg-layer-rings {
  background:
    radial-gradient(
      circle at 70% 26%,
      transparent 0 27%,
      rgba(255, 255, 255, 0.055) 27.3%,
      transparent 27.8%
    ),
    radial-gradient(
      circle at 74% 32%,
      transparent 0 21%,
      rgba(255, 255, 255, 0.035) 21.3%,
      transparent 21.7%
    );
  opacity: 0.5;
  transform: translate3d(calc(var(--bg-shift-x) * -0.6), calc(var(--bg-shift-y) * 1.15), 0);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 48px));
  margin: 24px auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 42px;
  background: linear-gradient(
    180deg,
    rgba(20, 22, 27, 0.82),
    rgba(31, 27, 24, 0.74)
  );
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar,
.footer,
.hero,
.stats-row,
.section {
  padding-left: 42px;
  padding-right: 42px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.brand-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topnav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 232, 217, 0.76);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;
}

.footer-links a {
  color: rgba(240, 232, 217, 0.76);
  text-decoration: none;
  font-size: 0.95rem;
}

.topnav a.nav-focus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f3ecde;
  box-shadow: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.topnav a.nav-focus::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(77, 171, 145, 0),
    rgba(77, 171, 145, 0.95),
    rgba(77, 171, 145, 0)
  );
  opacity: 0.78;
}

.topnav a:hover,
.footer-links a:hover,
.topnav a.nav-focus:hover {
  color: var(--text);
}

.topnav a.nav-focus:hover::after {
  opacity: 1;
}

.value-soft-accent {
  color: #f5ede0;
  text-shadow: 0 0 18px rgba(77, 171, 145, 0.08);
}


.quick-nav {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(980px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(24, 27, 31, 0.96),
    rgba(34, 30, 28, 0.92)
  );
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

body.has-quick-nav:not(.quick-nav-collapsed) .quick-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 821px) {
  body.has-quick-nav .quick-nav {
    transform: translateX(-50%) translateY(0);
  }
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 232, 217, 0.84);
  text-decoration: none;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  font-size: 0.92rem;
}

@media (min-width: 821px) and (max-width: 1120px) {
  .quick-nav {
    width: min(900px, calc(100% - 28px));
    padding: 8px 10px;
    gap: 8px;
  }

  .quick-nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.88rem;
  }
}

.quick-nav a:hover {
  color: var(--text);
  border-color: rgba(77, 171, 145, 0.3);
  background: rgba(77, 171, 145, 0.1);
}

.quick-nav a.quick-nav-focus {
  border-color: rgba(77, 171, 145, 0.18);
  background: linear-gradient(180deg, rgba(77, 171, 145, 0.09), rgba(77, 171, 145, 0.04));
  color: #f3ecde;
}

.quick-nav a.quick-nav-focus:hover {
  border-color: rgba(77, 171, 145, 0.3);
  background: linear-gradient(180deg, rgba(77, 171, 145, 0.13), rgba(77, 171, 145, 0.07));
  transform: translateY(-1px);
}

.quick-nav a.quick-nav-focus:hover {
  border-color: rgba(77, 171, 145, 0.3);
  background: linear-gradient(180deg, rgba(77, 171, 145, 0.13), rgba(77, 171, 145, 0.07));
  transform: translateY(-1px);
}

.quick-nav-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(24, 27, 31, 0.96),
    rgba(34, 30, 28, 0.92)
  );
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  color: rgba(240, 232, 217, 0.9);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, background 0.16s ease, border-color 0.16s ease;
  transform: translateY(8px);
}

body.has-quick-nav .quick-nav-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.quick-nav-toggle:hover {
  color: var(--text);
  border-color: rgba(77, 171, 145, 0.3);
  background: rgba(77, 171, 145, 0.1);
}


.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  gap: 52px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 54px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 0.94;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7vw, 6.3rem);
}

.section h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
}

.lede,
.section-copy p,
.platform-card p,
.stat-card p,
.step-card p,
.footer p {
  margin: 0;
  color: rgba(240, 232, 217, 0.78);
  line-height: 1.72;
  font-size: 1.02rem;
}

.lede {
  max-width: 58ch;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--surface);
  color: var(--ink);
}

.button-primary:hover {
  background: #ece0ca;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.button-secondary:hover {
  color: var(--text);
  border-color: rgba(77, 171, 145, 0.3);
  background: rgba(77, 171, 145, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.hero-card,
.stat-card,
.step-card,
.platform-card,
.profile-panel,
.comparison-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: linear-gradient(
    180deg,
    rgba(28, 30, 35, 0.85),
    rgba(35, 31, 28, 0.82)
  );
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -18% -26% auto;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(77, 171, 145, 0.12),
    transparent 62%
  );
}

.hero-card-preview {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.hero-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-card-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 232, 217, 0.62);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip-accent {
  background: rgba(77, 171, 145, 0.14);
  color: var(--accent);
}

.chip-stone {
  background: var(--surface);
  color: var(--ink);
}

.ticker-stack {
  margin-top: 28px;
}

.ticker {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.2rem, 8vw, 6.7rem);
  font-weight: 700;
  line-height: 0.88;
  color: var(--accent);
}

.company {
  margin-top: 6px;
  color: rgba(240, 232, 217, 0.84);
  font-size: 1.15rem;
}

.meta-stones {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.stone {
  min-width: 156px;
  padding: 16px 18px 18px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
}

.stone-label {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stone-value {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
  font-weight: 800;
}

.signal-lines {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.signal-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 18px 18px 14px;
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.68rem;
  line-height: 1.02;
}

.signal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 22px;
}

.stat-card,
.step-card,
.platform-card {
  padding: 26px;
}

.stat-label,
.step-index,
.platform-name {
  display: block;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.section {
  padding-top: 62px;
  padding-bottom: 22px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 34px;
  align-items: start;
}

.steps,
.distribution-grid,
.comparison-list {
  display: grid;
  gap: 18px;
}

.step-card h3 {
  margin: 12px 0 10px;
  font-size: 1.45rem;
}

.compact {
  max-width: 50rem;
}

.record-hero {
  align-items: start;
}

.record-intro-card,
.record-note-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: linear-gradient(
    180deg,
    rgba(24, 37, 35, 0.92),
    rgba(31, 30, 28, 0.86)
  );
  box-shadow: var(--shadow);
  padding: 28px;
}

.record-fact-grid {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.record-fact {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.record-fact-label {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.record-fact strong {
  display: block;
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.record-fact p,
.record-note-card p,
.record-footnote {
  margin: 0;
  color: rgba(240, 232, 217, 0.76);
  line-height: 1.66;
}

.record-explainer {
  margin: 14px 0 0;
  max-width: 44rem;
  color: rgba(240, 232, 217, 0.78);
  line-height: 1.66;
}

.record-explainer .metric-info {
  margin-left: 8px;
  vertical-align: middle;
}

.record-context,
.record-close {
  align-items: start;
}

.record-note-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.record-context .origin-card,
.record-close .record-note-card {
  padding: 20px 22px;
}

.record-context .origin-card h3 {
  margin: 10px 0 12px;
}

.record-close .record-note-card {
  justify-content: flex-start;
}

.record-footnote {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font-size: 0.94rem;
}

.origin-section {
  padding-top: 18px;
}

.origin-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: linear-gradient(
    180deg,
    rgba(24, 37, 35, 0.92),
    rgba(31, 30, 28, 0.86)
  );
  box-shadow: var(--shadow);
  padding: 28px;
}

.origin-card h3 {
  margin: 12px 0 14px;
  font-size: 1.62rem;
}

.origin-card p + p {
  margin-top: 16px;
}

.distribution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.platform-name {
  margin-bottom: 10px;
}

.capital-section {
  padding-bottom: 34px;
}

.capital-grid {
  align-items: stretch;
}

.capital-copy {
  max-width: 42rem;
}

.capital-note {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 2px solid rgba(77, 171, 145, 0.55);
}

.profile-panel {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.profile-panel::after {
  content: '';
  position: absolute;
  inset: auto -12% -22% auto;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 171, 145, 0.1), transparent 65%);
  pointer-events: none;
}

.profile-panel-head,
.comparison-head {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-panel-head strong {
  display: block;
  font-size: 1.55rem;
}

.profile-window {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 232, 217, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
}

.comparison-list {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.comparison-row {
  position: relative;
  z-index: 1;
  padding: 20px 20px 18px;
  overflow: hidden;
}

.comparison-row:hover,
.comparison-row:focus-within,
.comparison-row.has-info-open {
  z-index: 8;
}

.comparison-row-accent {
  border-color: rgba(77, 171, 145, 0.34);
  background: linear-gradient(
    180deg,
    rgba(24, 37, 35, 0.92),
    rgba(31, 30, 28, 0.86)
  );
}

.comparison-row-muted {
  background: linear-gradient(
    180deg,
    rgba(25, 27, 31, 0.74),
    rgba(32, 29, 27, 0.78)
  );
}

.comparison-label {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.comparison-head strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.comparison-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(240, 232, 217, 0.78);
  font-size: 0.9rem;
}

.comparison-metrics strong {
  display: inline;
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.comparison-bar {
  position: relative;
  z-index: 1;
  height: 12px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.comparison-bar span {
  display: block;
  width: var(--bar-width);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(77, 171, 145, 0.58),
    rgba(225, 211, 187, 0.9)
  );
}

.profile-footnote {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: rgba(240, 232, 217, 0.68);
  line-height: 1.6;
  font-size: 0.9rem;
}

.metric-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  color: rgba(240, 232, 217, 0.68);
}

.metric-info-label {
  color: rgba(240, 232, 217, 0.58);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}

.metric-info-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(77, 171, 145, 0.42);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(77, 171, 145, 0.24),
    rgba(77, 171, 145, 0.12)
  );
  box-shadow: 0 0 0 4px rgba(77, 171, 145, 0.08);
  color: var(--accent);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-indent: -0.15em;
  padding-top: 1px;
}

.metric-info-trigger:focus-visible {
  outline: 2px solid rgba(77, 171, 145, 0.55);
  outline-offset: 3px;
}

.metric-info-point {
  display: block;
  padding-left: 14px;
  position: relative;
  --metric-dot-top: 0.9em;
}

.metric-info-point::before {
  content: '';
  position: absolute;
  top: var(--metric-dot-top);
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(77, 171, 145, 0.88);
  box-shadow: 0 0 0 4px rgba(77, 171, 145, 0.08);
}

.metric-info-point + .metric-info-point {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  --metric-dot-top: calc(10px + 0.9em);
}

.metric-info-point strong {
  display: inline-block;
  margin-bottom: 4px;
  color: #f3ecde;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.05;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .metric-info:hover .metric-info-trigger,
  .metric-info:focus-within .metric-info-trigger {
    border-color: rgba(77, 171, 145, 0.58);
    background: linear-gradient(
      180deg,
      rgba(77, 171, 145, 0.3),
      rgba(77, 171, 145, 0.14)
    );
    box-shadow: 0 0 0 5px rgba(77, 171, 145, 0.12);
    color: #eef7f2;
  }
}

.why-section {
  padding-bottom: 38px;
}

.contrast-grid,
.edge-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

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

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

.contrast-card,
.edge-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: linear-gradient(
    180deg,
    rgba(28, 30, 35, 0.85),
    rgba(35, 31, 28, 0.82)
  );
  box-shadow: var(--shadow);
  padding: 26px;
}

.contrast-card-accent {
  border-color: rgba(77, 171, 145, 0.34);
  background: linear-gradient(
    180deg,
    rgba(24, 37, 35, 0.92),
    rgba(31, 30, 28, 0.86)
  );
}

.contrast-card-muted {
  background: linear-gradient(
    180deg,
    rgba(25, 27, 31, 0.74),
    rgba(32, 29, 27, 0.78)
  );
}

.contrast-card h3 {
  margin: 12px 0 12px;
  font-size: 1.52rem;
}

.footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-top: 18px;
  padding: 30px 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(24, 27, 31, 0.86),
    rgba(34, 30, 28, 0.82)
  );
  box-shadow: var(--shadow);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(77, 171, 145, 0),
    rgba(77, 171, 145, 0.75),
    rgba(225, 211, 187, 0.18)
  );
}

.footer > div:first-child {
  max-width: 34rem;
}

.footer strong {
  display: block;
  margin-bottom: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer p {
  margin: 0;
  color: rgba(240, 232, 217, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-links a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 232, 217, 0.82);
  text-decoration: none;
}

.policy-page {
  max-width: 860px;
  padding-top: 70px;
  padding-bottom: 60px;
}

.policy-page h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.96;
}

.policy-page .lede {
  margin-top: 18px;
  margin-bottom: 38px;
}

.policy-section {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-family: 'Manrope', sans-serif;
}

.policy-section p,
.policy-section li {
  color: rgba(240, 232, 217, 0.78);
  line-height: 1.72;
}

.policy-section ul {
  margin: 0;
  padding-left: 20px;
}

.policy-section ul li + li {
  margin-top: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(77, 171, 145, 0.24);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(77, 171, 145, 0.14),
    rgba(255, 255, 255, 0.03)
  );
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.contact-link:hover {
  border-color: rgba(77, 171, 145, 0.42);
  color: #f6efe2;
  background: linear-gradient(
    180deg,
    rgba(77, 171, 145, 0.22),
    rgba(255, 255, 255, 0.05)
  );
}

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .stats-row,
  .distribution-grid,
  .contrast-grid,
  .edge-grid,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    gap: 34px;
  }

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

  .hero-card {
    width: 100%;
  }

  .comparison-metrics {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 22px));
    margin: 11px auto;
    border-radius: 30px;
  }

  .topbar,
  .footer,
  .hero,
  .stats-row,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 42px;
  }

  .signal-line {
    font-size: 1.34rem;
  }

  .profile-panel,
  .comparison-row {
    padding: 22px 18px;
  }

  .footer {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .comparison-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .metric-info {
    margin-top: 2px;
  }
}

@media (max-width: 820px) {
  .quick-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 17px;
    right: 17px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: auto;
    max-width: none;
    padding: 10px;
    justify-content: stretch;
    align-items: stretch;
    gap: 8px;
    overflow-x: visible;
    overflow-y: visible;
    border-radius: 24px;
    transform: translateY(16px) !important;
  }

  body.has-quick-nav .quick-nav {
    transform: translateY(0) !important;
  }

  .quick-nav a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
    width: 100%;
  }

  .quick-nav-toggle {
    right: 17px;
    left: 17px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: auto;
  }

  body.has-quick-nav:not(.quick-nav-collapsed) .quick-nav-toggle {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 144px);
  }

}

.metric-info-card {
  display: none;
}

.metric-info-popover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4000;
  width: min(360px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(24, 27, 31, 0.985),
    rgba(34, 31, 28, 0.975)
  );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  color: rgba(240, 232, 217, 0.9);
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  overflow-wrap: break-word;
}

.metric-info-popover.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: none), (pointer: coarse) {
  .metric-info-popover {
    width: min(320px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }
}

@media (max-width: 640px) {
  .metric-info-popover {
    width: min(320px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
}

.member-main .hero,
.access-hero {
  align-items: start;
}

.access-preview-card,
.access-cta-card {
  height: 100%;
}

.access-stats-row {
  padding-top: 0;
}

.access-contrast-section,
.access-cta-section {
  padding-bottom: 30px;
}

.access-cta-card .hero-actions,
.member-auth-card .button,
.member-inline-form .button {
  margin-top: 0;
}

.account-summary-card {
  height: 100%;
}

.account-grid {
  align-items: stretch;
}

.account-edge-grid {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.account-help-card .hero-actions {
  margin-top: 18px;
}

.account-help-card {
  height: auto;
  align-self: start;
}

@media (max-width: 980px) {
  .account-edge-grid {
    grid-template-columns: 1fr;
  }
}

.subscribe-hero,
.subscribe-cta-card,
.subscribe-plan-card {
  align-items: start;
}

.subscribe-plan-title {
  display: block;
  margin: 10px 0 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.95rem;
  line-height: 1.02;
  color: #f5ede0;
}

.subscribe-stats-row {
  padding-top: 0;
}
