@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #09070e;
  --panel: #15111d;
  --panel-2: #1b1426;
  --purple: #8b00ff;
  --purple-light: #b65cff;
  --yellow: #ffe600;
  --white: #fff;
  --muted: #c8c2d0;
  --line: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; 
  background: var(--bg); 
  color: var(--white);
  font-family: Inter, Arial, sans-serif; 
  line-height: 1.6; 
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.ambient { position: absolute; pointer-events: none; filter: blur(90px); opacity: .18; z-index: -1; border-radius: 50%; }
.ambient-purple { width: 360px; height: 360px; background: var(--purple); top: 100px; left: -150px; }
.ambient-yellow { width: 240px; height: 240px; background: var(--yellow); top: 350px; right: -150px; opacity: .08; }

/* Site Header */
.site-header { 
  min-height: 100px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 20px; 
  border-bottom: 1px solid var(--line); 
}

.brand img { display: block; width: 150px; height: auto; max-height: 76px; object-fit: contain; }

.site-header nav { 
  display: flex; 
  align-items: center; 
  flex-wrap: wrap;
  gap: 10px; 
  font-size: .84rem; 
  font-weight: 700; 
}

/* ==========================================================
   HEADER ACTION BUBBLE BUTTONS (ALL 5 VARIANTS)
   ========================================================== */
.nav-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 700;
  font-size: .82rem;
  transition: all .2s ease;
  white-space: nowrap;
}

/* 1. Community - Cyan / Sky Blue */
.nav-btn-community {
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}
.nav-btn-community:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

/* 2. Games - Mint Emerald Green */
.nav-btn-games {
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}
.nav-btn-games:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

/* 3. MissingPiecePuzzles - Coral Orange */
.nav-btn-puzzles {
  color: #ff7849 !important;
  border: 1px solid rgba(255, 120, 73, 0.45);
  background: rgba(255, 120, 73, 0.08);
}
.nav-btn-puzzles:hover {
  border-color: #ff7849;
  background: rgba(255, 120, 73, 0.2);
  box-shadow: 0 0 16px rgba(255, 120, 73, 0.35);
  transform: translateY(-2px);
}

/* 4. Gorilla Therapy - Electric Purple */
.nav-btn-therapy {
  color: var(--purple-light) !important;
  border: 1px solid rgba(182, 92, 255, 0.45);
  background: rgba(139, 0, 255, 0.08);
}
.nav-btn-therapy:hover {
  border-color: var(--purple-light);
  background: rgba(139, 0, 255, 0.2);
  box-shadow: 0 0 16px rgba(182, 92, 255, 0.35);
  transform: translateY(-2px);
}

/* 5. Shop - Banana Gold */
.nav-btn-shop { 
  color: var(--yellow) !important; 
  border: 1px solid rgba(255,230,0,.5); 
  background: rgba(255,230,0,.06);
}
.nav-btn-shop:hover {
  border-color: var(--yellow);
  background: rgba(255,230,0,.18);
  box-shadow: 0 0 16px rgba(255,230,0,.35);
  transform: translateY(-2px);
}

.footer-links a:hover { color: var(--yellow); }

/* Hero Section */
.hero { text-align: center; padding: 94px 0 76px; }
.eyebrow, .card-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .18em; color: var(--yellow); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid rgba(255,230,0,.28); border-radius: 999px; background: rgba(255,230,0,.045); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }

h1, h2, .footer-brand { font-family: 'Barlow Condensed', Impact, sans-serif; text-transform: uppercase; line-height: .98; }
h1 { font-size: clamp(3.4rem, 9vw, 7.3rem); letter-spacing: -.025em; margin: 26px 0 14px; }
h1 span { color: var(--yellow); text-shadow: 0 0 35px rgba(255,230,0,.12); }
.hero-copy { color: var(--purple-light); font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 800; margin: 0 0 12px; }
.hero-text { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 1.02rem; }

/* ==========================================================
   HERO 4-CARD HUB BUTTONS
   ========================================================== */
.hero-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 2.2rem 0 1.5rem 0;
  width: 100%;
}

.hero-hub-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.hero-hub-card:hover {
  transform: translateY(-4px);
  border-color: #f5b324;
  background: rgba(245, 179, 36, 0.08);
  box-shadow: 0 8px 24px rgba(245, 179, 36, 0.22);
}

.hero-hub-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-hub-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.hero-hub-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-hub-arrow {
  font-size: 0.85em;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.hero-hub-card:hover .hero-hub-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
  color: #f5b324;
}

.hero-hub-desc {
  font-size: 0.76rem;
  color: #a1a1aa;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-proof { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; color: #a8a0b2; font-size: .82rem; }
.social-mark { display: grid; place-items: center; width: 28px; height: 28px; background: var(--purple); border-radius: 50%; color: white; font-size: .66rem; font-weight: 900; }

/* Feature Grid - Responsive 4 Cards */
.feature-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 16px; 
}

.feature-card { 
  padding: 26px 22px; 
  border-radius: 15px; 
  border: 1px solid var(--line); 
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); 
  min-height: 290px; 
  display: flex;
  flex-direction: column;
}

.card-purple { box-shadow: inset 0 3px 0 var(--purple); }
.card-therapy { box-shadow: inset 0 3px 0 var(--purple-light); }
.card-yellow { box-shadow: inset 0 3px 0 var(--yellow); }
.card-dark { box-shadow: inset 0 3px 0 rgba(255,255,255,.25); }

.feature-icon { 
  display: grid; 
  place-items: center; 
  width: 44px; 
  height: 44px; 
  border-radius: 12px; 
  background: rgba(139,0,255,.18); 
  color: var(--purple-light); 
  font-size: 1.45rem; 
  margin-bottom: 22px; 
}

.card-therapy .feature-icon { 
  background: rgba(182, 92, 255, 0.15); 
  font-size: 1.35rem; 
}

.card-yellow .feature-icon { 
  color: var(--yellow); 
  background: rgba(255,230,0,.1); 
}

.feature-card .card-kicker { font-size: .65rem; margin: 0 0 9px; }
.feature-card h2 { font-size: 1.85rem; margin: 0 0 10px; letter-spacing: .01em; }
.feature-card p:not(.card-kicker) { color: var(--muted); font-size: .88rem; margin: 0 0 18px; flex-grow: 1; }

.text-link { color: var(--yellow); font-size: .85rem; font-weight: 800; display: inline-flex; align-items: center; }
.text-link span { color: var(--purple-light); margin-left: 5px; }

/* Games Banner */
.games-banner { margin-top: 22px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid rgba(139,0,255,.45); border-radius: 16px; background: radial-gradient(ellipse at 0% 50%, rgba(139,0,255,.18), transparent 60%), var(--panel); }
.games-banner .card-kicker { margin: 0 0 10px; }
.games-banner h2, .community-cta h2 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin: 0 0 12px; }
.games-banner p:not(.card-kicker), .community-cta > p:not(.eyebrow) { max-width: 660px; color: var(--muted); margin: 0; }
.games-banner .button { flex-shrink: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 22px; border-radius: 9px; font-weight: 800; font-size: .92rem; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--yellow); color: #17120a; box-shadow: 0 8px 30px rgba(255,230,0,.12); }
.button-primary:hover { box-shadow: 0 10px 35px rgba(255,230,0,.24); }

/* Community CTA */
.community-cta { text-align: center; padding: 90px 0 82px; }
.community-cta h2 { margin-top: 15px; }
.community-cta > p:not(.eyebrow) { margin: 0 auto; }
.button-tiktok { margin-top: 24px; background: var(--purple); color: white; box-shadow: 0 8px 28px rgba(139,0,255,.22); }

/* Site Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 25px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: #9f97aa; font-size: .8rem; }
.footer-brand { color: white; font-size: 1.35rem; font-weight: 900; }
.footer-brand span { color: var(--yellow); }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer small { width: 100%; color: #777080; }

/* Responsive */
@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-header { flex-direction: column; padding: 20px 0; gap: 16px; align-items: center; }
  .site-header nav { justify-content: center; }
}

@media (max-width: 760px) {
  .brand img { width: 112px; }
  .nav-btn { padding: 6px 12px; font-size: .78rem; }
  .hero { padding: 60px 0 45px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .games-banner { padding: 28px 24px; align-items: flex-start; flex-direction: column; }
  .community-cta { padding: 68px 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 540px) {
  .hero-hub-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-hub-card { padding: 12px 14px; }
}

@media (max-width: 430px) {
  .wrap { width: min(100% - 28px, 1120px); }
  h1 { font-size: clamp(3rem, 15vw, 4.1rem); }
}
