:root {
  --rh: #00c805;
  --rh-deep: #009b04;
  --rh-glow: rgba(0, 200, 5, 0.45);
  --black: #050805;
  --ink: #07110a;
  --card: #0c160f;
  --line: rgba(0, 200, 5, 0.18);
  --text: #f4f7f4;
  --muted: #9aa89d;
  --water: #06351c;
  --foam: rgba(180, 255, 210, 0.55);
  --nav-h: 72px;
  --river-h: 158px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--river-h);
}

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

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

button,
.btn {
  font-family: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
}

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.water-caustics {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(0, 200, 5, 0.18), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(0, 160, 120, 0.12), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(0, 200, 5, 0.1), transparent 45%);
  animation: causticShift 16s ease-in-out infinite alternate;
}

@keyframes causticShift {
  from { opacity: 0.7; filter: hue-rotate(0deg); }
  to { opacity: 1; filter: hue-rotate(12deg); }
}

.river-glow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--river-h);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 40, 18, 0.92), rgba(0, 80, 30, 0.35) 55%, transparent);
  box-shadow: 0 -40px 80px rgba(0, 200, 5, 0.08);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(5, 8, 5, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

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

.nav-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 200, 5, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.82rem;
}

.ca-pill:hover {
  border-color: var(--rh);
}

.ca-label {
  color: var(--rh);
  font-weight: 700;
}

.ca-value {
  font-family: ui-monospace, monospace;
  color: var(--muted);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.btn-buy {
  background: var(--rh);
  color: #041105 !important;
  padding: 10px 18px;
  box-shadow: 0 0 24px var(--rh-glow);
  transition: transform 0.15s, background 0.15s;
}

.btn-buy:hover {
  background: #13e21a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 18px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: end start;
  isolation: isolate;
  overflow: hidden;
}

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

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: url(#water-distort) saturate(1.15) contrast(1.05);
  transform: scale(1.04);
  animation: bannerDrift 22s ease-in-out infinite alternate;
}

@keyframes bannerDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, 1%, 0); }
}

.hero-banner-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 5, 0.35) 0%, rgba(5, 8, 5, 0.55) 45%, rgba(5, 8, 5, 0.92) 100%),
    radial-gradient(ellipse at 70% 40%, transparent 20%, rgba(0, 40, 12, 0.45) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(900px, calc(100% - 48px));
  padding: 80px 0 120px 28px;
}

.eyebrow {
  color: var(--rh);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.92;
  max-width: 10ch;
}

.glow-text {
  color: var(--rh);
  text-shadow: 0 0 32px var(--rh-glow);
}

.hero-lead {
  max-width: 46ch;
  color: #d7e6da;
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 22px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  max-width: 640px;
}

.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--rh);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-water-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(0, 80, 28, 0.55), transparent);
  z-index: 3;
  pointer-events: none;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #08140b;
  z-index: 3;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 40px;
  padding: 12px 0;
  width: max-content;
  animation: ticker 28s linear infinite;
  color: var(--rh);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

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

.section {
  position: relative;
  z-index: 3;
  padding: 96px 0;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  max-width: 46ch;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.about-copy p {
  color: #c9d6cc;
  line-height: 1.7;
  font-size: 1.05rem;
}

.about-copy em {
  color: var(--rh);
  font-style: normal;
  font-weight: 650;
}

.about-mascot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.about-mascot img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
}

.mascot-tag {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.mascot-ca {
  display: block;
  font-family: ui-monospace, monospace;
  color: var(--rh);
  font-size: 0.85rem;
}

.tweet-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  min-height: 280px;
}

.tweet-kicker {
  margin: 0 0 12px;
  color: var(--rh);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.twitter-tweet {
  margin: 0 auto !important;
  background: #000;
  border: 1px solid #2f3336 !important;
  border-radius: 16px;
  padding: 18px 18px 14px !important;
  color: #e7e9ea;
  font-size: 1.02rem;
  line-height: 1.5;
}

.twitter-tweet a {
  color: #1d9bf0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: linear-gradient(180deg, rgba(0, 200, 5, 0.08), rgba(12, 22, 15, 0.9));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  min-height: 210px;
  transition: transform 0.2s, border-color 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--rh);
}

.step-num {
  font-family: var(--display);
  color: var(--rh);
  font-size: 1.4rem;
}

.step h3 {
  margin: 16px 0 8px;
  font-size: 1.2rem;
}

.step p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.buy-bar {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #08150c;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
}

.buy-ca span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.buy-ca code {
  font-size: 1rem;
  margin-right: 10px;
}

.join-card {
  margin-top: 36px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.join-banner {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(1.1);
}

.join-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.join-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.join-body h3 {
  font-size: 1.4rem;
}

.join-body p {
  margin: 4px 0 0;
  color: var(--muted);
}

.join-body .btn {
  margin-left: auto;
}

.footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--rh);
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--river-h) + 16px);
  transform: translateX(-50%) translateY(20px);
  background: var(--rh);
  color: #041105;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: 0.25s ease;
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px 20px;
    background: rgba(5, 8, 5, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .about-grid,
  .steps,
  .footer-inner,
  .buy-bar,
  .hero-stats {
    grid-template-columns: 1fr;
    display: grid;
  }

  .join-body,
  .buy-bar,
  .footer-inner {
    display: grid;
  }

  .join-body .btn {
    margin-left: 0;
  }

  .hero-inner {
    padding: 48px 20px 100px;
  }

  :root {
    --river-h: 108px;
  }
}

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

  .hero-banner-img {
    filter: none;
  }
}
