:root {
  --bg: #050806;
  --ink: #f4ffe9;
  --muted: #b6c6a3;
  --green: #6dff57;
  --dark-green: #17351c;
  --yellow: #e9d66b;
  --panel: rgba(5, 12, 6, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.hero-bg,
.shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shade {
  z-index: -2;
  background:
    radial-gradient(circle at 74% 42%, rgba(109, 255, 87, 0.16), transparent 26rem),
    linear-gradient(90deg, rgba(5, 8, 6, 0.95), rgba(5, 8, 6, 0.55) 46%, rgba(5, 8, 6, 0.92)),
    linear-gradient(to bottom, rgba(5, 8, 6, 0.35), rgba(5, 8, 6, 0.96));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(109, 255, 87, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 255, 87, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: clamp(1rem, 2vw, 1.5rem);
  padding: 0.72rem;
  border: 1px solid rgba(109, 255, 87, 0.42);
  border-radius: 999px;
  background: rgba(4, 10, 5, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links a,
.buttons a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 1000;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(109, 255, 87, 0.42);
}

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

.nav-links a,
.buttons a {
  display: grid;
  place-items: center;
  min-width: 92px;
  height: 44px;
  border: 1px solid rgba(109, 255, 87, 0.38);
  border-radius: 999px;
  background: rgba(109, 255, 87, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a:hover,
.buttons a:hover {
  color: #061006;
  background: var(--green);
}

.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.2rem, 5vw, 5rem);
}

.logo-wrap {
  justify-self: center;
  position: relative;
  width: min(34vw, 420px);
  min-width: 250px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo-wrap::before,
.logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(109, 255, 87, 0.62);
  animation: rotate 18s linear infinite;
}

.logo-wrap::after {
  inset: 9%;
  border-style: solid;
  opacity: 0.45;
  animation-direction: reverse;
  animation-duration: 12s;
}

.logo-wrap img {
  width: 78%;
  height: 78%;
  object-fit: cover;
  border: 3px solid var(--green);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(109, 255, 87, 0.08),
    0 0 70px rgba(109, 255, 87, 0.5),
    0 34px 110px rgba(0, 0, 0, 0.65);
  animation: float 3.5s ease-in-out infinite;
}

.title-block {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-size: clamp(5.2rem, 14vw, 13rem);
  font-weight: 1000;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  color: #ffffff;
  text-shadow:
    0 0 14px rgba(109, 255, 87, 0.8),
    0 0 42px rgba(109, 255, 87, 0.45);
  animation: title-shift 2.6s ease-in-out infinite;
}

.bio {
  max-width: 640px;
  margin: 1.35rem 0 0;
  color: #e9ffdb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.buttons a:first-child {
  color: #061006;
  background: var(--green);
}

.marquee {
  border-top: 1px solid rgba(109, 255, 87, 0.42);
  border-bottom: 1px solid rgba(109, 255, 87, 0.42);
  background: rgba(5, 12, 6, 0.84);
  overflow: hidden;
}

.marquee div {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 0.82rem 1rem;
  animation: move 19s linear infinite;
}

.marquee span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lore-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 1.22fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.2rem, 4vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 18%, rgba(109, 255, 87, 0.11), transparent 22rem),
    linear-gradient(90deg, rgba(109, 255, 87, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(109, 255, 87, 0.05) 1px, transparent 1px),
    #071007;
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.lore {
  max-width: 680px;
}

h2 {
  font-size: clamp(3.8rem, 8vw, 8rem);
  color: var(--yellow);
  text-shadow: 0 0 34px rgba(233, 214, 107, 0.24);
}

.lore p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.72;
}

.chart-panel {
  border: 1px solid rgba(109, 255, 87, 0.36);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.chart-head,
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.chart-head {
  border-bottom: 1px solid rgba(109, 255, 87, 0.22);
}

.chart-foot {
  border-top: 1px solid rgba(109, 255, 87, 0.22);
}

.chart-head b {
  color: var(--green);
}

.chart {
  position: relative;
  min-height: 440px;
  overflow: hidden;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(109, 255, 87, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(109, 255, 87, 0.075) 1px, transparent 1px);
  background-size: 52px 52px;
}

.chart svg {
  position: absolute;
  inset: 9% 5%;
  width: 90%;
  height: 78%;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glow {
  stroke: rgba(109, 255, 87, 0.25);
  stroke-width: 22;
  filter: blur(8px);
}

.line {
  stroke: var(--green);
  stroke-width: 7;
  stroke-dasharray: 1080;
  stroke-dashoffset: 1080;
  filter: drop-shadow(0 0 15px rgba(109, 255, 87, 0.75));
  animation: draw 3s ease-in-out infinite alternate;
}

.bar {
  position: absolute;
  bottom: 17%;
  width: 18px;
  border-radius: 8px 8px 0 0;
  background: rgba(109, 255, 87, 0.72);
  box-shadow: 0 0 18px rgba(109, 255, 87, 0.42);
  transform-origin: bottom;
  animation: candle 1.8s ease-in-out infinite;
}

.b1 { left: 14%; height: 74px; animation-delay: 0s; }
.b2 { left: 27%; height: 120px; animation-delay: 0.16s; }
.b3 { left: 40%; height: 88px; animation-delay: 0.32s; }
.b4 { left: 54%; height: 156px; animation-delay: 0.48s; }
.b5 { left: 68%; height: 132px; animation-delay: 0.64s; }
.b6 { left: 82%; height: 214px; animation-delay: 0.8s; }

.price {
  position: absolute;
  right: 1rem;
  top: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(109, 255, 87, 0.38);
  border-radius: 999px;
  color: #061006;
  background: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 1000;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.02); }
}

@keyframes title-shift {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(10px) skewX(-4deg); }
  70% { transform: translateX(-4px) skewX(2deg); }
}

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

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes candle {
  0%, 100% { transform: scaleY(0.82); opacity: 0.7; }
  50% { transform: scaleY(1.06); opacity: 1; }
}

@media (max-width: 860px) {
  .nav,
  .nav-links,
  .buttons,
  .chart-head,
  .chart-foot {
    flex-wrap: wrap;
  }

  .hero-content,
  .lore-page {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .logo-wrap {
    width: min(74vw, 360px);
    min-width: 0;
  }

  h1 {
    font-size: clamp(4.3rem, 21vw, 8rem);
  }

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