:root {
  --bg: #060606;
  --bg-soft: #0c0c0c;
  --panel: rgba(19, 19, 19, 0.82);
  --panel-solid: #111;
  --gold: #d8ae54;
  --gold-light: #f4d992;
  --gold-dark: #8f6825;
  --text: #f6f0e4;
  --muted: #aaa49a;
  --border: rgba(216, 174, 84, 0.22);
  --danger: #e3a55f;
  --shadow: 0 28px 80px rgba(0,0,0,.45);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 5%, rgba(216,174,84,.08), transparent 28%),
    linear-gradient(180deg, #050505, #090909 48%, #050505);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
code { color: var(--gold-light); overflow-wrap: anywhere; }
strong { color: #fff; }

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: .11;
  z-index: -1;
}
.ambient-one { background: var(--gold); right: -170px; top: 20%; }
.ambient-two { background: #7c571b; left: -180px; bottom: 5%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,5,5,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%;
  color: #080808;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  font-family: Cinzel, serif;
  font-weight: 700;
  box-shadow: 0 0 28px rgba(216,174,84,.2);
}
.brand strong {
  display: block;
  color: var(--gold-light);
  font-family: Cinzel, serif;
  letter-spacing: .11em;
}
.brand small { display: block; color: var(--muted); font-size: .69rem; letter-spacing: .08em; }
.desktop-nav { display: flex; gap: 26px; }
.desktop-nav a {
  color: #d3cec5;
  font-size: .88rem;
  transition: .2s ease;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-button {
  display: none;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 11px;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 auto;
  z-index: 99;
  padding: 18px 24px;
  background: #090909;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}
.section.compact { padding: 25px 0 70px; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  align-items: center;
  gap: 56px;
}
.eyebrow {
  color: var(--gold);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.2; }
h1 {
  margin-bottom: 26px;
  font-family: Cinzel, serif;
  font-size: clamp(3rem, 7vw, 6.7rem);
  letter-spacing: -.045em;
}
h1 span {
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  color: transparent;
}
h2 {
  font-family: Cinzel, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
h3 { font-size: 1.15rem; }
.hero-text { max-width: 760px; color: #c3bdb4; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #080808;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}
.btn-secondary, .btn-ghost {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  color: var(--gold-light);
}
.btn-ghost { min-height: 38px; padding: 0 16px; }

.glass {
  background: linear-gradient(145deg, rgba(24,24,24,.9), rgba(10,10,10,.86));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero-panel { padding: 30px; }
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.status-row:last-child { border-bottom: 0; }
.status-row span { color: var(--muted); }
.status-row strong { text-align: right; color: var(--gold-light); }

.notice {
  max-width: 760px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(216,174,84,.045);
}
.notice p { margin: 0; color: #b9b1a5; font-size: .86rem; }
.notice-icon {
  flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold); color: #080808; font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.metrics article {
  padding: 20px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.metrics span { display: block; color: var(--muted); font-size: .75rem; }
.metrics strong { color: var(--gold-light); font-size: 1.12rem; }

.section-heading { max-width: 820px; margin-bottom: 42px; }
.section-heading p:last-child { color: var(--muted); }

.allocation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.allocation-card {
  position: relative;
  padding: 27px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}
.allocation-card::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  right: -70px; bottom: -70px;
  border-radius: 50%;
  background: rgba(216,174,84,.055);
}
.allocation-card p { color: var(--muted); min-height: 52px; }
.allocation-card > strong { color: var(--gold-light); }
.ring {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--value) * 1%), rgba(255,255,255,.07) 0);
  position: relative;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #111;
}
.ring span { z-index: 1; color: var(--gold-light); font-weight: 700; font-size: .86rem; }
.callout {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(216,174,84,.05);
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tab {
  padding: 11px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: #bbb5ab;
  cursor: pointer;
}
.tab.active {
  color: #080808;
  background: var(--gold);
  border-color: var(--gold);
}
.tab-panels { padding: clamp(24px, 4vw, 42px); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: .3; transform: translateY(5px); } }
.rule-list { padding-left: 20px; color: #c6c0b7; }
.rule-list li { margin: 13px 0; }
.rule-list li::marker { color: var(--gold); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.07); }
th { color: var(--gold-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
td { color: #c4beb4; }
.warning {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(227,165,95,.3);
  border-radius: 14px;
  background: rgba(227,165,95,.07);
  color: #d4c8b9;
}

.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.timeline article {
  display: flex; gap: 18px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.timeline article > span {
  flex: 0 0 46px;
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-family: Cinzel, serif;
}
.timeline p { margin-bottom: 0; color: var(--muted); }

.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.security-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.security-card p { color: var(--muted); }
.security-icon {
  width: 35px; height: 35px; display: grid; place-items: center;
  margin-bottom: 17px; border-radius: 50%;
  background: rgba(216,174,84,.14); color: var(--gold-light);
}
.security-card.caution { border-color: rgba(227,165,95,.24); }
.disclosure { margin-top: 18px; padding: 30px; }
.disclosure p { margin-bottom: 0; color: #beb7ad; }

.contract-panel { padding: 12px 30px; }
.contract-field {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.contract-field:last-child { border-bottom: 0; }
.contract-field > span, .contract-field div > span {
  display: block; color: var(--muted); font-size: .79rem; margin-bottom: 5px;
}
.contract-field a { color: var(--gold-light); }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.copy-button {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
}

.accordion { display: grid; gap: 10px; }
.accordion article {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
.accordion-button {
  width: 100%;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 19px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.accordion-button span { color: var(--gold-light); font-size: 1.3rem; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-content p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

footer {
  padding: 45px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  background: #050505;
}
footer strong { color: var(--gold-light); font-family: Cinzel, serif; letter-spacing: .1em; }
footer p { color: var(--muted); margin: 4px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: #c4beb3; }
.copyright { grid-column: 1 / -1; font-size: .78rem; }

.back-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #111;
  color: var(--gold-light);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.toast {
  position: fixed;
  left: 50%; bottom: 25px;
  transform: translate(-50%, 20px);
  padding: 10px 17px;
  border-radius: 999px;
  color: #080808;
  background: var(--gold-light);
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-panel { max-width: 650px; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .allocation-grid, .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .section { width: min(100% - 28px, 1180px); padding: 75px 0; }
  .topbar { padding: 0 15px; }
  .btn-ghost { display: none; }
  h1 { font-size: clamp(2.6rem, 14vw, 4.5rem); }
  .hero { gap: 30px; }
  .metrics, .allocation-grid, .security-grid, .timeline { grid-template-columns: 1fr; }
  .metrics { gap: 8px; }
  .callout, .copy-row { align-items: flex-start; flex-direction: column; }
  .status-row { font-size: .88rem; }
  footer { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}
