:root {
  --lime: #ccff00;
  --banana: #ccff00;
  --banana-deep: #a8d600;
  --gold: #8fb800;
  --cream: #edff99;
  --cream-2: #e0ff66;
  --ink: #142000;
  --ink-soft: #2f4a00;
  --muted: #56701a;
  --green: #8fd400;
  --white: #f7ffe6;
  --shadow: 0 18px 50px rgba(40, 70, 0, 0.16);
  --radius: 22px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(204, 255, 0, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(204, 255, 0, 0.4), transparent 50%),
    linear-gradient(180deg, #d8ff33 0%, var(--lime) 32%, #c2f200 68%, #b8e800 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
.mobile-nav,
main,
.site-footer,
.lightbox {
  position: relative;
  z-index: 2;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  z-index: 40;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(204, 255, 0, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(40, 70, 0, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  animation: bob 3.2s ease-in-out infinite;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:not(.nav-cta) {
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav a:not(.nav-cta):hover {
  color: var(--ink);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--banana) 0%, var(--banana-deep) 100%);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(140, 190, 0, 0.4);
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(140, 190, 0, 0.5);
}

.btn-ghost {
  background: rgba(255, 253, 246, 0.2);
  border: 1.5px solid rgba(255, 253, 246, 0.55);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 253, 246, 0.32);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  padding: 10px;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-btn.open span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-btn.open span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(204, 255, 0, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(40, 70, 0, 0.12);
}

.mobile-nav a {
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.mobile-nav[hidden] {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  color: var(--white);
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 10, 0, 0.15) 0%, rgba(20, 10, 0, 0.25) 40%, rgba(18, 8, 0, 0.78) 100%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(245, 197, 24, 0.25), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 92vw);
  text-align: center;
  padding: 0 1rem calc(5.5rem + env(safe-area-inset-bottom));
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
  width: clamp(88px, 16vw, 128px);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  animation: bob 3.2s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.hero-ticker {
  margin: 0.65rem 0 0;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-2);
}

.hero-lede {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: rgba(255, 253, 246, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 28px;
  height: 42px;
  border: 2px solid rgba(255, 253, 246, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--banana);
  animation: drip 1.6s ease-in-out infinite;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-inner {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
  align-items: start;
}

.about-lead {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink-soft);
  line-height: 1.65;
}

.about-lead strong {
  color: var(--ink);
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-points li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--banana);
}

.about-points strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.about-points span {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Thesis */
.thesis {
  background:
    linear-gradient(180deg, transparent, rgba(204, 255, 0, 0.35) 40%, transparent);
}

.thesis-rows {
  margin-top: 2.75rem;
  display: grid;
  gap: 0;
}

.thesis-rows article {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(80, 50, 0, 0.12);
}

.thesis-rows article:last-child {
  border-bottom: 1px solid rgba(80, 50, 0, 0.12);
}

.thesis-rows .num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--banana-deep);
  line-height: 1;
  align-self: start;
  padding-top: 0.15rem;
}

.thesis-rows h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.thesis-rows p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

/* Token */
.token-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.45), transparent 45%),
    linear-gradient(145deg, #e8ff66, #ccff00 55%, #b8e800);
  box-shadow: var(--shadow);
}

.token-copy h2 {
  margin-bottom: 0.75rem;
}

.token-copy > p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 28rem;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin: 0 0 1.75rem;
}

.specs div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.specs dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.specs-ca {
  grid-column: 1 / -1;
}

.specs-ca dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.specs-ca code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-all;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
}

.copy-btn {
  border: 0;
  cursor: pointer;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--lime);
  transition: transform 0.2s ease, background 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: var(--green);
  color: var(--ink);
}

.token-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.token-visual img {
  width: clamp(160px, 28vw, 240px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(80, 40, 0, 0.25));
  animation: bob 3.2s ease-in-out infinite;
}

.orbit {
  position: absolute;
  width: min(90%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(180, 120, 0, 0.35);
  animation: spin 28s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2);
}

.orbit::before {
  top: 8%;
  left: 50%;
}

.orbit::after {
  bottom: 12%;
  right: 10%;
  background: var(--banana-deep);
  box-shadow: 0 0 0 4px rgba(224, 168, 0, 0.25);
}

/* Gallery */
.gallery-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: #1a1208;
  aspect-ratio: 1;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 10px 28px rgba(40, 24, 0, 0.12);
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(40, 24, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* CTA */
.cta {
  padding-top: 2rem;
}

.cta-inner {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(160deg, rgba(26, 18, 8, 0.92), rgba(60, 35, 0, 0.9)),
    url("banner.png") center / cover;
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-inner img {
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  animation: bob 3.2s ease-in-out infinite;
}

.cta-inner h2 {
  color: var(--white);
}

.cta-inner p {
  margin: 0.85rem auto 1.5rem;
  max-width: 28rem;
  color: rgba(255, 248, 231, 0.85);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  width: min(1100px, 90vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner .brand {
  color: var(--ink);
}

.footer-inner a:last-child {
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--banana);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(12, 8, 0, 0.88);
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(920px, 88vw);
  max-height: 82vh;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 248, 231, 0.12);
  color: white;
  cursor: pointer;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

/* Reveal */
.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.visible {
  opacity: 1;
  transform: none;
}

/* Animations */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.2%, 1%); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drip {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

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

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .token-panel {
    grid-template-columns: 1fr;
  }

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

  .token-visual {
    order: -1;
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero-content {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .lightbox-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
