:root {
  --bg: #050816;
  --bg-soft: #0a1024;
  --panel: rgba(12, 20, 46, 0.78);
  --panel-strong: #0e1734;
  --text: #eef6ff;
  --muted: #96a7c6;
  --line: rgba(133, 186, 255, 0.2);
  --cyan: #45f3ff;
  --blue: #4b7cff;
  --violet: #a45bff;
  --green: #5dffb2;
  --gold: #ffcc5c;
  --danger: #ff5d8f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(69, 243, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(164, 91, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 50% 110%, rgba(75, 124, 255, 0.14), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(127, 173, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 173, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 85%);
}

body::after {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(130, 183, 255, 0.13);
  background: rgba(5, 8, 22, 0.76);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(69, 243, 255, 0.5);
  border-radius: 10px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(69,243,255,0.13), rgba(164,91,255,0.08));
  box-shadow: inset 0 0 28px rgba(69, 243, 255, 0.08), 0 0 26px rgba(69, 243, 255, 0.08);
}

.brand em {
  color: var(--cyan);
  font-style: normal;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(89, 146, 255, 0.1);
}

.hero {
  position: relative;
  padding: 104px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 7vw, 6.25rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #8db8ff 46%, #d19bff 78%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.2rem);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(69, 243, 255, 0.28);
  border-radius: 12px;
  color: #03121a;
  background: linear-gradient(90deg, var(--cyan), #7df7ff);
  box-shadow: 0 12px 36px rgba(69, 243, 255, 0.13);
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(69, 243, 255, 0.2);
}

.button.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.025);
  border-color: var(--line);
  box-shadow: none;
}

.terminal {
  position: relative;
  min-height: 390px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(130, 183, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(12, 21, 49, 0.92), rgba(6, 11, 29, 0.88));
  box-shadow: var(--shadow);
}

.terminal::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -95px;
  border-radius: 50%;
  background: rgba(69, 243, 255, 0.18);
  filter: blur(60px);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(134, 180, 255, 0.13);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.dot:nth-child(1) { background: var(--danger); }
.dot:nth-child(2) { background: var(--gold); }
.dot:nth-child(3) { background: var(--green); }

.chain-map {
  min-height: 315px;
  display: grid;
  place-items: center;
  position: relative;
}

.orbit {
  width: min(290px, 78vw);
  aspect-ratio: 1;
  position: relative;
  border: 1px solid rgba(69, 243, 255, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(69, 243, 255, 0.04);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 14%;
  border: 1px dashed rgba(164, 91, 255, 0.22);
}

.orbit::after {
  inset: 34%;
  border-style: solid;
  border-color: rgba(69, 243, 255, 0.2);
}

.core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--cyan);
  background: rgba(69, 243, 255, 0.08);
  border: 1px solid rgba(69,243,255,0.42);
  font-weight: 900;
  box-shadow: 0 0 38px rgba(69, 243, 255, 0.12);
}

.node {
  position: absolute;
  width: 52px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #0a1431;
  border: 1px solid rgba(151, 193, 255, 0.24);
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.node.btc { top: -14px; left: 50%; transform: translateX(-50%); color: var(--gold); }
.node.eth { right: -16px; top: 50%; transform: translateY(-50%); color: #b9b8ff; }
.node.sol { bottom: -14px; left: 50%; transform: translateX(-50%); color: var(--green); }
.node.ton { left: -16px; top: 50%; transform: translateY(-50%); color: #68b8ff; }

.section {
  padding: 44px 0 84px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
}

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

.chain-card,
.info-card,
.stat-card,
.callout {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 24, 55, 0.88), rgba(7, 12, 31, 0.72));
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.chain-card {
  position: relative;
  min-height: 285px;
  padding: 22px;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.chain-card:hover {
  transform: translateY(-5px);
  border-color: rgba(69, 243, 255, 0.42);
}

.chain-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--card-glow, rgba(69,243,255,0.18));
  filter: blur(42px);
}

.chain-card.btc { --card-glow: rgba(255, 204, 92, 0.18); }
.chain-card.eth { --card-glow: rgba(164, 91, 255, 0.2); }
.chain-card.sol { --card-glow: rgba(93, 255, 178, 0.18); }
.chain-card.ton { --card-glow: rgba(75, 124, 255, 0.2); }

.chain-icon {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.2rem;
  font-weight: 900;
}

.chain-card h3 {
  margin-bottom: 7px;
  font-size: 1.35rem;
}

.chain-card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 800;
}

.card-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.chain-card:hover .card-link::after {
  transform: translateX(4px);
}

.marquee {
  margin-top: 26px;
  padding: 13px 0;
  overflow: hidden;
  border-top: 1px solid rgba(127, 173, 255, 0.1);
  border-bottom: 1px solid rgba(127, 173, 255, 0.1);
  color: #7390bd;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  padding-right: 48px;
}

.page-hero {
  padding: 92px 0 34px;
}

.page-hero .hero-copy {
  max-width: 800px;
}

.chain-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(69, 243, 255, 0.055);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chain-title {
  max-width: 890px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 9vw, 7.6rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.stat-card {
  padding: 20px;
  border-radius: 16px;
}

.stat-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 1.08rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.info-card {
  padding: 26px;
  border-radius: 18px;
}

.info-card h2,
.info-card h3 {
  margin-bottom: 10px;
}

.info-card p,
.info-card li {
  color: var(--muted);
}

.info-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.info-card li + li {
  margin-top: 8px;
}

.stack {
  display: grid;
  gap: 18px;
}

.callout {
  padding: 22px;
  border-radius: 18px;
}

.callout strong {
  color: var(--cyan);
}

.code-line {
  margin-top: 14px;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  border-radius: 12px;
  color: #bfe7ff;
  background: #050918;
  border: 1px solid rgba(69, 243, 255, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.83rem;
}

.site-footer {
  padding: 30px 0 42px;
  color: #7486a6;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(127, 173, 255, 0.11);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.error-box {
  max-width: 760px;
  padding: 46px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(15, 26, 58, 0.92), rgba(6, 11, 29, 0.9));
  box-shadow: var(--shadow);
}

.error-code {
  margin: 0;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(5rem, 20vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.error-box p {
  color: var(--muted);
}

.small-note {
  font-size: 0.84rem;
  color: #6f82a5;
}

@media (max-width: 940px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 74px;
  }

  .terminal {
    min-height: 340px;
  }
}

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

  .site-header {
    position: static;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .page-hero {
    padding-top: 56px;
  }

  .grid-4,
  .stats {
    grid-template-columns: 1fr;
  }

  .terminal {
    padding: 16px;
    border-radius: 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .error-box {
    padding: 30px 20px;
    border-radius: 20px;
  }
}
