/* ========================================
   NEXHUB - Design System
   Gold/Bronze Premium Theme
   ======================================== */

/* Inter Font - self-hosted */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('assets/fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/inter-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('assets/fonts/inter-900.woff2') format('woff2'); }

:root {
  color-scheme: dark only;

  /* Background tones - warm near-black anthracite */
  --bg:        #0c0a08;
  --bg-2:      #14110d;
  --bg-3:      #1b1712;
  --bg-card:   rgba(45,212,191,0.04);
  --bg-card-hover: rgba(45,212,191,0.09);
  --bg-glass:  rgba(12,10,8,0.85);

  /* Logo-matched warm gold + deep bronze */
  --gold:      #2dd4bf;
  --gold-soft: #5eead4;
  --gold-dim:  rgba(45,212,191,0.15);
  --gold-glow: rgba(45,212,191,0.3);
  --bronze:    #06b6d4;
  --bronze-deep: #0891b2;

  --accent:    var(--gold);
  --accent-2:  var(--bronze);

  --text:    #f6efe3;
  --text-2:  #b7a98f;
  --text-3:  #6f6452;

  --border:        rgba(45,212,191,0.12);
  --border-hover:  rgba(45,212,191,0.28);

  --radius:      12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.admin-body { display: grid; }
body > section, body > .cta { flex: 1; }
body > footer { margin-top: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ========================================
   BACKGROUND
   ======================================== */
.bg-effects {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 5%, rgba(45,212,191,0.14), transparent),
    radial-gradient(ellipse 50% 45% at 85% 80%, rgba(6,182,212,0.08), transparent),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(45,212,191,0.05), transparent);
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 2% 1%; }
  100% { background-position: -1% -1%; }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(45,212,191,0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
  animation: gridFade 8s ease-in-out infinite alternate;
}

@keyframes gridFade {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 0;
  transition: background 0.3s var(--ease), border 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(12,10,8,0.78);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem;
}

.nav-brand img.brand-logo {
  width: 26px; height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(45,212,191,0.4));
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-brand:hover img.brand-logo {
  filter: drop-shadow(0 0 16px rgba(45,212,191,0.65));
  transform: rotate(-8deg) scale(1.06);
}
.footer .nav-brand img.brand-logo { width: 22px; height: 22px; }
.admin-brand img { width: 26px !important; height: 26px !important; }

.nav-brand span {
  background: linear-gradient(135deg, #fff 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 32px;
}

.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--bronze), var(--gold));
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-nav-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(45,212,191,0.22);
  border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  transition: all 0.25s var(--ease);
}

.btn-nav-login svg { flex-shrink: 0; }
.btn-nav-login:hover {
  background: rgba(45,212,191,0.2);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(45,212,191,0.18);
  transform: translateY(-1px);
}

.btn-nav-login-primary {
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  color: #1a1410;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(45,212,191,0.25);
}
.btn-nav-login-primary:hover {
  background: linear-gradient(135deg, var(--bronze-deep), var(--bronze));
  color: #1a1410;
  box-shadow: 0 0 28px rgba(45,212,191,0.4);
  transform: translateY(-1px);
}

.btn-nav-discord {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(45,212,191,0.22);
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.btn-nav-discord:hover {
  background: #5865F2; color: #fff;
  border-color: #5865F2;
  box-shadow: 0 0 16px rgba(88,101,242,0.4);
  transform: translateY(-1px);
}

.nav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(45,212,191,0.22);
  color: var(--text-2);
  transition: all 0.25s var(--ease);
}
.nav-icon-btn:hover { color: var(--gold); border-color: var(--gold); }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; padding: 4px;
}

.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.25s var(--ease);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; white-space: nowrap;
  transition: all 0.2s var(--ease); cursor: pointer; border: none;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  color: #1a1410; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 700;
  box-shadow: 0 0 24px rgba(45,212,191,0.22), 0 0 48px rgba(6,182,212,0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s var(--ease);
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(45,212,191,0.4), 0 0 100px rgba(6,182,212,0.15);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 12px 24px;
  background: transparent; color: var(--text-2);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.btn-discord {
  padding: 12px 28px;
  background: #5865F2; color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  box-shadow: 0 0 30px rgba(88,101,242,0.25);
}

.btn-discord:hover {
  background: #4752C4;
  box-shadow: 0 0 50px rgba(88,101,242,0.35);
  transform: translateY(-1px);
}

.btn-lg { padding: 14px 32px; font-size: 0.92rem; }

.btn-glow { position: relative; }

.btn-glow::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  z-index: -1;
  filter: blur(14px);
  opacity: 0.4;
  animation: btnGlowPulse 3s ease-in-out infinite;
  transition: opacity 0.3s;
}

.btn-glow:hover::after { opacity: 0.7; }

@keyframes btnGlowPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.04); }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 30%, rgba(45,212,191,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 35% 60%, rgba(6,182,212,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 65% 50%, rgba(231,199,155,0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
  100% { opacity: 0.75; transform: translateX(-50%) scale(1.03); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

/* Big hero logo */
.hero-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 24px;
  animation: fadeIn 0.7s var(--ease);
  position: relative;
  width: fit-content;
}
.hero-logo img {
  width: 96px; height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(45,212,191,0.4)) drop-shadow(0 0 60px rgba(6,182,212,0.2));
  animation: logoFloat 6s ease-in-out infinite;
}
.hero-logo::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(45,212,191,0.2), transparent 70%);
  z-index: -1;
  animation: logoPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes logoPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 16px;
  border: 1px solid rgba(45,212,191,0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500;
  color: var(--gold);
  margin-bottom: 28px;
  animation: fadeIn 0.6s var(--ease), pillGlow 4s ease-in-out infinite;
  background: rgba(45,212,191,0.06);
}

@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(45,212,191,0.06); }
  50% { box-shadow: 0 0 28px rgba(45,212,191,0.15); }
}

.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fbbf24;
  animation: pulse 2s ease-in-out infinite;
  transition: background 0.3s;
}

.pill-dot.online { background: #34d399; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.title-line {
  display: block;
  animation: titleReveal 0.8s var(--ease) both;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.25s; }
.title-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(28px) skewY(1.5deg); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) skewY(0deg); filter: blur(0); }
}

.grad {
  background: linear-gradient(135deg, var(--bronze-deep), var(--bronze), var(--gold), var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradShift 12s ease-in-out infinite;
}

@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 0.7s var(--ease) 0.35s both;
}

.hero-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  animation: fadeUp 0.7s var(--ease) 0.45s both;
}

/* Stats Bar */
.stats-bar {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 72px;
  padding: 24px 48px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: fadeUp 0.7s var(--ease) 0.55s both;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze), var(--gold), transparent);
  animation: statBarShine 4s ease-in-out infinite;
}

@keyframes statBarShine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.stats-bar::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.05), transparent);
  animation: statSweep 6s ease-in-out infinite;
}

@keyframes statSweep {
  0% { left: -50%; }
  100% { left: 150%; }
}

.stat-item {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 0 34px;
  min-width: 100px;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--bronze), var(--gold), var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradShift 12s ease-in-out infinite;
}

.stat-item:hover .stat-val {
  transform: scale(1.08);
  transition: transform 0.3s var(--ease);
}

.stat-lbl {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(45,212,191,0.2), rgba(6,182,212,0.15), transparent);
  flex-shrink: 0;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.2), rgba(6,182,212,0.15), transparent);
}

.section-alt {
  background: rgba(20,17,13,0.4);
}

.section-alt::before { display: none; }

.sec-head {
  text-align: center;
  margin-bottom: 60px;
}

.sec-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 14px;
  padding: 5px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.sec-tag::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.15), transparent);
  animation: tagShimmer 3s ease-in-out infinite;
}

@keyframes tagShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.sec-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
}

.sec-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   ABOUT GRID
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-card {
  position: relative;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
  text-align: center;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bronze), var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 50px rgba(45,212,191,0.1), 0 4px 20px rgba(0,0,0,0.35);
}

.about-card:hover::before { opacity: 0.6; }

.about-card .bento-icon { margin: 0 auto 18px; }

.about-card h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.about-card p {
  font-size: 0.88rem; color: var(--text-2);
  line-height: 1.6;
}

/* ========================================
   PROJECT FILTER
   ======================================== */
.project-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  background: rgba(45,212,191,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(45,212,191,0.12);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  color: #1a1410;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(45,212,191,0.2);
}

/* ========================================
   PROJECT GRID (BENTO)
   ======================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  display: block;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.bento-card-clickable { cursor: pointer; }

.bento-card.hidden { display: none; }

.bento-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.bento-card .card-spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x) var(--mouse-y),
    rgba(45,212,191,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none; z-index: 0;
}

.bento-card:hover .card-spotlight { opacity: 1; }

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: linear-gradient(135deg, var(--bg-2), rgba(45,212,191,0.03));
  box-shadow:
    0 16px 50px rgba(45,212,191,0.1),
    0 4px 20px rgba(0,0,0,0.4);
}

.bento-card:hover::after { opacity: 0.8; }

.bento-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-2), rgba(45,212,191,0.04));
}
.bento-card.featured h3 { font-size: 1.3rem; }

.bento-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,212,191,0.12), rgba(6,182,212,0.06));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 18px;
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

.bento-image {
  position: relative;
  z-index: 1;
  margin: -28px -28px 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border-bottom: 1px solid var(--border);
}
.bento-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.bento-card:hover .bento-image img { transform: scale(1.04); }

.bento-card:hover .bento-icon {
  background: linear-gradient(135deg, rgba(45,212,191,0.25), rgba(6,182,212,0.15));
  color: var(--gold-soft);
  box-shadow: 0 0 24px rgba(45,212,191,0.18);
  transform: scale(1.08) rotate(-3deg);
}

.bento-card h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  position: relative; z-index: 1;
}

.bento-card p {
  font-size: 0.88rem; color: var(--text-2) !important;
  line-height: 1.6;
  position: relative; z-index: 1;
}

.bento-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 10px;
  position: relative; z-index: 1;
}
.bento-tag {
  padding: 2px 8px;
  background: rgba(45,212,191,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  color: var(--text-3);
  font-weight: 600;
  text-transform: lowercase;
}
.bento-tag-status { text-transform: none; font-weight: 700; letter-spacing: 0.3px; }
.bento-tag-dev     { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.25); }
.bento-tag-planned { background: rgba(59,130,246,0.12); color: #60a5fa; border-color: rgba(59,130,246,0.25); }
.bento-tag-paused  { background: rgba(107,114,128,0.15); color: #9ca3af; border-color: rgba(107,114,128,0.3); }
.bento-tag-client  { background: rgba(45,212,191,0.15); color: var(--gold); border-color: rgba(45,212,191,0.3); }
.bento-tag-social  { background: rgba(52,211,153,0.12); color: #34d399; border-color: rgba(52,211,153,0.25); }
.bento-tag-popular { background: rgba(45,212,191,0.18); color: var(--gold-soft); border-color: rgba(45,212,191,0.35); }

.bento-badge {
  position: absolute; top: 18px; right: 18px;
  padding: 4px 12px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #1a1410;
  z-index: 1;
  animation: badgePulse 3s ease-in-out infinite;
}

.bento-badge-new, .bento-badge-social {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  animation: badgePulseNew 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(45,212,191,0.2); }
  50% { box-shadow: 0 0 22px rgba(231,199,155,0.35); }
}

@keyframes badgePulseNew {
  0%, 100% { box-shadow: 0 0 10px rgba(16,185,129,0.2); }
  50% { box-shadow: 0 0 22px rgba(52,211,153,0.4); }
}

.bento-badge-dev {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1410;
  animation: badgePulseDev 3s ease-in-out infinite;
}

@keyframes badgePulseDev {
  0%, 100% { box-shadow: 0 0 10px rgba(245,158,11,0.2); }
  50% { box-shadow: 0 0 22px rgba(251,191,36,0.4); }
}

.bento-badge-planned {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
  animation: badgePulsePlanned 3s ease-in-out infinite;
}

@keyframes badgePulsePlanned {
  0%, 100% { box-shadow: 0 0 10px rgba(59,130,246,0.2); }
  50% { box-shadow: 0 0 22px rgba(96,165,250,0.4); }
}

.bento-badge-paused {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: #fff;
  animation: badgePulsePaused 3s ease-in-out infinite;
}

@keyframes badgePulsePaused {
  0%, 100% { box-shadow: 0 0 10px rgba(107,114,128,0.2); }
  50% { box-shadow: 0 0 22px rgba(156,163,175,0.3); }
}

.bento-badge-client {
  background: linear-gradient(135deg, var(--bronze-deep), var(--bronze));
  color: #fff;
  animation: badgePulseClient 3s ease-in-out infinite;
}

@keyframes badgePulseClient {
  0%, 100% { box-shadow: 0 0 10px rgba(6,182,212,0.2); }
  50% { box-shadow: 0 0 22px rgba(45,212,191,0.4); }
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  position: relative;
  z-index: 1;
  transition: all 0.2s var(--ease);
}

.card-link:hover {
  color: var(--gold-soft);
  text-shadow: 0 0 12px rgba(45,212,191,0.5);
}

/* ========================================
   TEAM
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  justify-content: center;
}

.team-card {
  text-align: center;
  padding: 44px 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.team-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bronze), var(--gold), transparent);
  background-size: 200% 100%;
  animation: statusLine 3s linear infinite;
}

@keyframes statusLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 50px rgba(45,212,191,0.12), 0 4px 20px rgba(0,0,0,0.35);
}

.team-avatar { margin-bottom: 20px; }

.team-avatar img, .team-avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #1a1410;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 0 32px rgba(45,212,191,0.3), 0 0 60px rgba(6,182,212,0.15);
  transition: transform 0.3s var(--ease);
}

.team-card:hover .team-avatar-placeholder,
.team-card:hover .team-avatar img {
  transform: scale(1.08);
}

.team-card h3 {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}

.team-role {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-handle {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.team-links {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 18px;
}

.team-links a, .team-links span {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(45,212,191,0.08);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all 0.25s var(--ease);
}

.team-links a:hover {
  background: rgba(45,212,191,0.2);
  border-color: var(--border-hover);
  color: var(--gold);
  transform: translateY(-2px);
}

.team-card-link { cursor: pointer; text-decoration: none; color: inherit; display: block; }
.team-card-arrow {
  display: block; margin-top: 16px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-3);
  transition: color 0.25s var(--ease);
}
.team-card-link:hover .team-card-arrow { color: var(--gold); }

.team-skills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.skill-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(45,212,191,0.06);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ========================================
   CTA
   ======================================== */
.cta { padding: 80px 0 120px; }

.cta-box {
  text-align: center;
  padding: 80px 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(45,212,191,0.06), rgba(6,182,212,0.04));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(0,0,0,0.25), 0 0 80px rgba(45,212,191,0.05);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bronze), var(--gold), transparent);
}

.cta-box::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(45,212,191,0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(6,182,212,0.06), transparent 50%);
  pointer-events: none;
  animation: ctaAmbient 8s ease-in-out infinite alternate;
}

@keyframes ctaAmbient {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; letter-spacing: -1.5px;
  margin-bottom: 14px;
  color: var(--text);
}

.cta-box p {
  font-size: 1.05rem; color: var(--text-2);
  margin-bottom: 36px;
}

.cta-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative; z-index: 1;
  background: var(--bg-2);
}

.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}

.footer-left {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}

.footer-left p { font-size: 0.82rem; color: var(--text-3); }

.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
}

.footer-links a {
  font-size: 0.8rem; color: var(--text-2);
  transition: color 0.2s var(--ease);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: linear-gradient(90deg, var(--bronze), var(--gold));
  transition: width 0.3s var(--ease);
}

.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { width: 100%; }

.footer-copy { font-size: 0.72rem; color: var(--text-3); }

/* ========================================
   PROSE (rendered markdown)
   ======================================== */
.prose {
  color: var(--text-2); font-size: 1rem; line-height: 1.75;
  max-width: 720px;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text); font-weight: 700;
  margin: 1.8em 0 0.6em; letter-spacing: -0.4px;
}
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.05rem; }
.prose p { margin: 1em 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose em { color: var(--gold-soft); font-style: italic; }
.prose a { color: var(--gold); border-bottom: 1px solid rgba(45,212,191,0.3); transition: all 0.2s var(--ease); }
.prose a:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }
.prose ul { margin: 1em 0 1em 1.5em; }
.prose li { margin: 0.4em 0; }
.prose code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px;
  font-family: 'SF Mono', 'Cascadia Code', Menlo, monospace;
  font-size: 0.86em; color: var(--gold-soft);
}
.prose pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.4em 0;
}
.prose pre code { background: none; border: none; padding: 0; color: var(--text-2); font-size: 0.88em; }

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

.bento.visible .bento-card:not(.hidden) {
  opacity: 0;
  animation: cardReveal 0.6s var(--ease) forwards;
}

.bento.visible .bento-card:nth-child(1) { animation-delay: 0s; }
.bento.visible .bento-card:nth-child(2) { animation-delay: 0.06s; }
.bento.visible .bento-card:nth-child(3) { animation-delay: 0.12s; }
.bento.visible .bento-card:nth-child(4) { animation-delay: 0.18s; }
.bento.visible .bento-card:nth-child(5) { animation-delay: 0.24s; }
.bento.visible .bento-card:nth-child(6) { animation-delay: 0.30s; }
.bento.visible .bento-card:nth-child(7) { animation-delay: 0.36s; }
.bento.visible .bento-card:nth-child(8) { animation-delay: 0.42s; }
.bento.visible .bento-card:nth-child(9) { animation-delay: 0.48s; }
.bento.visible .bento-card:nth-child(10) { animation-delay: 0.54s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.featured { grid-column: span 2; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(12,10,8,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transform: translateX(-50%) translateY(-10px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    left: 50%;
    width: 100%;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .nav-links a { display: block; padding: 14px 24px; font-size: 0.95rem; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .btn-nav-login { padding: 6px 12px; font-size: 0.74rem; }
  .btn-nav-login span { display: none; }
  .btn-nav-login svg { margin: 0; }
  .btn-nav-discord { width: 30px; height: 30px; }

  .hero { padding: 96px 16px 40px; min-height: auto; }
  .hero-logo { margin-bottom: 18px; }
  .hero-logo img { width: 72px; height: 72px; }
  .hero-title { letter-spacing: -1px; font-size: clamp(1.9rem, 9vw, 3rem); }

  .stats-bar { flex-wrap: wrap; padding: 20px 24px; gap: 16px; }
  .stat-sep { display: none; }
  .stat-item { min-width: 70px; padding: 0 16px; }

  .bento, .bento-card.featured { grid-template-columns: 1fr; grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
  .cta-btns { flex-direction: column; }
  .team-grid { grid-template-columns: 1fr; }
  .project-filter { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .hero-sub { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
  .hero-logo img { width: 64px; height: 64px; }
  .hero-title { font-size: clamp(1.7rem, 10vw, 2.6rem); letter-spacing: -0.5px; }
  .hero-pill { margin-bottom: 22px; }
}
