
:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --paper: #ffffff;
  --ink: #172126;
  --muted: #5d6b72;
  --line: #dfe7ea;
  --teal: #0f8b8d;
  --blue: #2457a6;
  --amber: #c78322;
  --graphite: #263238;
  --soft: #eaf3f2;
  --shadow: 0 18px 60px rgba(23, 33, 38, 0.11);
}

body.theme-buy {
  --bg: #f3f8f6;
  --teal: #0f8b70;
  --blue: #2663a8;
  --amber: #bd7b24;
  --soft: #e5f4ef;
}

body.theme-sell {
  --bg: #f7f6f2;
  --teal: #896f25;
  --blue: #1f6681;
  --amber: #ad5f26;
  --soft: #f1ebdc;
}

body.theme-city {
  --bg: #f5f7fa;
  --teal: #2d7188;
  --blue: #37589d;
  --amber: #b0782a;
  --soft: #e8eef6;
}

body.theme-ton {
  --bg: #f3f8fb;
  --teal: #1583b4;
  --blue: #1f57a4;
  --amber: #b88322;
  --soft: #e4f2f9;
}

body.theme-trc20 {
  --bg: #f7f6f6;
  --teal: #9b3d3f;
  --blue: #264f86;
  --amber: #b56d24;
  --soft: #f2e7e7;
}

body.theme-usdc {
  --bg: #f4f8fb;
  --teal: #236da8;
  --blue: #174f96;
  --amber: #a97722;
  --soft: #e6f0f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 231, 234, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--graphite), var(--teal));
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, 82vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #eef3f4;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 247, 248, 0.98) 0%, rgba(245, 247, 248, 0.82) 34%, rgba(245, 247, 248, 0.12) 72%),
    linear-gradient(180deg, rgba(245, 247, 248, 0.02) 0%, rgba(245, 247, 248, 0.92) 100%);
}

body.theme-sell .hero::after {
  background:
    linear-gradient(90deg, rgba(247, 246, 242, 0.98) 0%, rgba(247, 246, 242, 0.88) 42%, rgba(247, 246, 242, 0.22) 78%),
    linear-gradient(180deg, rgba(247, 246, 242, 0.04) 0%, rgba(247, 246, 242, 0.95) 100%);
}

body.theme-city .hero::after,
body.theme-usdc .hero::after {
  background:
    linear-gradient(90deg, rgba(245, 247, 250, 0.98) 0%, rgba(245, 247, 250, 0.74) 46%, rgba(245, 247, 250, 0.14) 78%),
    linear-gradient(180deg, rgba(245, 247, 250, 0.0) 0%, rgba(245, 247, 250, 0.94) 100%);
}

body.theme-ton .hero::after {
  background:
    linear-gradient(90deg, rgba(243, 248, 251, 0.98) 0%, rgba(243, 248, 251, 0.84) 38%, rgba(243, 248, 251, 0.18) 74%),
    linear-gradient(180deg, rgba(243, 248, 251, 0.0) 0%, rgba(243, 248, 251, 0.94) 100%);
}

body.theme-trc20 .hero::after {
  background:
    linear-gradient(90deg, rgba(247, 246, 246, 0.98) 0%, rgba(247, 246, 246, 0.84) 36%, rgba(247, 246, 246, 0.12) 74%),
    linear-gradient(180deg, rgba(247, 246, 246, 0.0) 0%, rgba(247, 246, 246, 0.94) 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-sell .hero-image {
  object-position: 70% center;
}

body.theme-city .hero-image,
body.theme-usdc .hero-image {
  object-position: 58% center;
}

body.theme-ton .hero-image {
  object-position: 66% center;
}

body.theme-trc20 .hero-image {
  object-position: 74% center;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 72px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--teal);
  font-weight: 800;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin-bottom: 30px;
  color: #314047;
  font-size: clamp(18px, 2vw, 23px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--graphite);
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.button.secondary {
  background: #fff;
  color: var(--graphite);
  border-color: var(--line);
}

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

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin-top: 46px;
}

.hero-signal {
  max-width: 760px;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-pill {
  padding: 8px 11px;
  border: 1px solid rgba(223, 231, 234, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.fact {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(223, 231, 234, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(23, 33, 38, 0.06);
}

.fact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--graphite);
}

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

.band {
  padding: 72px 0;
}

.band.white {
  background: var(--paper);
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.article p {
  color: var(--muted);
}

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

.exchange-grid.reversed .exchange-card:first-child {
  order: 2;
}

.exchange-grid.reversed .exchange-card:last-child {
  order: 1;
}

.exchange-card,
.info-card,
.faq-item,
.source-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.exchange-card {
  padding: 24px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}

.exchange-card h3 {
  margin: 0;
  font-size: 26px;
}

.exchange-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.exchange-card .button {
  width: fit-content;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 40px;
  align-items: start;
}

.content-grid.alt {
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
}

.content-grid.alt .article {
  order: 2;
}

.content-grid.alt .info-card {
  order: 1;
}

.article {
  font-size: 18px;
}

.article p {
  margin-bottom: 18px;
}

.steps,
.check-list,
.related-list,
.sources-list,
.insight-grid,
.query-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step,
.check-list li,
.related-list a,
.source-item,
.insight-card,
.query-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--teal);
  font-weight: 900;
}

.check-list li {
  padding: 14px 16px;
}

.info-card {
  padding: 22px;
  background: #f9fbfb;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.data-cell {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.data-cell small {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-weight: 850;
}

.data-cell strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.data-cell span {
  color: var(--muted);
}

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

.insight-card {
  padding: 20px;
}

.insight-card h3 {
  margin-bottom: 9px;
  font-size: 21px;
}

.insight-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.query-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--soft));
  padding: 24px;
}

.query-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.query-list li {
  padding: 12px 14px;
  color: #2d3b42;
  font-weight: 760;
}

.mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-nav a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.mini-nav a:hover {
  color: var(--ink);
  border-color: var(--teal);
}

.compare-table {
  display: grid;
  gap: 12px;
}

.compare-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.compare-row > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compare-row strong {
  display: block;
  margin-bottom: 6px;
}

.landing-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-list li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.landing-list strong {
  display: block;
  margin-bottom: 6px;
}

.deep-cta {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--soft));
}

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

.info-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

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

.faq-item {
  padding: 20px;
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.related-list a {
  padding: 16px;
  text-decoration: none;
  font-weight: 800;
}

.related-list a:hover {
  border-color: var(--teal);
}

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

.source-item {
  padding: 16px;
}

.source-item a {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  text-decoration-color: rgba(15, 139, 141, 0.4);
}

.source-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  border-left: 4px solid var(--amber);
  padding: 18px 20px;
  background: #fff8ec;
  color: #4a3923;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 62px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 760px;
    align-items: flex-end;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(245, 247, 248, 0.82) 0%, rgba(245, 247, 248, 0.95) 44%, rgba(245, 247, 248, 1) 100%);
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-content {
    padding: 96px 0 42px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-meta,
  .exchange-grid,
  .content-grid,
  .content-grid.alt,
  .faq-grid,
  .sources-list,
  .related-list,
  .data-strip,
  .insight-grid,
  .query-list,
  .landing-list,
  .compare-row {
    grid-template-columns: 1fr;
  }

  .content-grid.alt .article,
  .content-grid.alt .info-card {
    order: initial;
  }

  .band {
    padding: 54px 0;
  }
}
