@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Roboto+Mono:wght@500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f7fb;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --tile: #f5f5fa;
  --line: #e8e8f0;
  --line-strong: #d9d9e6;
  --text: #17172d;
  --soft: #505066;
  --muted: #7b7b8f;
  --green: #25a56a;
  --cyan: #635bdf;
  --amber: #d89128;
  --blue: #625bf6;
  --red: #d94f5c;
  --shadow: 0 24px 60px rgba(35, 32, 74, 0.1);
  --shadow-soft: 0 8px 28px rgba(35, 32, 74, 0.07);
  --radius: 8px;
  --container: 1180px;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0, #f8f8fc 520px, #f7f7fb 100%);
  font-size: 15px;
}

.topbar {
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--container)) / 2));
  border-color: rgba(23, 23, 45, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(23, 23, 45, 0.03);
  backdrop-filter: blur(18px);
}

.brand { gap: 10px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border: 0;
  background: #625bf6;
  box-shadow: 0 7px 18px rgba(98, 91, 246, 0.22);
}
.brand strong { color: #24213f; font-size: 1.05rem; font-weight: 800; }
.brand small { color: #858397; font-size: 0.7rem; }

nav { align-items: center; gap: 4px; }
nav a {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #5e5d70;
  font-size: 0.82rem;
  font-weight: 700;
}
nav a:last-child {
  margin-left: 8px;
  padding: 0 17px;
  border: 1px solid #625bf6;
  background: #625bf6;
  color: #fff;
}
nav a:hover { border-color: transparent; background: #f2f1ff; color: #4b43d1; transform: none; }
nav a:last-child:hover { border-color: #4d46d0; background: #4d46d0; color: #fff; }

.overview {
  display: block;
  max-width: 980px;
  padding: 94px 0 58px;
  text-align: center;
}
.hero-copy { display: grid; justify-items: center; }
.eyebrow {
  margin-bottom: 17px;
  color: #625bf6;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
h1 {
  max-width: 900px;
  margin-bottom: 22px;
  color: #1b1935;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  line-height: 1.01;
  font-weight: 800;
}
h2, h3 { color: #24213f; }
.lede { max-width: 680px; color: #666579; font-size: 1.08rem; line-height: 1.7; }
.hero-actions { margin-top: 26px; }

.button, .copy-button {
  min-height: 42px;
  border-color: #dedee8;
  background: #fff;
  color: #34324d;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 750;
}
.button:hover, .copy-button:hover {
  border-color: #625bf6;
  background: #f4f3ff;
  color: #4b43d1;
  transform: none;
}
.button.primary {
  border-color: #625bf6;
  background: #625bf6;
  color: #fff;
  box-shadow: 0 10px 24px rgba(98, 91, 246, 0.2);
}
.button.primary:hover { border-color: #4d46d0; background: #4d46d0; color: #fff; }

.trust-row { justify-content: center; margin-top: 24px; }
.trust-row span {
  min-height: 30px;
  padding: 0 10px;
  border-color: #e4e3ee;
  background: #fff;
  color: #6c6a7d;
  font-size: 0.72rem;
}
.trust-row span::before { color: #25a56a; }

.asset-ribbon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  width: min(900px, 100%);
  margin-top: 44px;
  padding: 20px 0 0;
  border-top: 1px solid #ecebf2;
}
.ribbon-asset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 11px 5px 6px;
  border: 1px solid #e8e7ef;
  border-radius: 999px;
  background: #fff;
  color: #59576a;
  font-size: 0.74rem;
  font-weight: 750;
  box-shadow: 0 5px 18px rgba(35, 32, 74, 0.05);
}
.ribbon-asset img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  background: #f5f5f8;
}

.asset-list { padding: 46px 0 90px; }
.section-title { align-items: end; margin-bottom: 20px; }
.section-title h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); font-weight: 800; }
.section-title span { color: #858397; font-size: 0.8rem; }

.cards {
  display: block;
  overflow: hidden;
  border: 1px solid #e5e4ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.asset-card {
  display: grid;
  grid-template-columns: minmax(225px, 0.8fr) minmax(300px, 1.45fr) minmax(170px, 0.6fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 122px;
  padding: 20px 22px;
  border: 0;
  border-bottom: 1px solid #ecebf2;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.asset-card:last-child { border-bottom: 0; }
.asset-card:hover { border-color: #ecebf2; background: #fafaff; transform: none; }
.asset-card .asset-head { display: block; margin: 0; }
.asset-card .asset-identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: "logo name" "logo symbol";
  gap: 2px 11px;
}
.asset-card .token-logo { grid-area: logo; }
.asset-card .asset-name {
  grid-area: name;
  align-self: end;
  color: #25223e;
  font-size: 0.96rem;
  font-weight: 800;
}
.asset-card .token-badge {
  grid-area: symbol;
  justify-content: flex-start;
  min-width: 0;
  height: auto;
  border: 0;
  background: transparent;
  color: #777589;
  font-size: 0.7rem;
}
.asset-card .verified-badge, .asset-card h2 { display: none; }
.asset-card p { margin: 0; color: #6c6a7d; font-size: 0.82rem; line-height: 1.55; }
.asset-category { color: #59576b; font-size: 0.76rem; font-weight: 700; }
.asset-card .button { width: auto; margin: 0; white-space: nowrap; }

.token-logo, .token-logo.small {
  border-color: #e2e1e9;
  background: #f7f7f9;
  box-shadow: none;
}
.token-badge, .verified-badge, .status {
  border-color: #dcd9ff;
  background: #f1f0ff;
  color: #554dd6;
}
.verified-badge::before { color: #25a56a; }

.token-hero { padding: 52px 0 28px; }
.token-copy {
  padding: 34px;
  border: 1px solid #e6e5ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.token-copy h1 { max-width: 860px; margin-bottom: 17px; font-size: clamp(2.45rem, 5vw, 4.6rem); }
.token-copy > p:not(.asset-thesis) { color: #686679; }
.back-link { color: #625bf6; font-size: 0.78rem; }
.asset-thesis {
  max-width: 900px;
  border-color: #e2e0ff;
  border-left-color: #625bf6;
  background: #f8f7ff;
  color: #4f4c68;
}

.market-panel, .finder-panel, .finder-card, .price-console,
.asset-story article, .pillar-grid article, .price-chart, .price-strip,
.xrpl-facts, .asset-card, .panel, .metric-tile, .notice {
  border-color: #e6e5ed;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.price-chart { padding: 25px; background: #fff; }
.price-chart::before { display: none; }
.chart-stat { border-color: #e7e5f2; background: #f8f8fb; }
.chart-stat span { color: #858397; }
.chart-stat strong { color: #2b2846; }
.chart-stat.up strong { color: #25a56a; }
.chart-ranges { border-color: #e4e2f4; background: #f7f6ff; }
.chart-range { color: #77748b; }
.chart-range:hover, .chart-range.active {
  border-color: #625bf6;
  background: #625bf6;
  color: #fff;
}
.chart-frame {
  border-color: #e4e2ed;
  background:
    linear-gradient(rgba(64, 60, 105, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 60, 105, 0.055) 1px, transparent 1px),
    #fbfbfe;
  box-shadow: inset 0 1px 0 #fff;
}
.chart-grid line { stroke: rgba(53, 49, 89, 0.1); }
.chart-line { filter: drop-shadow(0 5px 8px rgba(98, 91, 246, 0.22)); }
.chart-dot { fill: #625bf6; stroke: #fff; filter: drop-shadow(0 3px 7px rgba(98, 91, 246, 0.35)); }
.chart-cursor { background: #625bf6; box-shadow: none; }
.chart-hover-dot {
  border-color: #fff;
  background: #625bf6;
  box-shadow: 0 4px 14px rgba(98, 91, 246, 0.35);
}
.chart-tooltip {
  border-color: #dedcf2;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 32px rgba(35, 32, 74, 0.14);
}
.chart-tooltip strong { color: #4d46d0; }
.chart-scale, .chart-time-scale, .chart-tooltip span, .chart-note { color: #8a8899; }

.asset-story { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.asset-story .story-lead { background: #f4f3ff; }
.asset-story h2 { color: #24213f; }
.asset-story p, .pillar-grid p, .panel p, .notice p { color: #656376; }
.pillar-grid article { min-height: 170px; }
.xrpl-facts { padding: 26px; }
.fact-grid > div { border-color: #e9e8ef; background: #f8f8fb; }
dt { color: #8a8899; }
dd { color: #2a2744; }
code {
  border-color: #e2e1ea;
  background: #f3f3f7;
  color: #4d46d0;
  font-family: "Roboto Mono", ui-monospace, monospace;
}
.highlights li, .sector-list li { border-left-color: #625bf6; color: #656376; }

.site-footer {
  width: 100%;
  max-width: none;
  padding: 42px max(24px, calc((100vw - var(--container)) / 2));
  border: 0;
  background: #1d1b35;
  color: #aaa8bc;
}
.site-footer p { max-width: var(--container); margin-right: auto; margin-left: auto; }
.site-footer a { color: #a8a3ff; }
.footer-disclaimer { color: #c4c1d0; }
.error-page { background: #f7f7fb; }
.error-panel { border-color: #e3e2eb; background: #fff; }

.stablecoin-hero,
.stablecoin-directory,
.stablecoin-context {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.stablecoin-hero {
  display: grid;
  justify-items: center;
  padding: 86px 0 62px;
  text-align: center;
}

.stablecoin-hero h1 {
  max-width: 880px;
}

.stablecoin-principles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.stablecoin-principles span {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid #e4e3ee;
  border-radius: 999px;
  background: #fff;
  color: #666377;
  font-size: 0.75rem;
  font-weight: 750;
}

.stablecoin-directory {
  padding-bottom: 30px;
}

.stablecoin-profile {
  margin-bottom: 20px;
  padding: 30px;
  border: 1px solid #e5e4ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stablecoin-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.stablecoin-summary h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.stablecoin-summary p:last-child {
  max-width: 850px;
  margin-bottom: 0;
  color: #656376;
  line-height: 1.68;
}

.stablecoin-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(35, 32, 74, 0.14);
}

.stablecoin-market {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(180px, 1fr) minmax(260px, 1.5fr);
  gap: 16px;
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid #dedcf2;
  border-radius: 8px;
  background: #f4f3ff;
}

.stablecoin-market span {
  color: #77748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stablecoin-market strong {
  color: #24213f;
  font-size: 1.45rem;
}

.stablecoin-market small {
  color: #858397;
  text-align: right;
}

.stablecoin-symbol {
  margin-bottom: 5px;
  color: #625bf6;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stablecoin-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.stablecoin-facts > div {
  min-height: 98px;
  padding: 15px;
  border: 1px solid #e9e8ef;
  border-radius: 8px;
  background: #f8f8fb;
}

.stablecoin-facts dd {
  font-size: 0.88rem;
  line-height: 1.45;
}

.ledger-identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ledger-identity > div {
  min-width: 0;
}

.ledger-identity span {
  display: block;
  margin-bottom: 7px;
  color: #858397;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ledger-identity code {
  min-height: 56px;
}

.stablecoin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.stablecoin-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 0 72px;
}

.stablecoin-context article {
  padding: 26px;
  border: 1px solid #e5e4ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stablecoin-context article:first-child {
  background: #f4f3ff;
}

.stablecoin-context p:last-child {
  margin-bottom: 0;
  color: #656376;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    align-items: center;
    flex-direction: row;
  }
  nav { width: auto; }
  .asset-card {
    grid-template-columns: minmax(210px, 0.85fr) minmax(260px, 1.35fr) auto;
  }
  .asset-category { display: none; }
  .stablecoin-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ledger-identity,
  .stablecoin-context {
    grid-template-columns: 1fr;
  }
  .stablecoin-market {
    grid-template-columns: 1fr 1fr;
  }
  .stablecoin-market small {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .topbar {
    position: sticky;
    align-items: center;
    flex-direction: row;
    padding: 11px 16px;
  }
  .brand small { display: none; }
  nav { width: auto; }
  nav a { min-height: 36px; padding: 0 10px; }
  nav a:first-child { display: none; }
  .overview { padding: 62px 0 38px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .asset-ribbon {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: calc(100vw - 24px);
    padding: 18px 4px 8px;
    scrollbar-width: none;
  }
  .asset-ribbon::-webkit-scrollbar { display: none; }
  .ribbon-asset { flex: 0 0 auto; }
  .asset-list { padding-top: 30px; }
  .cards { border: 0; background: transparent; box-shadow: none; }
  .asset-card {
    grid-template-columns: 1fr auto;
    gap: 13px;
    margin-bottom: 10px;
    padding: 17px;
    border: 1px solid #e5e4ed;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
  }
  .asset-card p { grid-column: 1 / -1; }
  .asset-card .button { grid-column: 1 / -1; width: 100%; }
  .token-copy { padding: 23px 18px; }
  .token-copy h1 { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .price-chart, .xrpl-facts { padding: 17px 12px; }
  .chart-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { padding: 34px 18px; }
  .stablecoin-hero,
  .stablecoin-directory,
  .stablecoin-context {
    width: calc(100% - 24px);
  }
  .stablecoin-hero {
    padding: 58px 0 40px;
  }
  .stablecoin-profile {
    padding: 20px 16px;
  }
  .stablecoin-summary {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }
  .stablecoin-logo {
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
  }
  .stablecoin-market {
    grid-template-columns: 1fr;
  }
  .stablecoin-market small {
    grid-column: auto;
  }
  .stablecoin-facts {
    grid-template-columns: 1fr;
  }
  .stablecoin-facts > div {
    min-height: 0;
  }
  .stablecoin-actions {
    display: grid;
  }
  .stablecoin-actions .button {
    width: 100%;
  }
  .ledger-identity code {
    font-size: 0.7rem;
  }
}
