:root {
  --sky: #3fabf4;
  --brand-blue: #1477f0;
  --ink: #0b2a52;
  --ink-soft: #4c6b95;
  --cream: #f4f8ff;
  --line: #d8e6fb;
  --white: #ffffff;
  --burn: #e8672f;
  --burn-soft: #fdece3;
  --usdc-soft: #e6f1ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mono-strong {
  font-family: "DM Mono", monospace;
  font-weight: 500;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 28px) clamp(20px, 5vw, 64px);
  max-width: 1040px;
  margin: 0 auto;
}

.topbar-logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topbar-cta {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--brand-blue);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}

.topbar-cta:hover {
  opacity: 0.86;
}

/* Layout */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px) clamp(20px, 5vw, 32px) 40px;
}

section {
  margin-top: clamp(48px, 8vw, 76px);
}

.intro {
  margin-top: clamp(24px, 5vw, 40px);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede,
.body-lg {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--ink);
  margin: 16px 0 0;
  max-width: 58ch;
}

.body-lg strong {
  font-weight: 700;
}

/* Fee cards */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 4px 4px 0 rgba(11, 42, 82, 0.08);
}

.card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
}

.tag-usdc {
  background: var(--usdc-soft);
  color: var(--brand-blue);
}

.tag-burn {
  background: var(--burn-soft);
  color: var(--burn);
}

.card-caption {
  font-size: 12px;
  color: var(--ink-soft);
}

.card-ratio {
  margin-left: auto;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  color: var(--ink);
}

/* Proportion bar */
.bar {
  display: flex;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  overflow: hidden;
  margin-top: 18px;
  background: var(--cream);
}

.bar-seg {
  height: 100%;
  width: 0;
  animation: growBar 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.15s;
}

.bar-seg-a {
  background: var(--brand-blue);
}

.bar-seg-b {
  background: var(--ink);
}

.bar-seg-burn {
  background: var(--burn);
}

@keyframes growBar {
  to {
    width: var(--target);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar-seg {
    animation: none;
    width: var(--target);
  }
}

.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.results-single {
  grid-template-columns: 1fr;
}

.result-num {
  font-family: "DM Mono", monospace;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1;
  color: var(--brand-blue);
}

.result-num-dim {
  color: var(--ink);
}

.result-num-burn {
  color: var(--burn);
}

.result-label {
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
}

.result-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.4;
}

.summary-bar {
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 18px 22px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.5;
}

.summary-burn {
  color: #ff9d70;
}

.summary-holders {
  color: #7fb7ff;
}

/* Contracts */
.contract-rows {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contract-row-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
}

.contract-token {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.contract-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.contract-code {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  margin-left: auto;
}

.contract-code-muted {
  color: var(--ink-soft);
  margin-left: auto;
}

#copy-usdcat {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--brand-blue);
  border: none;
  border-radius: 6px;
  padding: 7px 13px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

#copy-usdcat:hover {
  opacity: 0.86;
}

#copy-usdcat:active {
  transform: scale(0.96);
}

#copy-usdcat.copied {
  background: #1a9e5c;
}

/* Closing */
.closing {
  text-align: center;
  padding: clamp(40px, 8vw, 64px) 0;
}

.closing h2 {
  font-size: clamp(28px, 5vw, 42px);
}

.closing-cta {
  display: inline-block;
  margin-top: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  background: var(--brand-blue);
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}

.closing-cta:hover {
  opacity: 0.86;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 64px) 40px;
  max-width: 1040px;
  margin: 0 auto;
}

.disclaimer {
  max-width: 720px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.foot-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.foot-row a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.foot-row span {
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .results {
    grid-template-columns: 1fr 1fr;
  }
}
