:root {
  color-scheme: light;
  font-family:
    Inter, "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fbf7ef;
  color: #2b221b;
  font-size: 16px;
  --paper: #fbf7ef;
  --paper-strong: #fffaf2;
  --paper-soft: #efe4d3;
  --ink: #2b221b;
  --ink-soft: #47372c;
  --muted: #74685e;
  --line: rgba(66, 48, 36, 0.16);
  --clay: #c86f51;
  --clay-dark: #95442f;
  --clay-soft: #eed0c1;
  --moss: #5f6a55;
  --gold: #9b7743;
  --shadow: rgba(48, 36, 27, 0.085);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(43, 34, 27, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 34, 27, 0.03) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(151, 110, 70, 0.025) 0 1px, transparent 1px 12px),
    var(--paper);
  background-size: 48px 48px;
  color: var(--ink);
}

a {
  color: inherit;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero,
.card,
.flow-item,
.bullet-card,
.table-shell,
.faq details,
.footer {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.97), rgba(247, 239, 226, 0.93)),
    var(--paper-strong);
  box-shadow: 0 18px 50px var(--shadow);
  border-radius: 8px;
}

.hero {
  padding: 24px;
}

.hero-top,
.hero-grid,
.hero-actions,
.section-head,
.card-grid,
.flow,
.bullet-grid,
.footer,
.wallet-card-head,
.button-row {
  display: flex;
}

.hero-top,
.section-head,
.footer {
  align-items: center;
  justify-content: space-between;
}

.hero-note,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(43, 34, 27, 0.08);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.pill.active {
  background: rgba(95, 106, 85, 0.12);
  color: var(--moss);
}

.hero-grid {
  margin-top: 24px;
  gap: 18px;
  align-items: stretch;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 24px;
  font-weight: 860;
}

.eyebrow,
.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(200, 111, 81, 0.1);
  color: var(--clay-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  margin-top: 6px;
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.12;
  max-width: 700px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 20px;
}

.hero-copy p {
  margin-top: 16px;
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.hero-copy,
.hero-panel {
  flex: 1;
}

.hero-panel {
  min-width: 320px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(96, 70, 48, 0.2);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(239, 228, 211, 0.85));
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(96, 70, 48, 0.12);
}

.panel-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel-row span {
  color: var(--muted);
}

.panel-row strong {
  text-align: right;
}

.section {
  margin-top: 18px;
}

.wallet-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

.wallet-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.97), rgba(247, 239, 226, 0.93)),
    var(--paper-strong);
  box-shadow: 0 18px 50px var(--shadow);
  border-radius: 8px;
  padding: 22px;
}

.wallet-card-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wallet-card-head p {
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.wallet-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.invite-shell {
  display: grid;
  gap: 10px;
}

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

.invite-input {
  margin: 0;
}

@media (max-width: 720px) {
  .invite-row {
    grid-template-columns: 1fr;
  }
}

.wallet-stat {
  border: 1px solid rgba(96, 70, 48, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.75);
  padding: 16px;
}

.wallet-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wallet-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.status-line {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(96, 70, 48, 0.14);
  background: rgba(239, 228, 211, 0.6);
  color: var(--ink-soft);
  line-height: 1.7;
}

.stake-label {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stake-input {
  width: 100%;
  margin-top: 10px;
  padding: 18px 16px;
  border-radius: 8px;
  border: 1px solid rgba(96, 70, 48, 0.18);
  background: rgba(255, 250, 242, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 700;
}

.button-row {
  margin-top: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head {
  margin-bottom: 14px;
  gap: 12px;
}

.section-head .eyebrow {
  margin-right: 10px;
}

.section-head h3 {
  margin-top: 6px;
}

.card-grid {
  gap: 14px;
  flex-wrap: wrap;
}

.card-grid.four .card {
  flex: 1 1 calc(25% - 11px);
}

.card {
  min-width: 230px;
  padding: 22px;
}

.card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.card p {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.card.accent {
  background:
    linear-gradient(180deg, rgba(200, 111, 81, 0.16), rgba(255, 250, 242, 0.95)),
    var(--paper-strong);
}

.flow {
  gap: 14px;
  flex-wrap: wrap;
}

.flow-item {
  flex: 1 1 calc(25% - 11px);
  min-width: 230px;
  padding: 22px;
}

.flow-item span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: rgba(200, 111, 81, 0.12);
  color: var(--clay-dark);
  font-weight: 780;
}

.flow-item h4 {
  margin-top: 14px;
}

.flow-item p {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.72;
}

.table-shell {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(66, 48, 36, 0.1);
}

th {
  background: rgba(200, 111, 81, 0.08);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.highlight-row {
  background: rgba(155, 119, 67, 0.08);
}

.bullet-grid {
  gap: 14px;
  flex-wrap: wrap;
}

.bullet-card {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 240px;
  padding: 22px;
}

.bullet-card p {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.72;
}

.faq details {
  padding: 16px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 760;
}

.faq p {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.72;
}

.hero-actions {
  gap: 10px;
  margin-top: 22px;
}

.button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 740;
  text-decoration: none;
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    background 140ms ease;
}

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

.button.primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 8px 18px rgba(149, 68, 47, 0.18);
}

.button.primary:hover {
  background: var(--clay-dark);
}

.button.secondary,
.ghost-link {
  background: var(--paper-strong);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover,
.ghost-link:hover {
  background: var(--paper-soft);
}

.footer {
  margin-top: 18px;
  padding: 20px 22px;
}

.footer p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .hero-top,
  .section-head,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-shell {
    grid-template-columns: 1fr;
  }

  .card-grid.four .card,
  .flow-item,
  .bullet-card {
    flex-basis: calc(50% - 7px);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 100%);
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 31px;
  }

  h3 {
    font-size: 24px;
  }

  .hero,
  .card,
  .flow-item,
  .bullet-card,
  .faq details,
  .footer {
    border-radius: 6px;
  }

  .card-grid.four .card,
  .flow-item,
  .bullet-card {
    flex-basis: 100%;
  }

  .wallet-grid,
  .wallet-grid.compact {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  th,
  td {
    padding: 12px 14px;
    font-size: 14px;
  }
}
