/* =============================================
   KOHIBIT — Landing Page Styles
   ============================================= */

:root {
  --bg: #07070b;
  --bg2: #0c0c14;
  --brute: #FF6B6B;
  --scout: #74B9FF;
  --ranger: #55EFC4;
  --hoarder: #FECA57;
  --text: #e8e8ee;
  --text-dim: rgba(255,255,255,0.35);
  --shadow-blue: #1B3A7A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  cursor: default;
}

/* === LOADER === */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#loader-canvas { width: 600px; height: 200px; }

/* === AMBIENT CANVAS === */
#ambient-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  opacity: 0.4;
}

/* === GLOBAL === */
.content { position: relative; z-index: 1; }

section {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  padding: 80px 40px;
  position: relative;
}

/* === HERO === */
#hero {
  min-height: 100vh;
  text-align: center;
  justify-content: center;
  padding-top: 0;
}
#hero-logo-canvas { width: 700px; max-width: 90vw; height: 180px; margin-bottom: 30px; }
.hero-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px; font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 6px; text-transform: uppercase;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 1s ease 0.5s forwards;
}
.hero-cta {
  margin-top: 50px; opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}
.hero-cta a {
  display: inline-block; padding: 16px 48px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 60px;
  color: var(--text); font-size: 16px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.03);
}
.hero-cta a:hover {
  border-color: var(--ranger);
  color: var(--ranger);
  box-shadow: 0 0 40px rgba(85,239,196,0.15);
}
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  opacity: 0; animation: fadeUp 1s ease 1.5s forwards;
  display: flex; align-items: center; justify-content: center;
}
.scroll-arrow {
  animation: bounceDown 2s ease infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(10px); opacity: 0.2; }
}

/* === WHAT IS === */
#what-is { position: relative; }
#what-is .content-inner {
  max-width: 800px; text-align: center;
}
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 5px;
  text-transform: uppercase; color: var(--ranger);
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(36px, 5vw, 64px);
  color: #fff; margin-bottom: 30px;
  line-height: 1.1;
}
.section-body {
  font-size: 20px; line-height: 1.7;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}
.section-body strong { color: rgba(255,255,255,0.85); font-weight: 500; }
#mini-arena {
  width: 100%; max-width: 700px; height: 350px;
  margin: 50px auto 0;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  position: relative;
}
#mini-arena canvas { width: 100%; height: 100%; }

/* === SPECIES === */
#species { padding: 60px 0; min-height: auto; overflow: hidden; align-items: stretch; }
.species-header { text-align: center; margin-bottom: 60px; padding: 0 40px; }
.species-grid {
  display: flex; width: 400vw; overflow: visible;
  will-change: transform;
}
.species-card {
  width: 100vw; min-height: 80vh;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; position: relative;
  padding: 40px;
}
.species-card canvas { width: 280px; height: 280px; margin-bottom: 30px; }
.species-name {
  font-family: 'Luckiest Guy', cursive;
  font-size: 72px; margin-bottom: 8px;
}
.species-tagline {
  font-size: 22px; font-style: italic;
  color: rgba(255,255,255,0.4); font-weight: 300;
  margin-bottom: 40px;
}
.stat-bars { width: 100%; max-width: 500px; }
.stat-row {
  display: flex; align-items: center; margin-bottom: 18px;
  gap: 16px;
}
.stat-label {
  width: 100px; text-align: right;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.stat-track {
  flex: 1; height: 8px; background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden; position: relative;
}
.stat-fill {
  height: 100%; border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  width: 0;
}
.stat-val {
  width: 36px; font-size: 14px; font-weight: 700;
  font-family: 'Space Grotesk', monospace;
}

/* Species navigation */
.species-nav {
  display: flex; justify-content: center; gap: 16px;
  padding: 30px 0 60px;
}
.species-nav button {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent; cursor: pointer;
  transition: all 0.3s ease;
}
.species-nav button.active { transform: scale(1.3); }

/* === ARENA TEASER === */
#arena-teaser {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.arena-frame {
  width: 90%; max-width: 900px; height: 500px;
  margin: 40px auto;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  position: relative;
  overflow: hidden;
}
.arena-frame canvas { width: 100%; height: 100%; }
.arena-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(7,7,11,0.95) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 50px;
}
.arena-overlay p {
  font-family: 'Luckiest Guy', cursive;
  font-size: 36px; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.arena-stats {
  display: flex; gap: 60px; justify-content: center;
  margin-top: 40px;
}
.arena-stat { text-align: center; }
.arena-stat .num {
  font-family: 'Space Grotesk', monospace;
  font-size: 42px; font-weight: 700; color: #fff;
}
.arena-stat .lbl {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim); margin-top: 6px;
}

/* === CTA === */
#cta {
  text-align: center;
  min-height: 80vh;
}
.cta-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(42px, 6vw, 80px);
  color: #fff; margin-bottom: 20px;
}
.cta-sub {
  font-size: 20px; color: var(--text-dim); font-weight: 300;
  margin-bottom: 50px;
}
.email-form {
  display: flex; gap: 0; max-width: 480px; margin: 0 auto 60px;
  border-radius: 60px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.email-form input {
  flex: 1; padding: 18px 28px;
  background: rgba(255,255,255,0.04);
  border: none; outline: none;
  color: #fff; font-size: 16px;
  font-family: 'DM Sans', sans-serif;
}
.email-form input::placeholder { color: rgba(255,255,255,0.2); }
.email-form button {
  padding: 18px 36px;
  background: var(--ranger);
  border: none; color: var(--bg);
  font-weight: 700; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.3s ease;
}
.email-form button:hover { background: #88fff0; }

.socials { display: flex; gap: 24px; justify-content: center; margin-top: 20px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); text-decoration: none;
  font-size: 18px; transition: all 0.3s ease;
}
.socials a:hover { border-color: var(--ranger); color: var(--ranger); }

/* === FOOTER === */
footer {
  text-align: center; padding: 40px;
  font-size: 13px; color: rgba(255,255,255,0.15);
  letter-spacing: 1px;
}

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  section { padding: 60px 24px; }
  .hero-tagline { font-size: 18px; letter-spacing: 3px; }
  #hero-logo-canvas { height: 120px; }
  .arena-stats { gap: 30px; flex-wrap: wrap; }
  .arena-stat .num { font-size: 28px; }
  .email-form { flex-direction: column; border-radius: 16px; }
  .email-form button { border-radius: 0 0 16px 16px; }
}
