:root {
  --lime: #ccff00;
  --lime-dim: rgba(204, 255, 0, 0.12);
  --lime-glow: rgba(204, 255, 0, 0.45);
  --black: #050505;
  --ink: #0a0a0a;
  --surface: #0e0e0e;
  --line: rgba(204, 255, 0, 0.18);
  --text: #f2f2f0;
  --muted: rgba(242, 242, 240, 0.58);
  --font-display: "Orbitron", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.accent {
  color: var(--lime);
}

/* —— Atmosphere —— */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.04;
  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");
}

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

.moons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.moon {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -0.35em 0 0 0 var(--lime);
  opacity: 0.18;
  animation: float-moon 14s ease-in-out infinite;
}

.moon-a {
  width: 120px;
  height: 120px;
  top: 18%;
  right: 8%;
  animation-duration: 16s;
}

.moon-b {
  width: 64px;
  height: 64px;
  top: 55%;
  left: 6%;
  opacity: 0.12;
  animation-duration: 12s;
  animation-delay: -3s;
}

.moon-c {
  width: 40px;
  height: 40px;
  bottom: 18%;
  right: 18%;
  opacity: 0.22;
  animation-duration: 18s;
  animation-delay: -6s;
}

.moon-d {
  width: 28px;
  height: 28px;
  top: 32%;
  left: 22%;
  opacity: 0.1;
  animation-duration: 11s;
  animation-delay: -2s;
}

@keyframes float-moon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-28px) rotate(12deg);
  }
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 5, 5, 0.9);
}

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

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

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

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

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 0.78rem;
}

.btn-primary {
  background: var(--lime);
  color: #050505;
  box-shadow: 0 0 0 0 transparent;
}

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

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

.btn-ghost:hover {
  background: var(--lime-dim);
  transform: translateY(-2px);
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  overflow: hidden;
}

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

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72) contrast(1.08) saturate(1.15);
  transform: scale(1.04);
  animation: banner-drift 22s ease-in-out infinite alternate;
}

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

.hero-banner-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.2) 45%, rgba(5, 5, 5, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.15) 40%, rgba(5, 5, 5, 0.88) 100%),
    radial-gradient(ellipse 70% 55% at 30% 45%, rgba(204, 255, 0, 0.1), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.logo-orbit {
  position: relative;
  width: min(340px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: 72%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 32px rgba(204, 255, 0, 0.35));
  animation: logo-pulse 4.5s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 24px rgba(204, 255, 0, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 48px rgba(204, 255, 0, 0.55));
  }
}

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

.ring-1 {
  inset: 0;
  animation: spin 28s linear infinite;
  border-style: dashed;
}

.ring-2 {
  inset: 8%;
  animation: spin-rev 20s linear infinite;
  border-color: rgba(204, 255, 0, 0.22);
}

.ring-3 {
  inset: 16%;
  animation: spin 14s linear infinite;
  border-color: rgba(204, 255, 0, 0.15);
  border-top-color: var(--lime);
  border-right-color: transparent;
}

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

@keyframes spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

.hero-chain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.15s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.title-main {
  display: block;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: var(--lime);
  text-shadow: 0 0 40px rgba(204, 255, 0, 0.25);
}

.title-sub {
  display: block;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  color: #fff;
  letter-spacing: 0.28em;
  margin-top: 0.15em;
}

.hero-tag {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

.hero-lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

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

.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.65s forwards;
}

.ca-chip:hover {
  border-color: var(--lime);
  background: var(--lime-dim);
}

.ca-label {
  color: var(--lime);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.ca-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(42vw, 280px);
  color: var(--muted);
}

.ca-hint {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.ca-chip.copied .ca-hint,
.token-ca.copied .ca-hint {
  color: #fff;
}

.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 1px solid rgba(204, 255, 0, 0.35);
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 3px;
  height: 8px;
  background: var(--lime);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* —— Marquee —— */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--lime);
  color: #050505;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 0;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* —— Sections —— */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
}

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

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

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 0.85rem;
}

.section-lede {
  color: var(--muted);
  font-size: 1.02rem;
}

/* —— Mechanics flow —— */
.flow {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 0.35rem;
}

.flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0 1.35rem 1.5rem;
  transition: background 0.3s ease;
}

.flow-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 1.7rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime-glow);
}

.flow-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
  padding-top: 0.15rem;
}

.flow-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.flow-body p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.flow-body strong {
  color: var(--lime);
  font-weight: 600;
}

.flow-item-final {
  background: linear-gradient(90deg, var(--lime-dim), transparent 70%);
}

.flow-item-final .flow-body h3 {
  color: var(--lime);
}

/* —— About —— */
.about {
  max-width: 1200px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 1.25rem;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-copy strong {
  color: var(--text);
}

.about-muted {
  font-style: italic;
  color: rgba(242, 242, 240, 0.45) !important;
}

.about-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.about-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(204, 255, 0, 0.08);
  pointer-events: none;
}

.about-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease);
}

.about-banner:hover img {
  transform: scale(1.03);
}

/* —— Token —— */
.token-panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(204, 255, 0, 0.05), transparent 45%), var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.token-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.token-row:last-child {
  border-bottom: none;
}

.token-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.token-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.token-ca {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  text-align: left;
  transition: color 0.2s ease;
}

.token-ca code {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 2vw, 0.82rem);
  word-break: break-all;
  color: var(--text);
}

.token-ca:hover code {
  color: var(--lime);
}

.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* —— Footer —— */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.footer-brand span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 36rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.06s);
}

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

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .logo-orbit {
    width: min(260px, 68vw);
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .flow-item {
    grid-template-columns: 4rem 1fr;
    padding-left: 1.15rem;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.15rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav.open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .token-row,
  .token-row-ca {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .ca-value {
    max-width: 52vw;
  }
}

@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;
  }
}
