:root {
  --bg: #111111;
  --paper: #1b1918;
  --ink: #fffaf0;
  --muted: #b7ada4;
  --line: #3a3330;
  --blue: #21c7bd;
  --blue-soft: #8de8df;
  --green: #946300;
  --green-bg: #fff0c6;
  --gold: #ffc75a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --app-bg: #151312;
  --field: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  align-items: center;
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand,
nav {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  font-weight: 760;
}

.brand-mark {
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
  height: 38px;
  object-fit: cover;
  width: 38px;
}

nav {
  color: var(--muted);
  font-size: 14px;
  gap: 24px;
}

.hero {
  display: grid;
  gap: 6vw;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.72fr);
  min-height: calc(100vh - 72px);
  padding: 8vh 5vw 10vh;
}

.hero-copy {
  align-self: center;
  max-width: 820px;
}

.eyebrow,
.mini-label {
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 980px;
}

h2 {
  font-size: 36px;
  line-height: 1.05;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
  max-width: 680px;
}

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

.button {
  border: 1px solid var(--ink);
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 720;
  justify-content: center;
  min-height: 46px;
  min-width: 148px;
  padding: 12px 18px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #111111;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--blue);
}

.receipt-card,
.feature-grid article,
.pricing-grid article,
.artifact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.receipt-card {
  align-self: center;
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand-art {
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin: 0 auto 24px;
  max-width: 240px;
  object-fit: cover;
  width: min(58%, 240px);
}

.receipt-head,
.receipt-flow,
.split,
.demo-panel,
.footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.receipt-head h2 {
  font-size: 24px;
  margin: 0;
}

.status-pill {
  background: var(--green-bg);
  border-radius: 999px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  padding: 8px 12px;
}

.receipt-flow {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 28px 0;
  padding: 24px 0;
}

.receipt-flow strong {
  display: block;
  font-size: 22px;
}

.flow-line {
  background: var(--line);
  height: 1px;
  min-width: 72px;
}

.receipt-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

dd {
  font-weight: 760;
  margin: 0;
}

.receipt-checks {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.receipt-checks span,
.checklist li {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
}

.receipt-checks span::before,
.checklist li::before {
  background: var(--blue);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 7px;
  width: 7px;
}

.section {
  border-top: 1px solid var(--line);
  padding: 84px 5vw;
}

.section-title {
  margin-bottom: 28px;
  max-width: 720px;
}

.feature-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article,
.pricing-grid article {
  padding: 24px;
}

.feature-grid p,
.pricing-grid p,
.split p,
.demo-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.split {
  align-items: flex-start;
}

.split > div,
.checklist {
  flex: 1;
}

.checklist {
  background: #1c1917;
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 24px;
}

.checklist li + li {
  margin-top: 14px;
}

.pricing-grid strong {
  display: block;
  font-size: 26px;
  margin-bottom: 12px;
}

.demo-section {
  background: radial-gradient(circle at top left, rgba(33, 199, 189, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 199, 90, 0.14), transparent 32%),
    var(--app-bg);
}

.demo-panel {
  align-items: flex-end;
  margin-bottom: 28px;
}

.wallet-panel {
  align-items: center;
  background: #1c1917;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 180px 220px minmax(170px, auto);
  margin-bottom: 16px;
  padding: 18px;
}

.wallet-panel .mini-label,
.wallet-panel label {
  color: var(--blue-soft);
  display: block;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.wallet-panel strong {
  display: block;
  overflow-wrap: anywhere;
}

.wallet-panel select {
  appearance: none;
  background: var(--field);
  border: 1px solid #ded6cc;
  border-radius: 7px;
  color: #111412;
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.wallet-button {
  align-self: end;
  width: 100%;
}

.tx-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 18px;
}

.history-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 18px;
}

.history-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.history-head h3 {
  margin: 0;
}

.history-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.history-tab {
  background: #211e1c;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  padding: 8px 12px;
}

.history-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111111;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-item {
  align-items: center;
  background: #151312;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.history-item:hover {
  border-color: var(--blue);
}

.history-item strong,
.history-item span {
  display: block;
}

.history-item strong {
  margin-bottom: 5px;
}

.history-meta,
.history-value {
  color: var(--muted);
  font-size: 13px;
}

.history-value {
  font-weight: 760;
  text-align: right;
}

.history-receipt-button {
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 7px;
  color: #111111;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 760;
  justify-content: center;
  min-height: 38px;
  min-width: 82px;
  padding: 8px 12px;
}

.load-more {
  margin-top: 14px;
}

.tx-form label {
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 10px;
}

.tx-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tx-row input {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #111412;
  font: inherit;
  min-height: 46px;
  min-width: 0;
  padding: 10px 12px;
}

.form-status {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}

.form-status[data-tone="success"] {
  color: var(--green);
}

.form-status[data-tone="error"] {
  color: #9f1d1d;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 28px 5vw;
}

.footer a {
  color: var(--ink);
  font-weight: 720;
}

@media (max-width: 900px) {
  .topbar,
  .receipt-head,
  .receipt-flow,
  .split,
  .demo-panel,
  .footer,
  .history-head {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    display: none;
  }

  .hero,
  .feature-grid,
  .pricing-grid,
  .tx-row,
  .wallet-panel,
  .history-item {
    grid-template-columns: 1fr;
  }

  .history-value {
    text-align: left;
  }

  .hero {
    padding-top: 48px;
  }

  .receipt-card {
    width: 100%;
  }

  .flow-line {
    width: 100%;
  }
}
