:root {
  --lime: #ccff00;
  --lime-dim: rgba(204, 255, 0, 0.55);
  --lime-glow: rgba(204, 255, 0, 0.22);
  --bg: #050505;
  --bg-2: #0a0a0a;
  --text: #f2f5ea;
  --muted: #8a9178;
  --line: rgba(204, 255, 0, 0.14);
  --disp: "Syne", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--lime);
  color: #050505;
}

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

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

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: none;
  color: inherit;
}

/* ---------- ambient ---------- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(204, 255, 0, 0.08), transparent 55%),
    linear-gradient(rgba(204, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.035) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pl-mark {
  position: relative;
  width: min(120px, 28vw);
  aspect-ratio: 1;
}

.pl-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: plPulse 1.6s ease-in-out infinite;
}

.pl-ring {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--lime);
  border-right-color: rgba(204, 255, 0, 0.25);
  animation: plSpin 1.1s linear infinite;
}

.pl-label {
  position: absolute;
  bottom: 14vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--lime-dim);
  white-space: nowrap;
  animation: plBlink 1.3s ease-in-out infinite;
}

@keyframes plSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes plPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(204, 255, 0, 0.75));
  }
}

@keyframes plBlink {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--lime);
  color: #050505;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  position: relative;
  z-index: 40;
}

.ticker-track {
  display: inline-block;
  animation: tick 28s linear infinite;
}

.ticker span {
  margin: 0 14px;
}

@keyframes tick {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--lime);
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  flex-direction: column;
  gap: 6px;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-burger.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 auto;
  z-index: 55;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 1.5rem 1.6rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--disp);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.95rem 1.45rem;
  font-size: 0.78rem;
}

.btn-solid {
  background: var(--lime);
  color: #050505;
  box-shadow: 0 0 0 0 rgba(204, 255, 0, 0);
}

.btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--lime-glow);
}

.btn-outline {
  border: 1px solid var(--lime);
  color: var(--lime);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(204, 255, 0, 0.08);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--lime);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.55;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0.55) 40%, rgba(5, 5, 5, 0.95) 100%),
    radial-gradient(ellipse 70% 55% at 50% 35%, transparent 20%, rgba(5, 5, 5, 0.75) 100%);
}

.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  width: 100%;
  pointer-events: none;
  opacity: 0.85;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

.hero-content {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 4vw, 2rem) 6rem;
  max-width: 920px;
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.hero-logo {
  width: clamp(72px, 14vw, 110px);
  height: auto;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 0 24px rgba(204, 255, 0, 0.45));
  animation: logoFloat 4.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.hero-word {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(2.8rem, 11vw, 6.5rem);
  letter-spacing: 0.16em;
  line-height: 0.95;
  text-indent: 0.16em;
  color: var(--lime);
  text-shadow: 0 0 60px rgba(204, 255, 0, 0.25);
}

.hero-ticker {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--text);
  opacity: 0.9;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--lime-dim);
}

.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--lime), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ---------- sections ---------- */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.2rem, 5vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--lime);
  margin-bottom: 0.85rem;
}

.section-head h2,
.agents-copy h2,
.token-brand h2 {
  font-family: var(--disp);
  font-weight: 750;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub,
.agents-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
}

/* protocol */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proto-block {
  background: var(--bg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.proto-block::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--lime-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.proto-block:hover {
  background: #090909;
}

.proto-block:hover::after {
  opacity: 1;
}

.proto-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--lime);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 1.2rem;
}

.proto-block h3 {
  font-family: var(--disp);
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.proto-block p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* markets */
.markets {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.markets .section-head {
  padding-left: clamp(1.2rem, 5vw, 3rem);
  padding-right: clamp(1.2rem, 5vw, 3rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.market-card {
  padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1.2rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(204, 255, 0, 0.03), transparent 40%),
    var(--bg);
  transition: background 0.3s;
}

.market-card:last-child {
  border-right: 0;
}

.market-card:hover {
  background:
    linear-gradient(180deg, rgba(204, 255, 0, 0.08), transparent 55%),
    #080808;
}

.market-icon {
  width: 48px;
  height: 48px;
  color: var(--lime);
  margin-bottom: 1.4rem;
}

.market-icon svg {
  width: 100%;
  height: 100%;
}

.market-card h3 {
  font-family: var(--disp);
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.market-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* agents */
.agents {
  max-width: 1180px;
}

.agents-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(204, 255, 0, 0.07), transparent 60%),
    linear-gradient(135deg, #080808, #050505 60%);
}

.agent-list {
  list-style: none;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.agent-list li {
  color: var(--muted);
  padding-left: 0;
  font-size: 0.98rem;
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}

.agent-list span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  min-width: 4.5rem;
}

.agents-visual {
  display: grid;
  place-items: center;
  gap: 1.4rem;
  min-height: 320px;
}

.globe {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1;
}

.globe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(204, 255, 0, 0.28);
}

.globe-ring.r1 {
  animation: orbitSpin 14s linear infinite;
  border-style: dashed;
}

.globe-ring.r2 {
  inset: 12%;
  border-color: rgba(204, 255, 0, 0.45);
  animation: orbitSpin 9s linear infinite reverse;
}

.globe-ring.r3 {
  inset: 26%;
  border-color: rgba(204, 255, 0, 0.2);
  transform: rotateX(68deg) scaleY(0.55);
  animation: orbitPulse 3.2s ease-in-out infinite;
}

.globe-core {
  position: absolute;
  inset: 32%;
  display: grid;
  place-items: center;
}

.globe-core img {
  width: 100%;
  filter: drop-shadow(0 0 18px rgba(204, 255, 0, 0.5));
  animation: logoFloat 5s ease-in-out infinite;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  top: 50%;
  left: 50%;
}

.orbit-dot.d1 {
  animation: dotOrbit 14s linear infinite;
}

.orbit-dot.d2 {
  animation: dotOrbit 9s linear infinite reverse;
  width: 6px;
  height: 6px;
}

.orbit-dot.d3 {
  animation: dotOrbit 11s linear infinite;
  animation-delay: -3s;
  width: 5px;
  height: 5px;
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dotOrbit {
  from {
    transform: rotate(0deg) translateX(130px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(130px) rotate(-360deg);
  }
}

.mcp-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--lime-dim);
}

/* token */
.token-panel {
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(204, 255, 0, 0.06), transparent 35%),
    #070707;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.token-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.token-brand img {
  filter: drop-shadow(0 0 16px rgba(204, 255, 0, 0.4));
}

.token-brand h2 {
  margin-bottom: 0.15rem;
  color: var(--lime);
  letter-spacing: 0.08em;
}

.token-tag {
  color: var(--muted);
  font-size: 0.95rem;
}

.ca-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ca-row code {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  color: var(--text);
  background: rgba(204, 255, 0, 0.05);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.token-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* quote */
.quote-section {
  padding-top: 2rem;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

.quote p {
  font-family: var(--disp);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.quote footer a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.quote footer a:hover {
  text-decoration: underline;
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem clamp(1.2rem, 5vw, 3rem) 2.4rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-dot {
  color: var(--muted);
}

.footer-tick {
  color: var(--lime);
  font-family: var(--mono);
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
}

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

.footer-note {
  font-size: 0.75rem;
  color: #555a4a;
  max-width: 420px;
}

/* toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--lime);
  color: #050505;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.7rem 1.2rem;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.protocol-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.protocol-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.market-strip .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.market-strip .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.market-strip .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .market-strip {
    grid-template-columns: 1fr 1fr;
  }

  .market-card:nth-child(2) {
    border-right: 0;
  }

  .market-card:nth-child(1),
  .market-card:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .agents-stage {
    grid-template-columns: 1fr;
  }

  .agents-visual {
    order: -1;
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero-word {
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }

  .market-strip {
    grid-template-columns: 1fr;
  }

  .market-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }

  .market-card:last-child {
    border-bottom: 0;
  }

  .token-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .ca-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
