:root {
  --bg: #040708;
  --bg-alt: #0a1518;
  --panel: rgba(7, 17, 19, 0.85);
  --panel-border: rgba(63, 255, 160, 0.18);
  --green: #36ff9c;
  --green-dark: #18a05f;
  --text: #e1fff2;
  --muted: #7de6b3;
  --accent: #b2ff5d;
  --pink: #ff73d9;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  --scroll-glow: 0;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Invulnerable BB', 'Arial Black', system-ui, sans-serif;
  background: radial-gradient(circle at top, rgba(54, 255, 156, 0.18), transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.scanlines,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.08;
  z-index: 1;
}

.scanlines {
  background-image: repeating-linear-gradient(0deg, rgba(3, 255, 138, 0.06) 0, rgba(3, 255, 138, 0.06) 1px, transparent 1px, transparent 3px);
}

.noise {
  background-image: var(--noise);
}

.hero {
  position: relative;
  padding: 2rem clamp(1.5rem, 8vw, 6rem) 4rem;
  background: linear-gradient(135deg, rgba(6, 19, 23, 0.95), rgba(5, 10, 12, 0.9));
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 80%;
  background: radial-gradient(circle, rgba(54, 255, 156, 0.6), transparent 60%);
  opacity: calc(0.15 + var(--scroll-glow) * 0.6);
  pointer-events: none;
  filter: blur(30px);
  z-index: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.logo {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nav-links a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(54, 255, 156, 0.15);
  color: var(--accent);
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

.hero__copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin: 0.4rem 0 1rem;
}

.hero__copy h1 span {
  color: var(--green);
  text-shadow: 0 0 18px rgba(54, 255, 156, 0.5);
}

.tagline {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.8rem;
}

.cta {
  margin: 2rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  font-family: inherit;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.8rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: transparent;
  color: var(--text);
}

.btn.primary {
  background: var(--green);
  color: #06140d;
  box-shadow: 0 8px 25px rgba(54, 255, 156, 0.35);
}

.btn.ghost:hover,
.btn.primary:hover {
  transform: translateY(-3px);
}

.btn.active {
  box-shadow: 0 0 20px rgba(54, 255, 156, 0.6);
  transform: scale(1.02);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.5);
}

.btn.icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-color: rgba(255, 255, 255, 0.2);
  padding-inline: 1.2rem;
}

.btn.icon img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.contract-card {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 25px rgba(54, 255, 156, 0.08);
}

.contract-hint {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.contract-copy {
  width: 100%;
  border: 1px solid rgba(54, 255, 156, 0.5);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  background: linear-gradient(120deg, rgba(7, 31, 23, 0.8), rgba(3, 56, 34, 0.85));
  color: var(--text);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contract-copy:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(54, 255, 156, 0.35);
}

.contract-copy:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 10px 25px rgba(4, 12, 8, 0.8);
}

.contract-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--muted);
}

.contract-address {
  font-size: clamp(1rem, 3vw, 1.3rem);
  word-break: break-all;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(54, 255, 156, 0.45);
}

.contract-feedback {
  min-height: 1.2em;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--pink);
}

.hero__fred {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__fred img {
  width: clamp(240px, 35vw, 520px);
  max-height: 480px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 35px rgba(54, 255, 156, 0.35));
}

main {
  padding: 3rem clamp(1.5rem, 8vw, 6rem) 4rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  margin-bottom: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(54, 255, 156, 0.15), transparent 50%);
  pointer-events: none;
}

.panel__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.panel h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.about-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.about-list li {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.panel--stats {
  background: linear-gradient(135deg, rgba(4, 10, 12, 0.9), rgba(3, 40, 24, 0.9));
}

.stats-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: -40% 10% auto 10%;
  height: 120%;
  background: radial-gradient(circle, rgba(54, 255, 156, 0.2), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  margin: 0;
  color: var(--accent);
}

.stat-meta {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.gallery-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.1);
  transition: transform 0.4s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(54, 255, 156, 0.3);
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  left: -9px;
  top: 4px;
  box-shadow: 0 0 10px rgba(54, 255, 156, 0.8);
}

.timeline__year {
  display: inline-block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--accent);
}

.panel--callout {
  background: linear-gradient(120deg, rgba(4, 10, 12, 0.9), rgba(10, 40, 25, 0.95));
  text-align: center;
}

.callout__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0;
}

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

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.to-top {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--accent);
}

[data-float] {
  will-change: transform;
  transition: transform 0.2s ease;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@keyframes spark {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    justify-content: flex-start;
  }

  .cta {
    flex-direction: column;
  }

  .gallery-grid img {
    height: 200px;
  }
}

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