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

:root {
  --bg: #050309;
  --bg-alt: #120b16;
  --card: rgba(12, 5, 20, 0.9);
  --card-alt: rgba(22, 13, 29, 0.95);
  --accent: #ffcf3a;
  --accent-soft: rgba(255, 207, 58, 0.18);
  --accent-strong: #ffb300;
  --text-main: #f8e7c8;
  --text-muted: #b19c80;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --danger: #ff5c5c;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #221019 0, #050309 55%, #020106 100%);
  color: var(--text-main);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  z-index: -1;
}

/* Header */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  padding: 14px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 3, 9, 0.95), rgba(5, 3, 9, 0.35), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at top left, var(--accent-strong), var(--accent));
  color: #31160a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

/* Sections */

.section {
  position: relative;
  min-height: 100vh;
  padding: 100px 7vw 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-alt {
  background: radial-gradient(circle at top, #1a0f1f 0, #050309 60%);
}

.section-inner {
  max-width: 1120px;
  width: 100%;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(32px, 4vw, 40px);
  margin: 0 0 14px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
}

/* Hero */

.hero {
  gap: 40px;
  padding-top: 120px;
  flex-wrap: wrap;
}

.hero-media {
  flex: 1;
  min-width: min(420px, 100%);
  display: flex;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  max-width: 520px;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top, #ffcf3a, #3b1c12);
}

.hero-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 20%, rgba(255, 215, 117, 0.5), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Floating hex objects */

.hero-floating {
  position: absolute;
  width: 160px;
  height: 160px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 240, 165, 0.3), transparent 60%),
    linear-gradient(135deg, rgba(255, 207, 58, 0.4), rgba(255, 179, 0, 0.05));
  clip-path: polygon(25% 5%, 75% 5%, 95% 50%, 75% 95%, 25% 95%, 5% 50%);
  opacity: 0.22;
  filter: blur(1px);
}

.hex-1 {
  top: 16%;
  left: 5%;
  animation: float 10s ease-in-out infinite;
}

.hex-2 {
  bottom: 10%;
  right: 6%;
  animation: float 13s ease-in-out infinite;
}

.hex-3 {
  top: 55%;
  right: 38%;
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

.hero-content {
  flex: 1;
  min-width: min(360px, 100%);
  max-width: 520px;
}

.tagline {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

/* Buttons */

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.btn.primary {
  background: radial-gradient(circle at top left, #ffe88c, var(--accent-strong));
  color: #2d1305;
  box-shadow: 0 14px 30px rgba(255, 186, 0, 0.5);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(255, 186, 0, 0.7);
}

.btn.ghost {
  background: rgba(8, 2, 15, 0.7);
  color: var(--accent);
  border-color: rgba(255, 207, 58, 0.35);
}

.btn.ghost:hover {
  background: rgba(16, 7, 27, 0.95);
}

.btn.minimal {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.minimal:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--accent);
}

.btn.small {
  padding: 7px 14px;
  font-size: 11px;
}

/* Hero metrics */

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-radius: 18px;
  padding: 10px 14px;
  background: radial-gradient(circle at top, rgba(255, 207, 58, 0.12), rgba(3, 0, 8, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
  min-width: 110px;
}

.metric-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.metric-value {
  font-size: 15px;
}

/* About section */

.feature-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  line-height: 1.6;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

/* Lab strip */

.lab-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.lab-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.lab-card img {
  width: 100%;
  display: block;
}

.lab-caption {
  padding: 14px 16px 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(33, 20, 7, 0.95);
  border: 1px solid rgba(255, 207, 58, 0.3);
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

.pill-warn {
  border-color: rgba(255, 112, 112, 0.55);
  color: var(--danger);
}

.pill-safe {
  border-color: rgba(156, 255, 188, 0.45);
  color: #92ffbe;
}

/* Lore */

.section-lore {
  max-width: 1140px;
}

.lore-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1.2fr);
  gap: 26px;
}

.lore-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.bio-box {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.6;
}

.bio-box + .bio-box {
  margin-top: 10px;
}

.bio-box h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.bio-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bio-box li {
  margin-bottom: 6px;
}

.bio-box li span {
  color: var(--text-main);
}

/* Join */

.join-section {
  max-width: 980px;
}

.join-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.join-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(255, 207, 58, 0.28), rgba(7, 1, 18, 0.98));
  border: 1px solid rgba(255, 207, 58, 0.25);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  line-height: 1.6;
}

.join-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.join-card .btn.small {
  margin-top: 10px;
}


/* Wash my belly sticker in join section */

.join-section {
  max-width: 980px;
  position: relative;
}

.wash-belly {
  position: absolute;
  right: -20px;
  top: -60px;
  text-align: center;
  pointer-events: none;
  transform: scale(0.85);
}

.wash-belly-img {
  width: 220px;
  max-width: 32vw;
  filter: drop-shadow(0 0 24px rgba(255, 207, 58, 0.55));
  opacity: 0.96;
}

.wash-belly-text {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(0, 0, 0, 0.8);
  transform: rotate(-7deg);
}

/* Mobile: move sticker below content so it doesn't cover text */

@media (max-width: 768px) {
  .wash-belly {
  position: absolute;
  right: -20px;
  top: -60px;
  text-align: center;
  pointer-events: none;
  transform: scale(0.85);
}

  .wash-belly-img {
    width: 180px;
    max-width: 55vw;
  }

  .wash-belly-text {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(0, 0, 0, 0.8);
  transform: rotate(-7deg);
}
}


/* Footer */

.site-footer {
  padding: 18px 7vw 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 3, 9, 0.96);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.footer-inner a {
  color: var(--accent);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
  .site-header {
    padding-inline: 5vw;
  }
  .section {
    padding-inline: 5vw;
  }
  .hero {
    padding-top: 110px;
  }
  .lore-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 96px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .section {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 70px;
  }
  .site-header {
    flex-direction: row;
    gap: 10px;
  }
  .main-nav {
    gap: 12px;
    font-size: 11px;
  }
}


/* ============================================
   COMPACT JOIN THE SWARM SECTION
   ============================================ */
#join.section {
  min-height: auto !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

#join .join-section h2 {
  margin-top: 0 !important;
}

#join .join-grid {
  margin-top: 16px !important;
}

