:root {
  color-scheme: light;
  --paper: #f7f7f3;
  --ink: #141414;
  --muted: #60666f;
  --line: #d8d8d0;
  --white: #ffffff;
  --red: #a7212f;
  --green: #1d6f5a;
  --gold: #c99a31;
  --silver: #c7cbd0;
  --shadow: 0 18px 50px rgba(18, 20, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::selection {
  background: rgba(167, 33, 47, 0.18);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 0 clamp(18px, 5vw, 56px);
  background: rgba(247, 247, 243, 0.84);
  border-bottom: 1px solid rgba(216, 216, 208, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.topbar nav {
  gap: clamp(12px, 3vw, 28px);
}

.topbar nav a {
  color: #30343b;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  padding: 132px clamp(18px, 5vw, 64px) 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.34)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 46%);
}

.hero-copy {
  width: min(760px, 100%);
  color: white;
}

.eyebrow,
.hero-copy p,
h1,
h2,
h3,
p {
  margin: 0;
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd77d;
}

h1 {
  margin-top: 12px;
  max-width: 720px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
}

.hero-lead {
  margin-top: 22px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.75;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: 48px;
  width: min(300px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  backdrop-filter: blur(14px);
}

.hero-panel span {
  display: block;
  color: #ffd77d;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
  line-height: 1;
}

.hero-panel p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

h2 {
  margin-top: 6px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.coin-grid,
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.coin-card,
.listing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(18, 20, 24, 0.08);
}

.coin-card {
  min-height: 284px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
}

.coin-card::before {
  content: "";
  display: block;
  width: 68px;
  height: 68px;
  margin-bottom: 26px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.32),
    0 10px 26px rgba(20, 20, 20, 0.18);
}

.gold-card::before {
  background: radial-gradient(circle at 35% 30%, #fff4b2, #d6a839 48%, #7b5409);
}

.silver-card::before {
  background: radial-gradient(circle at 35% 30%, #ffffff, #cfd4d9 48%, #545b62);
}

.ruby-card::before {
  background: radial-gradient(circle at 35% 30%, #ffe9a4, #caa13c 46%, #6e1119 76%);
}

.black-card::before {
  background: radial-gradient(circle at 35% 30%, #f3f4f5, #8c939a 42%, #19191b 74%);
}

.coin-year {
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 900;
}

.coin-card h3,
.listing-card h3 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
}

.coin-card p,
.listing-card p,
.desk-copy p,
.footer {
  color: var(--muted);
  line-height: 1.68;
}

.coin-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 0;
}

.coin-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.coin-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.market {
  border-top: 1px solid var(--line);
}

.market-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: transparent;
  color: #30343b;
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.listing-card {
  min-height: 202px;
  padding: 20px;
}

.listing-card.is-hidden {
  display: none;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.tag.sell {
  background: var(--red);
}

.tag.buy {
  background: var(--green);
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.listing-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: #30343b;
  font-size: 0.86rem;
  font-weight: 800;
}

.trade-desk {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.desk-copy {
  position: sticky;
  top: 96px;
}

.intent-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.intent-form label {
  display: grid;
  gap: 8px;
  color: #30343b;
  font-weight: 800;
}

.intent-form input,
.intent-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfbf9;
  color: var(--ink);
}

.intent-form input:focus,
.intent-form select:focus {
  outline: 3px solid rgba(167, 33, 47, 0.16);
  border-color: var(--red);
}

.form-button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  min-height: 28px;
  color: var(--green);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: white;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .coin-grid,
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    position: static;
    margin-top: 34px;
  }

  .trade-desk {
    grid-template-columns: 1fr;
  }

  .desk-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 62px;
  }

  .brand span:last-child {
    display: none;
  }

  .topbar nav {
    gap: 16px;
  }

  .hero {
    min-height: 72vh;
    padding: 104px 18px 42px;
  }

  .hero-image {
    object-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 52%);
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .section {
    width: min(100% - 24px, 1160px);
    padding: 46px 0;
  }

  .section-heading {
    display: block;
  }

  .coin-grid,
  .listing-grid,
  .intent-form {
    grid-template-columns: 1fr;
  }

  .coin-card {
    min-height: 242px;
  }

  .footer {
    display: block;
  }

  .footer p + p {
    margin-top: 8px;
  }
}
