:root {
  color-scheme: light;
  --ink: #151d2d;
  --muted: #56647a;
  --blue: #1643ed;
  --blue-hover: #1236ca;
  --blue-soft: #eef3ff;
  --white: #fff;
  --panel: #f5f7fb;
  --border: #e2e8f2;
  --radius: 20px;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  letter-spacing: -.02em;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; object-fit: contain; object-position: left; }
.home {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  background: var(--white);
}
.home > main { display: grid; align-items: center; }
.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  width: 100%;
  max-width: 1352px;
  margin-inline: auto;
  padding-inline: 28px;
}
.navigation, .header-actions { display: flex; align-items: center; gap: 8px; }
.topbar > .brand { justify-self: start; }
.header-actions { justify-self: end; }
.navigation a, .ghost-button, .widget-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}
.navigation a { border-radius: 999px; padding-inline: 16px; color: var(--muted); }
.navigation a:hover, .navigation .nav-current { background: var(--blue-soft); color: var(--blue); }
.ghost-button {
  padding-inline: 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
}
.ghost-button:hover { color: var(--blue); border-color: var(--blue); }
.language { position: relative; }
.language summary {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}
.language summary::-webkit-details-marker { display: none; }
.language summary:hover { background: var(--blue-soft); }
.language-menu {
  position: absolute;
  z-index: 6;
  top: calc(100% + 8px);
  right: 0;
  width: 126px;
  padding: 5px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.language-menu a {
  display: block;
  text-decoration: none;
  display: block;
  min-height: 40px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding-inline: 11px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.language-menu a:hover, .language-menu a[aria-current=page] { background: var(--blue-soft); color: var(--blue); }
.mobile-toggle, .navigation .nav-app-mobile { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(742px, calc(100svh - 158px));
  padding: 52px 20px 78px;
}
.hero-content { max-width: 730px; margin-inline: auto; text-align: center; }
.hero h1 {
  margin: 0;
  font-size: clamp(46px, 6.2vw, 80px);
  font-weight: 555;
  line-height: .96;
  letter-spacing: -.067em;
}
.hero-line, .hero-highlight { display: block; }
.hero-highlight { color: var(--blue); line-height: 1.18; }
@media (prefers-reduced-motion: no-preference) {
  .hero-highlight { display: grid; }
  .hero-join { display: none; }
  .hero-network { grid-area: 1 / 1; animation: network-cycle 8s -.32s infinite both; }
  .hero-network-layer { animation-delay: -4.32s; }
  @keyframes network-cycle {
    0% { opacity: 0; transform: translateY(.12em); }
    4%, 45% { opacity: 1; transform: translateY(0); }
    49%, 100% { opacity: 0; transform: translateY(-.12em); }
  }
}
.hero-description {
  max-width: 480px;
  margin: 20px auto 28px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.5;
}
.orbit-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.orbit-line, .orb, .orbit-token { position: absolute; border-radius: 50%; }
.orbit-line { width: 470px; height: 470px; border: 1px solid var(--blue-soft); }
.orbit-line-left { left: calc(50% - 835px); top: 65px; }
.orbit-line-right { right: calc(50% - 815px); top: 214px; }
.orb-left {
  left: calc(50% - 638px);
  top: 145px;
  width: 216px;
  height: 216px;
  background: radial-gradient(circle, #3064ff, transparent 70%);
  opacity: .28;
}
.orb-right {
  right: calc(50% - 614px);
  top: 350px;
  width: 196px;
  height: 196px;
  background: radial-gradient(circle, #2568ff, transparent 70%);
  opacity: .31;
}
.orb-small-left {
  left: calc(50% - 500px);
  top: 515px;
  width: 82px;
  height: 82px;
  background: radial-gradient(circle, #86afff, transparent 72%);
  opacity: .49;
}
.orb-small-right {
  right: calc(50% - 446px);
  top: 146px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #84a8ff, transparent 72%);
  opacity: .55;
}
.orb-dot { left: calc(50% - 366px); top: 380px; width: 15px; height: 15px; background: #d1dfff; }
.orbit-token {
  --token-size: 64px;
  display: grid;
  place-items: center;
  width: var(--token-size);
  height: var(--token-size);
}
.orbit-token img, .orbit-token svg { width: 64%; height: 64%; object-fit: contain; border-radius: 50%; }
.orbit-btc { --token-size: 94px; left: calc(50% - 553px); top: 20%; transform: rotate(-12deg); }
.orbit-eth { --token-size: 74px; left: calc(50% - 405px); top: 37%; transform: rotate(11deg); }
.orbit-usdc { --token-size: 62px; left: calc(50% - 515px); top: 64%; transform: rotate(10deg); }
.orbit-dot { --token-size: 46px; left: calc(50% - 355px); top: 76%; transform: rotate(-11deg); }
.orbit-sol { --token-size: 80px; right: calc(50% - 527px); top: 18%; transform: rotate(12deg); }
.orbit-usdt { --token-size: 59px; right: calc(50% - 363px); top: 38%; transform: rotate(-12deg); }
.orbit-kst { --token-size: 96px; right: calc(50% - 546px); top: 58%; transform: rotate(11deg); }
.orbit-ltc { --token-size: 44px; right: calc(50% - 369px); top: 76%; transform: rotate(-12deg); }

.swap-widget {
  width: min(100%, 448px);
  margin-inline: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 2px #172b5512, 0 14px 38px -18px #223f6038;
  text-align: left;
  scroll-margin-top: 22px;
}
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 10px;
}
.widget-header h2 { margin: 0; font-size: 20px; font-weight: 650; }
.widget-link {
  min-height: 36px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}
.widget-link:hover { background: var(--blue-soft); color: var(--blue); }
.network-picker { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.network-picker legend { padding: 0 0 6px 4px; color: var(--muted); font-size: 13px; font-weight: 550; }
.network-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: var(--panel);
}
.network-option { position: relative; cursor: pointer; }
.network-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.network-choice {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.network-icon { flex: none; }
.network-choice::after {
  content: "";
  width: 9px;
  height: 5px;
  flex: none;
  margin-inline-start: auto;
  margin-block-end: 3px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  visibility: hidden;
}
.network-option:hover .network-choice { background: var(--blue-soft); }
.network-option input:checked + .network-choice {
  border-color: #cbd8ff;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 1px 3px #172b5515;
}
.network-option input:checked + .network-choice::after { visibility: visible; }
.network-option input:focus-visible + .network-choice { outline: 2px solid var(--blue); outline-offset: 1px; }
.pair-panel {
  padding: 14px 16px;
  border-radius: 19px;
  background: var(--panel);
}
.pair-label { display: block; color: var(--muted); font-size: 13px; line-height: 1.25; font-weight: 530; }
.pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 43px;
  margin-top: 5px;
}
.pair-amount {
  color: var(--muted);
  font-size: clamp(32px, 5vw, 43px);
  font-weight: 450;
  letter-spacing: -.05em;
  line-height: 1.04;
}
.pair-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
}
.pair-token img { border-radius: 50%; }
.pair-switch { position: relative; display: grid; place-items: center; height: 4px; }
.pair-direction {
  position: absolute;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 4px solid var(--white);
  border-radius: 13px;
  background: var(--panel);
  color: var(--muted);
}
.swap-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 19px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}
.swap-cta:hover, .primary:hover { background: var(--blue-hover); }

.below-hero {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
  padding-block: 76px;
  border-top: 1px solid var(--border);
}
.explore-section {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.3fr);
  gap: clamp(26px, 6vw, 92px);
  align-items: center;
}
.section-intro h2 {
  margin: 10px 0 13px;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -.057em;
}
.section-intro p { margin: 0; max-width: 36ch; color: var(--muted); font-size: 16px; line-height: 1.5; }
.section-intro .section-kicker { color: var(--blue); font-size: 13px; font-weight: 600; }
.resource-grid, .network-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resource-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.resource-card:hover { border-color: var(--blue); }
.resource-card { display: grid; justify-items: start; align-content: start; gap: 5px; padding: 18px; }
.resource-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
}
.resource-icon svg { width: 22px; height: 22px; }
.resource-arrow { position: absolute; top: 18px; right: 18px; color: var(--blue); }
.resource-card strong { font-size: 17px; font-weight: 570; line-height: 1.25; }
.resource-description { color: var(--muted); font-size: 14px; line-height: 1.4; }
.network-section .section-intro h2, .network-section .section-intro p { max-width: none; }
.network-guides { margin-top: 24px; }
.network-guides .resource-card { padding-inline-end: 38px; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: min(100% - 48px, 1120px);
  min-height: 82px;
  margin-inline: auto;
  padding-block: 10px;
  border-top: 1px solid var(--border);
}
.footer-links, .footer ul { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer li a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; color: var(--muted); font-size: 14px; }
.footer li a { min-width: 32px; }
.footer-links a:hover { color: var(--blue); }

@media (max-width: 1100px) {
  .orbit-btc, .orbit-usdc { left: 5%; }
  .orbit-sol, .orbit-kst { right: 5%; }
  .orbit-eth, .orbit-dot { left: 12%; }
  .orbit-usdt, .orbit-ltc { right: 12%; }
}

@media (min-width: 721px) and (max-width: 890px) {
  .orbit-eth, .orbit-dot { left: 7%; }
  .orbit-usdt, .orbit-ltc { right: 7%; }
}

@media (max-width: 720px) {
  .topbar { min-height: 65px; grid-template-columns: 1fr auto auto; padding-inline: 17px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-actions > .ghost-button { display: none; }
  .mobile-toggle {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  .mobile-toggle:hover { background: var(--blue-soft); }
  .navigation {
    display: none;
    position: absolute;
    inset-inline: 12px;
    top: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
  }
  .navigation.is-open { display: grid; }
  .navigation .nav-app-mobile { display: inline-flex; }
  .hero { min-height: auto; padding: 37px 16px 55px; }
  .hero h1 { font-size: clamp(43px, 9vw, 61px); }
  .hero-description { margin: 16px auto 24px; }
  .orbit-token, .orbit-line, .orb-small-left, .orb-small-right, .orb-dot { display: none; }
  .orbit-btc, .orbit-sol, .orbit-usdc, .orbit-kst { display: grid; --token-size: 34px; }
  .orbit-btc, .orbit-sol { top: 5px; }
  .orbit-usdc, .orbit-kst { top: auto; bottom: 9px; }
  .orbit-btc, .orbit-usdc { left: 9%; }
  .orbit-sol, .orbit-kst { right: 9%; }
  .orb-left { top: 127px; left: -133px; opacity: .21; }
  .orb-right { top: 356px; right: -153px; opacity: .25; }
  .below-hero { width: calc(100% - 32px); padding-block: 46px; }
  .explore-section { grid-template-columns: 1fr; gap: 22px; }
  .resource-card { padding: 14px; }
  .resource-arrow { top: 14px; right: 14px; }
  .network-guides { grid-template-columns: 1fr; margin-top: 18px; }
  .footer { width: calc(100% - 32px); }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 39px; }
  .pair-panel { padding-inline: 12px; }
  .swap-widget { padding: 10px; }
}

.chain { color: var(--blue); }
.button {
  display: inline-flex;
  min-width: 152px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 550;
}
.primary { color: var(--white); background: var(--blue); }
.archive-page { min-height: 100svh; background: #f8faff; }
.archive-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: white;
  border-bottom: 1px solid var(--border);
}
.archive-header nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.archive-header nav a { display: inline-flex; min-height: 32px; align-items: center; }
.archive-content { max-width: 880px; margin: 0 auto; padding: 48px 20px; line-height: 1.65; }
.archive-content h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.15; }
.archive-content h2 { margin-top: 32px; line-height: 1.2; }
.archive-content :where(li, p) { overflow-wrap: anywhere; }
.archive-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.archive-content td, .archive-content th { border: 1px solid var(--border); padding: 8px; }
.archive-content pre { overflow-x: auto; padding: 12px; background: #edf2fb; }
.archive-content img { max-width: 100%; height: auto; }
.breadcrumbs { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.guide-links a { display: inline-flex; align-items: center; min-height: 32px; max-width: 100%; }
.docs-banner { display: block; border-radius: 12px; margin: 20px 0; }
.universe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
}
.universe-gallery a { display: block; }
.universe-gallery img { display: block; width: 100%; border-radius: 12px; }
.note { padding: 12px 16px; border-radius: 8px; background: #eef3ff; color: #253354; }
.exchange { background: var(--white); }
.exchange .archive-content { text-align: center; }
.exchange .archive-content > p { margin-inline: auto; max-width: 62ch; }
.exchange h1 .chain { font-size: inherit; }
.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 6px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--border);
}
.app-tabs a { display: inline-flex; align-items: center; min-height: 34px; color: var(--muted); }
.app-tabs a[aria-current] { color: var(--blue); font-weight: 650; }
.swap-card {
  margin: 32px auto 18px;
  max-width: 524px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--border);
  padding: 22px;
  text-align: left;
}
.swap-card h2 { margin: 16px 0; font-size: 20px; }
.swap-card > a { display: block; text-align: center; }
.token-panel div > span { overflow-wrap: anywhere; }
.token-panel { margin: 12px 0; padding: 14px 18px; border: 1px solid #e7ebf5; border-radius: 18px; }
.token-panel div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 22px; }
.token-panel span, .token-panel small { color: var(--muted); }
.swap-direction { display: block; text-align: center; }
.faucet-title { margin: 0; padding: 78px 20px 34px; background: #0b2ff0; color: #fff; text-align: center; font-size: clamp(25px, 4vw, 38px); }

