:root {
  --green: #00c853;
  --green-2: #69f241;
  --emerald: #047d44;
  --charcoal: #101418;
  --ink: #13211a;
  --muted: #65706b;
  --soft: #f5f7fa;
  --line: rgba(16, 20, 24, 0.09);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(11, 48, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--charcoal);
  background: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

main {
  overflow: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 55px rgba(16, 20, 24, 0.08);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.nav-links,
.hero-actions,
.contract-card,
.dashboard-top,
.asset-row,
.links-section {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.02rem;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.links-section a {
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #24332a;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a:hover,
.links-section a:hover {
  border-color: rgba(0, 200, 83, 0.25);
  background: rgba(0, 200, 83, 0.08);
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding: 124px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: 0 0 52px 52px;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 1% -8% auto auto;
  width: 55%;
  height: 58%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 42%, rgba(0, 200, 83, 0.18), transparent 38%),
    radial-gradient(circle at 70% 56%, rgba(105, 242, 65, 0.12), transparent 42%);
  filter: blur(8px);
}

.grid-plane {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: 74%;
  height: 60%;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(0, 200, 83, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 83, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to top, #000, transparent 88%);
  transform: perspective(650px) rotateX(62deg);
  transform-origin: bottom;
}

.wave {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 130px;
  border: 1px solid rgba(0, 200, 83, 0.22);
  border-color: rgba(0, 200, 83, 0.28) transparent transparent transparent;
  border-radius: 50%;
}

.wave-one {
  top: 118px;
  transform: rotate(-6deg);
}

.wave-two {
  bottom: 34px;
  transform: rotate(4deg);
}

.map-outline {
  position: absolute;
  right: 7%;
  top: 15%;
  width: 420px;
  height: 210px;
  opacity: 0.28;
  background:
    radial-gradient(circle at 20% 35%, rgba(0, 200, 83, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 50%, rgba(0, 200, 83, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 38%, rgba(0, 200, 83, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 56%, rgba(0, 200, 83, 0.9) 0 2px, transparent 3px),
    linear-gradient(120deg, transparent 18%, rgba(0, 200, 83, 0.22), transparent 82%);
  border: 1px solid rgba(0, 200, 83, 0.22);
  border-radius: 50%;
  filter: blur(0.2px);
}

.particle-field span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px rgba(0, 200, 83, 0.7);
}

.particle-field span:nth-child(1) { top: 20%; left: 51%; }
.particle-field span:nth-child(2) { top: 29%; left: 83%; }
.particle-field span:nth-child(3) { top: 67%; left: 63%; }
.particle-field span:nth-child(4) { top: 49%; left: 92%; }
.particle-field span:nth-child(5) { top: 77%; left: 43%; }
.particle-field span:nth-child(6) { top: 36%; left: 73%; }
.particle-field span:nth-child(7) { top: 58%; left: 79%; }
.particle-field span:nth-child(8) { top: 18%; left: 31%; }
.particle-field span:nth-child(9) { top: 73%; left: 88%; }
.particle-field span:nth-child(10) { top: 44%; left: 56%; }

.hero-copy,
.hero-visual {
  position: relative;
}

.eyebrow,
.section-heading span,
.terminal-copy span,
.dashboard-top span,
.floating-card span,
.token-card span,
.route-card span,
.insight-card span {
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 200, 83, 0.18);
  border-radius: 999px;
  background: rgba(245, 247, 250, 0.86);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(0, 200, 83, 0.1);
}

.hero-logo {
  display: block;
  width: clamp(98px, 11vw, 150px);
  height: auto;
  margin: 24px 0 16px;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 200, 83, 0.18);
}

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

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.45rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 span {
  display: block;
}

.hero-copy p {
  max-width: 620px;
  margin-top: 24px;
  color: #56635c;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 0.98rem;
  font-weight: 850;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--emerald));
  box-shadow: 0 18px 42px rgba(0, 200, 83, 0.3);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
}

.contract-card {
  width: min(100%, 620px);
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(0, 200, 83, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(16, 20, 24, 0.08);
}

.contract-label {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--charcoal);
  font-weight: 850;
}

.contract-card code {
  min-width: 0;
  flex: 1 1 auto;
  color: #223128;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.68rem, 1.6vw, 0.92rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contract-card button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--green);
  font-weight: 850;
  cursor: pointer;
}

.hero-visual {
  min-height: 560px;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(245, 247, 250, 0.58));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.dashboard {
  position: absolute;
  top: 132px;
  right: 0;
  width: min(100%, 520px);
  min-height: 424px;
  padding: 22px;
  border-radius: 34px;
}

.dashboard::before {
  content: "";
  position: absolute;
  inset: auto -24px -18px 18%;
  z-index: -1;
  height: 130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.26), transparent 72%);
  filter: blur(14px);
}

.dashboard-top {
  justify-content: space-between;
  gap: 18px;
}

.dashboard-top strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.dashboard-top b,
.asset-row em {
  border-radius: 999px;
  padding: 8px 10px;
  color: #006c35;
  background: rgba(0, 200, 83, 0.12);
  font-size: 0.82rem;
  font-style: normal;
}

.network-panel {
  position: relative;
  height: 205px;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 24, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 200, 83, 0.18), transparent 34%),
    linear-gradient(rgba(16, 20, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 24, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 200, 83, 0.1), rgba(255, 255, 255, 0.76));
  background-size: 100% 100%, 38px 38px, 38px 38px, 100% 100%;
}

.network-panel img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 18px 42px rgba(0, 200, 83, 0.24);
  transform: translate(-50%, -50%);
}

.node-dot {
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(0, 200, 83, 0.1), 0 0 26px rgba(0, 200, 83, 0.44);
}

.node-a { top: 28%; left: 18%; }
.node-b { top: 22%; right: 22%; }
.node-c { bottom: 24%; left: 28%; }
.node-d { right: 18%; bottom: 30%; }

.node-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 83, 0.75), transparent);
  transform-origin: left center;
}

.line-a {
  top: 34%;
  left: 20%;
  width: 61%;
  transform: rotate(8deg);
}

.line-b {
  top: 67%;
  left: 29%;
  width: 54%;
  transform: rotate(-12deg);
}

.line-c {
  top: 28%;
  left: 51%;
  width: 34%;
  transform: rotate(62deg);
}

.chart-panel {
  position: relative;
  height: 205px;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 24, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(rgba(16, 20, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 24, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 200, 83, 0.12), rgba(255, 255, 255, 0.7));
  background-size: 38px 38px, 38px 38px, 100% 100%;
}

.chart-line {
  position: absolute;
  inset: 42% 8% 18% 8%;
  border-top: 4px solid var(--green);
  border-right: 4px solid var(--green);
  border-radius: 40% 12px 0 0;
  transform: skewY(-12deg);
  filter: drop-shadow(0 0 14px rgba(0, 200, 83, 0.48));
}

.candles {
  position: absolute;
  inset: 28px 28px 22px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 16px;
}

.candles i {
  display: block;
  height: var(--h);
  min-height: 34px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.22);
}

.asset-row {
  justify-content: space-between;
  gap: 12px;
  padding: 15px 4px;
  border-top: 1px solid rgba(16, 20, 24, 0.08);
}

.asset-row span {
  color: #4d5a53;
  font-weight: 700;
}

.asset-row strong {
  margin-left: auto;
}

.floating-card {
  position: absolute;
  z-index: 2;
  min-width: 190px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 62px rgba(16, 20, 24, 0.12);
  backdrop-filter: blur(18px);
}

.floating-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.7rem;
}

.liquidity {
  top: 18px;
  left: 6px;
}

.node {
  right: 14px;
  bottom: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 80px;
}

.stats article,
.feature-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(16, 20, 24, 0.06);
}

.stats article {
  padding: 24px;
}

.stats strong {
  display: block;
  color: var(--charcoal);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.feature-section {
  padding: 88px 0;
  border-radius: 42px;
  background: linear-gradient(180deg, var(--soft), #ffffff);
}

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

h2 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  font-weight: 900;
}

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

.feature-card {
  min-height: 236px;
  padding: 28px;
}

.feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--charcoal), var(--emerald));
  font-weight: 900;
}

h3 {
  margin-top: 24px;
  font-size: 1.35rem;
}

.feature-card p,
.route-card p,
.insight-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.terminal-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 24px;
  padding: 100px 0 62px;
  align-items: stretch;
}

.terminal-copy {
  padding: 34px 0;
}

.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.token-card,
.route-card,
.insight-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 28px;
}

.token-card {
  grid-row: span 2;
}

.token-card strong,
.route-card strong,
.insight-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
}

.mini-bars {
  display: grid;
  height: 230px;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 22px;
}

.mini-bars i {
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, var(--green-2), var(--emerald));
}

.mini-bars i:nth-child(1) { height: 34%; }
.mini-bars i:nth-child(2) { height: 62%; }
.mini-bars i:nth-child(3) { height: 48%; }
.mini-bars i:nth-child(4) { height: 78%; }
.mini-bars i:nth-child(5) { height: 58%; }
.mini-bars i:nth-child(6) { height: 88%; }

.entry-stack {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.entry-stack a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 200, 83, 0.16);
  border-radius: 16px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #173322;
  font-weight: 850;
}

.entry-stack a::after {
  content: "Open";
  color: var(--emerald);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.links-section {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0 54px;
}

.links-section a {
  border-color: rgba(16, 20, 24, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(16, 20, 24, 0.06);
}

@media (max-width: 960px) {
  .site-header {
    position: sticky;
    top: 10px;
    margin-top: 10px;
    transform: translateX(-50%);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .dashboard {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .stats,
  .feature-grid,
  .terminal-section {
    grid-template-columns: 1fr 1fr;
  }

  .terminal-section {
    gap: 12px;
  }

  .terminal-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    left: 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    align-items: flex-start;
    border-radius: 22px;
    flex-direction: column;
    transform: none;
  }

  .nav-links {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 4px;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    padding: 10px 6px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .section-shell {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero {
    padding-bottom: 42px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.4vw, 2.34rem);
    line-height: 1.07;
  }

  .hero-copy,
  .hero-copy p,
  .hero-actions,
  .contract-card,
  .hero-visual,
  .dashboard,
  .chart-panel {
    max-width: 100%;
  }

  .hero-copy p {
    width: min(100%, 330px);
    font-size: 1rem;
    line-height: 1.55;
  }

  .contract-card {
    align-items: stretch;
    flex-direction: column;
  }

  .contract-card button {
    width: 100%;
  }

.hero-visual {
  min-height: 620px;
}

  .dashboard {
    top: 56px;
    width: 100%;
    min-height: 438px;
  }

  .floating-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: inline-block;
    width: calc(50% - 8px);
    min-width: 0;
    margin-top: 500px;
    vertical-align: top;
  }

  .node {
    margin-left: 10px;
  }

  .stats,
  .feature-grid,
  .terminal-section,
  .terminal-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    padding-bottom: 48px;
  }

  .feature-section {
    padding: 58px 0;
    border-radius: 30px;
  }

  .terminal-section {
    padding-top: 58px;
  }
}

@media (max-width: 420px) {
  .nav-links a {
    padding: 8px 6px;
    font-size: 0.76rem;
  }

  .hero-logo {
    width: 98px;
  }

  .floating-card {
    width: 100%;
    margin-top: 500px;
  }

  .node {
    margin-top: 10px;
    margin-left: 0;
  }
}
