:root {
  --bg: #070806;
  --ink: #f5f8ff;
  --muted: #c1aa72;
  --blue: #f7b731;
  --blue-soft: rgba(247, 183, 49, 0.2);
  --green: #2bff91;
  --gold: #f7931a;
  --panel: rgba(27, 15, 5, 0.86);
  --panel-strong: rgba(10, 7, 4, 0.96);
  --line: rgba(247, 183, 49, 0.66);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

.site {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(247, 183, 49, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 74% 8%, rgba(247, 147, 26, 0.34), transparent 28%),
    radial-gradient(circle at 18% 42%, rgba(43, 255, 145, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 7, 4, 0.97), rgba(2, 2, 2, 0.98)),
    url("./vault_bitcoin_background.png") center top / cover fixed no-repeat;
  background-size: 56px 56px, auto, auto, auto, cover;
}

.hero-section {
  min-height: 100vh;
  padding: 28px clamp(24px, 4vw, 72px) 56px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(70, 105, 166, 0.42);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(247, 147, 26, 0.78));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-links a {
  padding: 9px 12px;
  color: #ffeec8;
  border: 1px solid rgba(247, 183, 49, 0.34);
  border-radius: 999px;
  background: rgba(10, 7, 4, 0.46);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-status {
  min-width: 202px;
  padding: 12px 16px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 28px rgba(247, 147, 26, 0.08), 0 0 22px rgba(247, 147, 26, 0.12);
}

.nav-status span,
.nav-status strong {
  display: block;
}

.nav-status span,
.eyebrow,
.stats-strip span,
.panel-head span,
.footer div {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-status strong {
  margin-top: 2px;
  color: var(--green);
  font-family: "Anton", "Inter", sans-serif;
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(43, 255, 145, 0.62);
}

.hero-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 34vw);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

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

h1 {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: "Anton", "Inter", sans-serif;
  font-size: clamp(72px, 9vw, 148px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(247, 147, 26, 0.56), 7px 7px 0 rgba(0, 0, 0, 0.72);
}

.hero-copy p {
  max-width: 780px;
  margin: 28px 0 0;
  color: #dce8ff;
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 900;
  line-height: 1.18;
}

.hero-copy strong,
.section-copy strong,
.summary-card strong {
  color: #fff6df;
}

.hero-note {
  max-width: 680px;
  margin-top: 18px;
  padding: 12px 14px;
  color: #ffeec8;
  border: 1px solid rgba(247, 183, 49, 0.42);
  border-radius: 8px;
  background: rgba(7, 4, 1, 0.58);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ca-strip {
  max-width: 820px;
  margin-top: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #ffeec8;
  border: 1px solid rgba(247, 183, 49, 0.5);
  border-radius: 8px;
  background: rgba(7, 4, 1, 0.72);
}

.ca-strip span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ca-strip strong {
  overflow: hidden;
  font-family: "Inter", sans-serif;
  font-size: clamp(13px, 1.25vw, 18px);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.primary-action,
.secondary-action {
  min-width: 190px;
  padding: 15px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-action {
  color: #04101c;
  background: linear-gradient(135deg, #38ff9a, #ffd36b);
  box-shadow: 0 0 24px rgba(247, 183, 49, 0.26);
}

.secondary-action {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(9, 14, 29, 0.78);
}

.vault-card,
.latest-panel,
.history-panel,
.chart-section,
.stats-strip article,
.copy-section article,
.receipt-card,
.mechanism-section article,
.manifesto-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 183, 49, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, rgba(39, 22, 7, 0.92), rgba(7, 5, 3, 0.9));
  background-size: 42px 42px, auto;
  box-shadow: inset 0 0 42px rgba(247, 147, 26, 0.08), 0 0 24px rgba(0, 0, 0, 0.38);
}

.vault-card {
  min-height: 560px;
  padding: 34px;
  display: grid;
  place-items: center;
  gap: 28px;
}

.vault-door {
  position: relative;
  width: min(360px, 27vw);
  height: min(360px, 27vw);
  min-width: 260px;
  min-height: 260px;
  border: 14px solid #1c2e50;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 157, 255, 0.18) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #263653 0 30%, #111827 31% 52%, #050814 53% 100%);
  box-shadow: 0 0 0 2px rgba(247, 183, 49, 0.76), inset 0 0 44px rgba(0, 0, 0, 0.84), 0 0 44px rgba(247, 147, 26, 0.24);
}

.vault-door::before,
.vault-door::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 10px;
  margin-left: -36%;
  margin-top: -5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.vault-door::after {
  transform: rotate(90deg);
}

.vault-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32%;
  height: 32%;
  transform: translate(-50%, -50%);
  border: 9px solid var(--gold);
  border-radius: 50%;
  background: #080b14;
  box-shadow: 0 0 26px rgba(247, 147, 26, 0.56);
}

.vault-wheel::before,
.vault-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 9px;
  margin-left: -75%;
  margin-top: -4.5px;
  background: var(--gold);
}

.vault-wheel::after {
  transform: rotate(60deg);
}

.bolt {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7f6ff;
  box-shadow: 0 0 16px rgba(247, 183, 49, 0.72);
}

.landing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 20px;
  padding: 0 clamp(24px, 4vw, 72px) 28px;
}

.section-copy {
  min-height: 330px;
  padding: 34px;
  border: 1px solid rgba(247, 183, 49, 0.42);
  border-radius: 8px;
  background: rgba(9, 6, 3, 0.7);
}

.section-copy h2,
.manifesto-section h2 {
  margin: 12px 0 0;
  color: #fff6df;
  font-family: "Anton", "Inter", sans-serif;
  font-size: clamp(56px, 6vw, 104px);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(247, 147, 26, 0.38);
}

.section-copy p,
.manifesto-section p {
  max-width: 900px;
  margin: 22px 0 0;
  color: #ffeec8;
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 900;
  line-height: 1.28;
}

.receipt-card {
  padding: 24px;
}

.summary-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.summary-card p {
  margin: 20px 0 0;
  color: #ffeec8;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(247, 183, 49, 0.44);
}

.receipt-head span,
.mechanism-section span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-head strong {
  color: var(--green);
  font-family: "Anton", "Inter", sans-serif;
  font-size: 44px;
  line-height: 1;
}

.receipt-card dl {
  margin: 0;
  padding: 18px 0;
  display: grid;
  gap: 12px;
}

.receipt-card dl div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(247, 183, 49, 0.22);
}

.receipt-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-card dd {
  margin: 0;
  overflow: hidden;
  color: #fff6df;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metadata-link {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  padding: 12px 14px;
  color: #06110a;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd36b, #38ff9a);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.mechanism-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(24px, 4vw, 72px) 28px;
}

.mechanism-section article {
  min-height: 220px;
  padding: 24px;
}

.mechanism-section h3 {
  margin: 26px 0 0;
  color: #fff6df;
  font-family: "Anton", "Inter", sans-serif;
  font-size: 44px;
  line-height: 0.96;
  text-transform: uppercase;
}

.mechanism-section p {
  margin: 16px 0 0;
  color: #ffeec8;
  font-weight: 900;
  line-height: 1.42;
}

.bolt-a { left: 50%; top: 22px; transform: translateX(-50%); }
.bolt-b { right: 22px; top: 50%; transform: translateY(-50%); }
.bolt-c { left: 50%; bottom: 22px; transform: translateX(-50%); }
.bolt-d { left: 22px; top: 50%; transform: translateY(-50%); }

.vault-readout {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(70, 105, 166, 0.64);
  border-radius: 8px;
  background: rgba(4, 8, 18, 0.7);
}

.vault-readout span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.vault-readout strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-family: "Anton", "Inter", sans-serif;
  font-size: clamp(44px, 4.4vw, 72px);
  line-height: 0.96;
  text-shadow: 0 0 22px rgba(43, 255, 145, 0.52);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(24px, 4vw, 72px) 28px;
}

.copy-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(24px, 4vw, 72px) 28px;
}

.copy-section article {
  min-height: 280px;
  padding: 28px;
}

.copy-section span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.copy-section h3 {
  margin: 18px 0 0;
  color: #fff6df;
  font-family: "Anton", "Inter", sans-serif;
  font-size: clamp(42px, 4vw, 74px);
  line-height: 0.96;
  text-transform: uppercase;
}

.copy-section p {
  max-width: 820px;
  margin: 20px 0 0;
  color: #ffeec8;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 900;
  line-height: 1.4;
}

.stats-strip article {
  min-height: 128px;
  padding: 22px;
}

.stats-strip strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: var(--ink);
  font-family: "Anton", "Inter", sans-serif;
  font-size: clamp(36px, 3.6vw, 60px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(0, 157, 255, 0.42);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(380px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  padding: 0 clamp(24px, 4vw, 72px) 28px;
}

.latest-panel,
.history-panel {
  min-height: 360px;
  overflow: hidden;
}

.panel-head {
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(70, 105, 166, 0.56);
}

.panel-head strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.latest-body {
  height: calc(100% - 58px);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.latest-body > strong {
  color: var(--green);
  font-family: "Anton", "Inter", sans-serif;
  font-size: clamp(58px, 6vw, 104px);
  line-height: 0.92;
  text-shadow: 0 0 22px rgba(43, 255, 145, 0.58);
}

.latest-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(70, 105, 166, 0.74);
  border-radius: 8px;
  background: rgba(6, 9, 20, 0.7);
}

.latest-line span {
  color: var(--muted);
  text-transform: uppercase;
}

.history-list {
  min-height: 0;
  max-height: 540px;
  padding: 18px;
  overflow: hidden;
  display: grid;
  gap: 12px;
}

.history-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 15px;
  border: 1px solid rgba(70, 105, 166, 0.74);
  border-radius: 8px;
  background: rgba(7, 11, 24, 0.72);
}

.history-row span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.history-row strong {
  overflow: hidden;
  font-size: 25px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row b {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.chart-section {
  margin: 0 clamp(24px, 4vw, 72px) 48px;
  min-height: 390px;
  overflow: hidden;
}

.manifesto-section {
  margin: 0 clamp(24px, 4vw, 72px) 48px;
  min-height: 280px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(300px, 0.54fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.chart-wrap {
  height: 330px;
  padding: 18px;
}

#history-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.empty--small {
  min-height: 220px;
  border: 1px dashed rgba(70, 105, 166, 0.7);
  border-radius: 8px;
  font-size: 18px;
}

.footer {
  min-height: 58px;
  padding: 0 clamp(24px, 4vw, 72px) 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(70, 105, 166, 0.42);
}

@media (max-width: 1100px) {
  .site {
    background-attachment: scroll;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-grid,
  .split-section,
  .landing-section,
  .manifesto-section {
    grid-template-columns: 1fr;
  }

  .mechanism-section {
    grid-template-columns: 1fr;
  }

  .copy-section {
    grid-template-columns: 1fr;
  }

  .vault-card {
    min-height: auto;
  }

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

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

  .nav {
    height: auto;
    padding-bottom: 18px;
  }

  .nav-status {
    width: 100%;
    text-align: left;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}
