/* ── Variables ───────────────────────────────────────────────────────── */
:root {
  --bg:         #0d0e0b;
  --bg-mid:     #111309;
  --bg-card:    #161810;
  --text:       #f0ebe0;
  --text-dim:   #9b9888;
  --green:      #3d6b32;
  --lime:       #8ec93d;
  --border:     rgba(240,235,224,0.09);
  --border-lit: rgba(240,235,224,0.18);

  --ff-disp: 'Bebas Neue', 'Arial Black', Impact, system-ui;
  --ff-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Grain overlay ───────────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 2.5rem;
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(13,14,11,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--ff-disp);
  font-size: 1.35rem;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-join {
  color: var(--text) !important;
  border: 1px solid var(--border-lit) !important;
  padding: .38rem 1.1rem !important;
  border-radius: 99px;
  transition: background .2s, color .2s, border-color .2s !important;
}
.nav-join:hover {
  background: var(--lime) !important;
  color: var(--bg) !important;
  border-color: var(--lime) !important;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 7rem 2.5rem 5rem;
  max-width: 1300px;
  margin: 0 auto;
}
.hero::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(61,107,50,.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner { max-width: 900px; }

.hero-tag {
  display: inline-block;
  font-family: var(--ff-disp);
  font-size: .82rem;
  letter-spacing: .28em;
  color: var(--lime);
  border: 1px solid var(--lime);
  padding: .28rem .9rem;
  border-radius: 2px;
  margin-bottom: 1.6rem;
  animation: fadeUp .5s ease both .1s;
}
.hero-title {
  font-family: var(--ff-disp);
  font-size: clamp(5.5rem, 20vw, 17rem);
  line-height: .88;
  letter-spacing: -.01em;
  margin-bottom: 1.6rem;
  animation: fadeUp .6s ease both .2s;
}
.hero-title span { display: block; }
.hero-title-alt {
  color: var(--lime);
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 2.8rem;
  animation: fadeUp .6s ease both .35s;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp .6s ease both .5s;
}
.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  text-decoration: none;
  animation: bounce 2.2s ease-in-out infinite;
  transition: color .2s;
}
.hero-scroll:hover { color: var(--lime); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2.1rem;
  border-radius: 3px;
  font-family: var(--ff-disp);
  font-size: 1.08rem;
  letter-spacing: .08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn--solid {
  background: var(--lime);
  color: var(--bg);
}
.btn--solid:hover {
  background: #a8e040;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(142,201,61,.28);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-lit);
}
.btn--outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ── Marquee ─────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  background: var(--green);
  padding: .75rem 0;
  border-top: 1px solid rgba(142,201,61,.15);
  border-bottom: 1px solid rgba(142,201,61,.15);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  white-space: nowrap;
  align-items: center;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--ff-disp);
  font-size: .95rem;
  letter-spacing: .18em;
  color: var(--text);
}
.marquee-track .dot {
  color: rgba(240,235,224,.45);
  font-size: .7rem;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 6.5rem 2.5rem; }
.values-section { background: var(--bg); }
.join-section    { background: var(--bg-mid); }
.mailing-section { background: var(--bg); }
.merch-section   { background: var(--bg-mid); }

.section-inner { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-family: var(--ff-disp);
  font-size: .8rem;
  letter-spacing: .32em;
  color: var(--lime);
  margin-bottom: .8rem;
}
.section-title {
  font-family: var(--ff-disp);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: .02em;
  margin-bottom: 3.5rem;
}

/* ── Values grid ─────────────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.value-card {
  background: var(--bg);
  padding: 2.2rem;
  transition: background .25s;
}
.value-card:hover { background: var(--bg-card); }
.value-number {
  font-family: var(--ff-disp);
  font-size: .8rem;
  letter-spacing: .22em;
  color: var(--lime);
  margin-bottom: 1.1rem;
}
.value-icon {
  width: 42px;
  height: 42px;
  color: var(--text-dim);
  margin-bottom: 1.3rem;
}
.value-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .7rem;
}
.value-card p {
  color: var(--text-dim);
  font-size: .93rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ── Join section ────────────────────────────────────────────────────── */
.join-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.join-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 300;
  margin-top: -1.5rem;
}
.join-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 4.5rem;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .2s, background .2s;
}
.step:hover {
  border-color: var(--lime);
  background: rgba(142,201,61,.04);
}
.step-num {
  font-family: var(--ff-disp);
  font-size: 2.2rem;
  color: var(--lime);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
}
.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.step-content p {
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.6;
}
code {
  font-family: 'DM Mono', monospace;
  background: rgba(142,201,61,.12);
  color: var(--lime);
  padding: .1em .42em;
  border-radius: 3px;
  font-size: .88em;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  padding: 5rem 2.5rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner { max-width: 500px; margin: 0 auto; }
.footer-brand {
  font-family: var(--ff-disp);
  font-size: 3.5rem;
  line-height: .95;
  letter-spacing: .06em;
  margin-bottom: 1.2rem;
}
.footer-tagline {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 300;
  margin-bottom: .6rem;
}
.footer-bio {
  font-size: .9rem;
  margin-bottom: 2rem;
}
.footer-fine {
  font-size: .75rem;
  color: var(--text-dim);
  opacity: .45;
}

/* ── Reveal animation ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease var(--delay, 0s), transform .65s ease var(--delay, 0s);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── Keyframes ───────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .nav { padding: 1rem 1.4rem; }
  .nav-links a:not(.nav-join) { display: none; }

  .hero { padding: 6rem 1.4rem 4rem; }
  .section { padding: 4.5rem 1.4rem; }

  .join-inner,
  .merch-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .join-steps { margin-top: 0; }

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

  .form-row { flex-direction: column; }
}

@media (max-width: 520px) {
  .values-grid { grid-template-columns: 1fr; }
  .hero-title  { font-size: clamp(4.5rem, 24vw, 7rem); }
}
