:root {
  --bg: #fbfaf6;
  --sand: #f5ecdc;
  --sand-2: #e8d6b4;
  --sand-3: #b8925a;
  --teal-900: #0f3b3c;
  --teal: #1b6b66;
  --teal-300: #5fb3a8;
  --teal-50: #e6f2ef;
  --text: #2b3a3a;
  --muted: #55625f;
  --line: #e3dccd;
  --alert: #9b3b2a;
  --alert-bg: #fbf1ec;
  --white: #fff;
  --radius: 16px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 1rem; color: var(--teal-900); line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -.015em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1.1rem; }
strong { color: var(--teal-900); font-weight: 800; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.btn {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 24px; border: 2px solid var(--teal); border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: background .2s, color .2s;
}
.btn-primary { color: var(--white); background: var(--teal); }
.btn-primary:hover { color: var(--white); background: var(--teal-900); border-color: var(--teal-900); }
.btn-ghost { color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal-50); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-size: 1.18rem; font-weight: 800; color: var(--teal-900); letter-spacing: -.01em; }
.nav-list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 600; color: var(--text); text-decoration: none;
}
.nav-list a:hover { color: var(--teal-900); background: var(--teal-50); }
.nav-list a.is-active { color: var(--white); background: var(--teal); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 12px; background: var(--teal-900); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 20px; height: 2px;
  background: var(--sand); transition: transform .3s, background .3s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.hero { padding: clamp(48px, 7vw, 96px) 0; background: linear-gradient(180deg, var(--bg) 0%, var(--sand) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 800; color: var(--teal); background: var(--teal-50);
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.025em; }
.lead { max-width: 600px; font-size: 1.06rem; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; }

.step { padding: clamp(56px, 7vw, 92px) 0; }
.step-alt { background: var(--sand); }
.step-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: start; }
.step-grid > * { min-width: 0; }
.step-head { position: sticky; top: 100px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px;
  font-size: 1.1rem; font-weight: 800; color: var(--white); background: var(--teal);
}
.step-body { max-width: 780px; }

.note { padding: 18px 22px; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; background: var(--teal-50); }
.note-alert { border-left-color: var(--alert); background: var(--alert-bg); }
.step-body > :last-child { margin-bottom: 0; }

.table-wrap {
  margin: 0 0 1.4rem; overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white);
}
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
th, td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: .85rem; font-weight: 800; color: var(--teal-900); background: var(--teal-50); }
thead td { background: var(--teal-50); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 800; color: var(--teal-900); }
.slabs { min-width: 0; }
.slabs td:last-child, .slabs th:last-child { text-align: right; font-weight: 800; color: var(--teal-900); }
.slabs tbody tr:nth-child(odd) { background: #fdfbf6; }

.step-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 1.4rem; padding: 0; list-style: none; counter-reset: s; }
.step-cards > * { min-width: 0; }
.step-cards li {
  position: relative; padding: 18px 18px 18px 66px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); line-height: 1.55; counter-increment: s;
}
.step-cards li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 16px; top: 16px;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  font-size: .85rem; font-weight: 800; color: var(--teal-900); background: var(--sand-2);
}
.step-cards-wide { grid-template-columns: 1fr; }

.asset-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.asset-cards > * { min-width: 0; }
.asset-cards li {
  padding: 20px; border-top: 5px solid var(--teal); border-radius: var(--radius);
  background: var(--white); line-height: 1.55; box-shadow: 0 1px 0 var(--line);
}
.asset-cards li.asset-debt { border-top-color: var(--teal-300); }
.asset-cards li.asset-gold { border-top-color: var(--sand-3); }
.asset-cards strong { display: block; font-size: 1.15rem; }

.flag-list { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.flag-list li {
  position: relative; margin-bottom: 10px; padding: 14px 18px 14px 56px;
  border-radius: 12px; background: var(--white); line-height: 1.55;
}
.flag-list li::before {
  content: "!"; position: absolute; left: 16px; top: 13px;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-weight: 800; color: var(--white); background: var(--alert);
}

.faq-section { padding: clamp(56px, 7vw, 92px) 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; }
.faq-wrap > * { min-width: 0; }
.faq { max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 56px 20px 0; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; font-size: 1.3rem; font-weight: 600; color: var(--teal); background: var(--teal-50);
}
.faq details[open] summary::after { content: "−"; color: var(--white); background: var(--teal); }
.faq summary h3 { display: inline; margin: 0; }
.faq details p { margin: 0; padding: 0 56px 22px 0; color: var(--text); }

.about-guide { padding: 0 0 clamp(56px, 7vw, 92px); }
.about-box {
  display: flex; gap: 20px; padding: 30px 32px;
  border: 2px dashed var(--sand-2); border-radius: 22px; background: var(--sand);
}
.about-box > div { min-width: 0; }
.about-icon { flex: none; margin-top: 4px; color: var(--teal); }
.about-box h2 { font-size: 1.35rem; }
.about-box p { margin: 0; }

.site-footer { color: var(--sand); background: var(--teal-900); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 34px; padding-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; color: var(--white); }
.footer-inner p { margin: 0; }
.footer-copy { font-size: .92rem; }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  color: var(--white); background: var(--teal);
  box-shadow: 0 8px 20px rgba(15, 59, 60, .25);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 991.98px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    padding: 10px 28px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { padding: 12px 16px; }
  .step-grid, .faq-wrap { grid-template-columns: 1fr; gap: 20px; }
  .step-head { position: static; display: flex; align-items: center; gap: 16px; }
  .step-head h2 { margin: 0; }
  .step-no { flex: none; margin: 0; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art svg { max-width: 360px; margin: 0 auto; }
  .step-cards, .asset-cards { grid-template-columns: 1fr; }
  .step-no { width: 44px; height: 44px; font-size: .95rem; }
  th, td { padding: 11px 14px; }
  .faq details p { padding-right: 0; }
  .about-box { flex-direction: column; gap: 12px; padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.release-not-found main { display: block; width: 100%; max-width: 640px; min-height: 0; margin: 10vh auto; padding: 32px; box-sizing: border-box; }
.release-not-found h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.2; letter-spacing: normal; }
