:root {
  /* core palette */
  --red:        #C8102E;
  --red-bright: #E63946;
  --red-deep:   #8B0A1F;
  --bg:         #0A0A0A;
  --bg-elev:    #141414;
  --cream:      #F5F1E8;
  --cream-dim:  #BFBAB0;
  --gold:       #D4A24C;
  --line:       rgba(245, 241, 232, 0.12);

  /* typography */
  --font-display: 'Anton', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* shadows */
  --shadow-red:  0 0 40px rgba(200, 16, 46, 0.35);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ============ RESET + BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--cream);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, button, textarea { font-family: inherit; }

h1, h2 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 0.9;
  font-weight: 400;
}
.mono { font-family: var(--font-mono); }
.icon { flex-shrink: 0; }

/* ============ DIVIDER STRIPE ============ */
.bandana-bar {
  width: 100%;
  height: 2px;
  background: var(--red);
}
.nav-wrap .bandana-bar { height: 2px; }

/* ============ EYEBROW ============ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  margin-bottom: 18px;
}

/* ============ NAV ============ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.nav-logo .dollar { color: var(--red); }

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--red);
  padding: 8px 14px;
  border-radius: 0;
  color: var(--cream);
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
  z-index: 10;
}
.ca-pill:hover { background: var(--red); color: var(--cream); }
.ca-pill-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.nav-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  border: 1px solid var(--line);
  background: transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  position: relative;
  z-index: 10;
}
.social-btn:hover {
  color: var(--cream);
  border-color: var(--red);
  background: var(--red);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  position: relative;
  z-index: 10;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}
.btn-secondary:hover {
  background: var(--red);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn-block { width: 100%; }
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--cream-dim);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 0;
  transition: color 0.15s ease;
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn-tertiary:hover { color: var(--red); }

/* ============ HERO ============ */
.hero {
  padding: 60px 28px 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 56px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 128px);
  line-height: 0.85;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.hero-headline .red { color: var(--red); }
.hero-headline .line { display: block; }

.hero-subline {
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--cream-dim);
  letter-spacing: 0.02em;
}

.ca-box {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--red);
  color: var(--cream);
  transition: background 0.15s ease;
  cursor: pointer;
  position: relative;
  z-index: 10;
}
.ca-box:hover { background: rgba(200, 16, 46, 0.1); }
.ca-box .ca-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--cream);
}
.ca-box .icon { color: var(--cream-dim); transition: color 0.15s ease; }
.ca-box:hover .icon { color: var(--red); }
.ca-box.bounce { animation: ca-bounce 0.4s ease; }
@keyframes ca-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.hero-ctas {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-pfp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-pfp-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  align-self: flex-start;
}

/* ============ SECTION HEADER ============ */
.section {
  padding: 100px 28px;
  position: relative;
  z-index: 5;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 56px;
  text-align: left;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.section-sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--cream-dim);
  font-weight: 500;
}

/* ============ PFP MAKER (in hero, right column) ============ */
.pfp-card {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
}
.pfp-canvas-wrap { display: flex; justify-content: center; }
.pfp-canvas {
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 500px;
  border: 1px dashed var(--line);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.pfp-canvas.drag-over {
  border-color: var(--red);
  background: rgba(200, 16, 46, 0.06);
}
.pfp-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--cream-dim);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.pfp-placeholder svg { color: var(--cream-dim); opacity: 0.5; }
.pfp-canvas.has-image .pfp-placeholder { display: none; }

.pfp-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slider-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--red);
  letter-spacing: 0;
}

.upload-btn {
  width: 100%;
  padding: 20px;
  background: var(--bg);
  border: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
  z-index: 10;
}
.upload-btn .icon { color: var(--cream-dim); transition: color 0.15s ease; }
.upload-btn:hover {
  border-color: var(--red);
  background: rgba(200, 16, 46, 0.06);
}
.upload-btn:hover .icon { color: var(--red); }
.upload-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Red slider */
.rainbow-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  outline: none;
  cursor: pointer;
}
.rainbow-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--red);
  border: 0;
  cursor: grab;
  transition: transform 0.15s ease;
}
.rainbow-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.rainbow-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.rainbow-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--red);
  border: 0;
  cursor: grab;
}

.reset-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--cream-dim);
  padding: 4px 0;
  transition: color 0.15s ease;
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.reset-link:hover { color: var(--red); }

.control-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* ============ RECRUITS CAROUSEL ============ */
.recruits-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.recruits-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.recruits-row.is-dragging .recruit-card { pointer-events: none; }
.recruits-row::-webkit-scrollbar { display: none; }
.recruit-card img { pointer-events: none; -webkit-user-drag: none; }
.recruit-card {
  flex: 0 0 auto;
  width: 280px;
  height: 280px;
  scroll-snap-align: start;
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elev);
  transition: border-color 0.2s ease;
}
.recruit-card:hover { border-color: var(--red); }
.recruit-card img { width: 100%; height: 100%; object-fit: cover; }
.recruit-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.recruit-card:hover .recruit-actions { opacity: 1; }
.recruit-action-btn {
  width: 32px;
  height: 32px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--red);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.recruit-action-btn:hover { background: var(--red); }
.recruits-count {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============ MANIFESTO ============ */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tenet {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}
.tenet:hover {
  box-shadow: inset 0 0 0 1px var(--red), var(--shadow-red);
  background: var(--bg-elev);
}
.tenet-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
}
.tenet-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.tenet-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cream-dim);
  line-height: 1.5;
}

.manifesto-quote {
  margin-top: 72px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.manifesto-disclaimer {
  margin-top: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.06em;
}

/* ============ MEMES ============ */
.memes-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.memes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.meme-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: var(--bg-elev);
  position: relative;
}
.meme-card:hover {
  border-color: var(--red);
  transform: scale(1.02);
}
.meme-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.meme-cta {
  margin-top: 32px;
  width: 100%;
  display: block;
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--red);
  text-align: center;
  transition: background 0.15s ease;
  cursor: pointer;
}
.meme-cta:hover { background: rgba(200, 16, 46, 0.1); }
.meme-cta-title {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.meme-cta-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* lightbox dialog */
.lightbox {
  background: transparent;
  border: 0;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
  border: 1px solid var(--red);
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  border: 0;
  cursor: pointer;
}

/* ============ JOIN ============ */
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.join-tile {
  height: 240px;
  background: var(--bg-elev);
  border: 1px solid var(--red);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.join-tile:hover { background: var(--red); }
.join-tile:hover .join-tile-sub { color: var(--cream); }
.join-tile svg {
  width: 36px;
  height: 36px;
  color: var(--cream);
}
.join-tile-label {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.join-tile-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.join-steps {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.join-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
}
.step-label {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.step-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.step-arrow {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 20px;
}
.join-note {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.06em;
  text-align: center;
}

/* ============ FOOTER ============ */
.footer-wrap { margin-top: 80px; }
.footer {
  padding: 48px 28px 32px;
  text-align: center;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-line {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.06em;
}
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--cream-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.back-to-top:hover { color: var(--cream); border-color: var(--red); background: var(--red); }

/* ============ TOAST ============ */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--red);
  color: var(--cream);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), var(--shadow-red);
  animation: toast-in 0.2s ease;
}
.toast.toast-out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(16px); }
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1023px) {
  .hero-inner { gap: 32px; }
  .memes-grid { grid-template-columns: repeat(3, 1fr); }
  .recruit-card { width: 240px; height: 240px; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 48px 20px 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-text { order: 1; }
  .hero-pfp { order: 2; }
  .pfp-canvas { max-width: 380px; }
  .manifesto-grid { grid-template-columns: repeat(2, 1fr); }
  .join-grid { grid-template-columns: repeat(2, 1fr); }
  .join-steps { flex-direction: column; align-items: stretch; gap: 8px; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
}

@media (max-width: 768px) {
  .nav { padding: 12px 16px; gap: 10px; }
  .ca-pill { display: none; }
  .social-btn { width: 32px; height: 32px; }

  .section { padding: 64px 20px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }

  .recruit-card { width: 200px; height: 200px; }

  .manifesto-grid { grid-template-columns: 1fr; }
  .tenet { padding: 28px; }

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

  .join-grid { grid-template-columns: 1fr; }
  .join-tile { height: 180px; padding: 22px; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 22px; }
}
