/* ============================================================
   Bahanexus Hub — style.css
   ============================================================ */
:root {
  --bg: #070a14;
  --text: #e9edfb;
  --muted: #98a2bd;
  --line: rgba(255, 255, 255, 0.09);
  --cyan: #4cc9f0;
  --violet: #7b5cff;
  --pink: #ff5c8a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 72% -10%, #101a3a 0%, transparent 60%),
    radial-gradient(900px 640px at 8% 8%, #1a0f33 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: rgba(123, 92, 255, 0.45); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #070a14; }
::-webkit-scrollbar-thumb { background: rgba(123, 92, 255, 0.35); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(123, 92, 255, 0.55); }

/* ---------- background layers ---------- */
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.33;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.aurora-1 {
  width: 56vmax; height: 56vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle at 35% 35%, #2b6cff, transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 48vmax; height: 48vmax; right: -16vmax; top: 4vmax;
  background: radial-gradient(circle at 60% 40%, var(--violet), transparent 65%);
  animation: drift2 22s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 52vmax; height: 52vmax; left: 20vmax; bottom: -26vmax;
  background: radial-gradient(circle at 50% 50%, #ff4d8d, transparent 65%);
  opacity: 0.2;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate3d(-6%, -4%, 0) scale(1); } to { transform: translate3d(8%, 6%, 0) scale(1.12); } }
@keyframes drift2 { from { transform: translate3d(4%, -6%, 0) scale(1.05); } to { transform: translate3d(-8%, 8%, 0) scale(0.95); } }
@keyframes drift3 { from { transform: translate3d(-4%, 4%, 0) scale(1); } to { transform: translate3d(6%, -8%, 0) scale(1.15); } }

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 8%, transparent 72%);
}

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: 6rem 1.5rem 8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #37e39b; box-shadow: 0 0 12px #37e39b; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.55; } }

.mega {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 6.4rem);
  letter-spacing: 0.14em;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink), var(--cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
  filter: drop-shadow(0 0 28px rgba(123, 92, 255, 0.35));
}
@keyframes shine { to { background-position: 200% center; } }

.tagline { margin: 0; color: var(--muted); font-size: clamp(0.95rem, 2.4vw, 1.15rem); min-height: 1.6em; letter-spacing: 0.02em; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 0.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn .ico { transition: transform 0.3s ease; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #3aa0ff, var(--violet) 60%, #b44dff); box-shadow: 0 10px 34px -10px rgba(110, 90, 255, 0.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px -10px rgba(110, 90, 255, 0.85); }
.btn-primary:hover .ico { transform: translateY(3px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(123, 92, 255, 0.6); background: rgba(123, 92, 255, 0.08); }
.btn-ghost:hover .ico { transform: translate(2px, -2px); }

.stats { display: flex; gap: 2.6rem; margin-top: 2.2rem; }
.stat b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; color: #fff; }
.stat span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1.2rem;
  opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }

/* ---------- sections ---------- */
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 1rem 1.4rem 5rem; }

.group { margin-top: 3.6rem; }
.group-head h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 600; }
.group-head p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.9rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.05rem; margin-top: 1.3rem; }

/* ---------- card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.2rem 1.2rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: opacity 0.7s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), var(--pink), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover::before { opacity: 1; }

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 92, 255, 0.55);
  box-shadow: 0 22px 48px -20px rgba(96, 80, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.card-top { display: flex; align-items: center; justify-content: space-between; }

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.card:hover .icon { transform: rotate(-6deg) scale(1.1); }

.badge { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; padding: 0.24rem 0.6rem; border-radius: 999px; border: 1px solid; }
.badge.pub { color: #7fe3b0; border-color: rgba(80, 220, 150, 0.35); background: rgba(80, 220, 150, 0.08); }
.badge.adult { color: #ffbe70; border-color: rgba(255, 170, 60, 0.4); background: rgba(255, 170, 60, 0.08); }
.badge.lock { color: #aeb6cc; border-color: rgba(160, 170, 200, 0.3); background: rgba(160, 170, 200, 0.08); }

.card h3 { margin: 0.1rem 0 0; font-family: "Space Grotesk", sans-serif; font-size: 1.02rem; font-weight: 600; color: #fff; }
.card p { margin: 0; flex: 1; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags span { font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(76, 201, 240, 0.08); border: 1px solid rgba(76, 201, 240, 0.22); color: #8fd6f0; }

.open { font-size: 0.8rem; font-weight: 600; color: #93a7ff; transition: transform 0.3s ease, color 0.3s ease; }
.card:hover .open { color: #fff; transform: translateX(3px); }

.card.locked { opacity: 0.8; }
.card.locked:hover { opacity: 1; }
.card.locked .icon { filter: grayscale(0.35); }

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}
.footer p { margin: 0.3rem 0; }
.footer b { color: #dfe6ff; }
.footer .fine { font-size: 0.75rem; opacity: 0.75; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 5rem 1.2rem 7rem; }
  .stats { gap: 1.6rem; }
  .group { margin-top: 2.8rem; }
  .aurora { opacity: 0.22; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
