/* ============================================================
   TRONGO — Shared Stylesheet (main.css)
   Dark premium martial arts aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --bg:            #050507;
  --bg-elev:       #0d0d12;
  --bg-elev-2:     #15151c;
  --bg-card:       #0f0f14;
  --border:        #23232b;
  --text:          #f2f2f4;
  --text-dim:      #a3a3ad;
  --text-faint:    #6c6c78;
  --gold:          #c9a84c;
  --gold-soft:     #e0c878;
  --red:           #e63946;
  --green:         #2fae66;
  --shadow:        0 10px 40px rgba(0, 0, 0, 0.55);
  --radius:        14px;
  --radius-sm:     9px;
  --maxw:          1200px;
  --nav-h:         72px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------- Global MMA background (alle Seiten) ---------- */
/* Farb-Auren + Vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 50% -12%, rgba(201, 168, 76, 0.12), transparent 60%),
    radial-gradient(ellipse 55% 55% at 10% 108%, rgba(230, 57, 70, 0.12), transparent 60%),
    radial-gradient(ellipse 55% 55% at 92% 104%, rgba(132, 99, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 130% 120% at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.6)),
    var(--bg);
}
/* Carbon-Weave + Käfig-Gitter, an den Rändern ausgeblendet */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.020) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.020) 0 1px, transparent 1px 7px),
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 7px 7px, 7px 7px, 66px 66px, 66px 66px;
  -webkit-mask-image: radial-gradient(ellipse 100% 95% at 50% 28%, #000 38%, transparent 94%);
  mask-image: radial-gradient(ellipse 100% 95% at 50% 28%, #000 38%, transparent 94%);
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: bgDrift 40s linear infinite; }
}
@keyframes bgDrift { to { background-position: 66px 66px, -66px 66px, 0 66px, 66px 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, .display {
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

::selection { background: var(--gold); color: #000; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.text-gold { color: var(--gold); }
.text-red  { color: var(--red); }
.center { text-align: center; }

.eyebrow {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

.section-title { font-size: clamp(1.9rem, 4vw, 3rem); margin: 12px 0 16px; }
.section-sub { color: var(--text-dim); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #15110a;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 168, 76, 0.4); }
.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-red {
  background: linear-gradient(135deg, var(--red), #ff5a67);
  color: #fff;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.28);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(230, 57, 70, 0.45); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  color: var(--text);
}
.brand span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  background: var(--bg-elev);
}
.footer .brand { font-size: 1.2rem; display: inline-block; margin-bottom: 10px; }

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================ */
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.fade-up    { transform: translateY(40px); }
.fade-left  { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }
.fade-up.visible, .fade-left.visible, .fade-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}
/* Stagger delays for card grids */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.15s; }
.stagger > *:nth-child(3) { transition-delay: 0.25s; }
.stagger > *:nth-child(4) { transition-delay: 0.35s; }
.stagger > *:nth-child(5) { transition-delay: 0.45s; }
.stagger > *:nth-child(6) { transition-delay: 0.55s; }
.stagger > *:nth-child(7) { transition-delay: 0.65s; }
.stagger > *:nth-child(8) { transition-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right { opacity: 1; transform: none; transition: none; }
  .slide-up { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-content > *, .orb { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HERO (index)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(201, 168, 76, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(230, 57, 70, 0.10), transparent 60%),
    linear-gradient(180deg, #050507 0%, #0c0c11 60%, #050507 100%);
  will-change: transform;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 75%);
  will-change: transform;
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; }
.hero-wordmark {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 18vw, 13rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
  background: linear-gradient(180deg, #fff 0%, #d8d8de 40%, var(--gold) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.hero-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
}
.hero-tagline b { color: var(--gold); font-weight: 700; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bob 2s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ============================================================
   FEATURE SECTIONS (index)
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.feature:nth-child(even) .feature-visual { order: -1; }
.feature-visual {
  border-radius: var(--radius);
  min-height: 320px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
}
.feature-visual.acc-gold  { background: radial-gradient(circle at 30% 30%, rgba(201,168,76,0.22), var(--bg-elev) 70%); }
.feature-visual.acc-red   { background: radial-gradient(circle at 30% 30%, rgba(230,57,70,0.22), var(--bg-elev) 70%); }
.feature-visual.acc-mixed { background: radial-gradient(circle at 70% 30%, rgba(201,168,76,0.18), rgba(230,57,70,0.12) 60%, var(--bg-elev) 80%); }
.feature-icon {
  font-size: 5rem;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
.feature-body h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.feature-body p { color: var(--text-dim); margin-bottom: 24px; max-width: 460px; }
.feature-tag {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ============================================================
   ACADEMY — discipline cards
   ============================================================ */
.page-head {
  padding: calc(var(--nav-h) + 70px) 0 50px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201,168,76,0.12), transparent 60%),
    var(--bg);
}
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.page-head p { color: var(--text-dim); margin-top: 12px; }

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.disc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.disc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(201,168,76,0.06));
  opacity: 0;
  transition: opacity 0.3s;
}
.disc-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.disc-card:hover::after { opacity: 1; }
.disc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.disc-emoji { font-size: 2.4rem; }
.belt-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.belt-1 { color: #f2f2f4; background: rgba(255,255,255,0.06); }
.belt-2 { color: #4a9fe9; background: rgba(74,159,233,0.12); border-color: rgba(74,159,233,0.4); }
.belt-3 { color: #a877ff; background: rgba(168,119,255,0.14); border-color: rgba(168,119,255,0.45); }
.belt-4 { color: #c08a52; background: rgba(176,123,79,0.16); border-color: rgba(176,123,79,0.5); }
.belt-5 { color: var(--gold); background: rgba(201,168,76,0.14); border-color: rgba(201,168,76,0.5); }
.disc-name { font-size: 1.45rem; margin-bottom: 4px; }
.disc-rank { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 16px; }
.disc-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-faint); margin-bottom: 8px; }
.xp-bar { height: 8px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; }
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  transition: width 0.6s var(--ease);
}
.disc-card.maxed .xp-fill { background: linear-gradient(90deg, var(--gold), var(--red)); }

/* ---------- Quiz overlay ---------- */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.quiz-overlay.active { display: flex; }
.quiz-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  animation: pop 0.4s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: scale(1); } }
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.quiz-disc { font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.quiz-close { font-size: 1.6rem; color: var(--text-faint); line-height: 1; }
.quiz-close:hover { color: var(--text); }
.quiz-progress-track { height: 6px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.quiz-progress-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.4s var(--ease); }
.quiz-count { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 22px; }
.quiz-question { font-size: 1.3rem; font-family: 'Rajdhani', sans-serif; font-weight: 600; margin-bottom: 24px; line-height: 1.35; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt {
  text-align: left;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.98rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--gold); transform: translateX(4px); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { background: rgba(47,174,102,0.18); border-color: var(--green); color: #b8f0cf; }
.quiz-opt.wrong   { background: rgba(230,57,70,0.18); border-color: var(--red); color: #ffc2c7; }

/* ---------- Quiz result ---------- */
.quiz-result { text-align: center; animation: pop 0.4s var(--ease); }
.quiz-result h2 { font-size: 2rem; margin-bottom: 8px; }
.quiz-result .score { font-size: 3.2rem; color: var(--gold); font-family: 'Rajdhani', sans-serif; margin: 10px 0; }
.quiz-result p { color: var(--text-dim); margin-bottom: 6px; }
.rankup {
  margin: 22px 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.1);
  animation: rankPulse 1.2s var(--ease);
}
.rankup .new-belt { font-size: 1.5rem; color: var(--gold); font-family: 'Rajdhani', sans-serif; font-weight: 700; }
@keyframes rankPulse {
  0% { transform: scale(0.7); opacity: 0; }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.quiz-result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Confetti ---------- */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2100; overflow: hidden; }
.confetti {
  position: absolute;
  top: -20px;
  width: 10px; height: 14px;
  opacity: 0.9;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   PERFORMANCE — chat
   ============================================================ */
.chat-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}
.chat-header {
  padding: 18px 6px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.chat-header .avatar { width: 42px; height: 42px; font-size: 1.2rem; }
.chat-header h2 { font-size: 1.2rem; }
.chat-header p { font-size: 0.82rem; color: var(--text-faint); }
.chat-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; margin-right: 5px; }

.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 24px 6px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-stream::-webkit-scrollbar { width: 8px; }
.chat-stream::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.msg { display: flex; gap: 12px; max-width: 85%; animation: msgIn 0.35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #15110a;
}
.bubble {
  padding: 13px 17px;
  border-radius: 16px;
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.ai .bubble { background: var(--bg-elev); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg.user .bubble { background: var(--bg-elev-2); border: 1px solid var(--border); border-top-right-radius: 4px; }
.msg.ai .bubble strong { color: var(--gold); }

.typing { display: inline-flex; gap: 5px; align-items: center; padding: 4px 2px; }
.typing span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-faint);
  animation: blink 1.3s infinite both;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 16px 6px 22px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  resize: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.96rem;
  font-family: inherit;
  max-height: 140px;
  line-height: 1.4;
  transition: border-color 0.2s;
}
.chat-input:focus { outline: none; border-color: var(--gold); }
.chat-send {
  flex-shrink: 0;
  width: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #15110a;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}
.chat-send:hover { transform: scale(1.05); }
.chat-send:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ============================================================
   FIGHTWEAR — shop
   ============================================================ */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.2s;
}
.filter-tab:hover { color: var(--text); border-color: var(--gold); }
.filter-tab.active { background: var(--gold); color: #15110a; border-color: var(--gold); }
.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-weight: 600;
  transition: border-color 0.2s;
}
.cart-toggle:hover { border-color: var(--gold); }
.cart-count {
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.product-img {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  font-size: 1.1rem;
}
.product-img .ph-emoji { font-size: 3.4rem; filter: grayscale(0.3) drop-shadow(0 8px 20px rgba(0,0,0,0.5)); }
.product-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 6px; }
.product-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.product-desc { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 14px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }
.product-price { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--text); }
.add-btn {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.add-btn:hover { background: var(--gold); color: #15110a; border-color: var(--gold); }

/* ---------- Cart sidebar ---------- */
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 400px;
  max-width: 90vw;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  z-index: 1600;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-head {
  padding: 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-head h3 { font-size: 1.3rem; }
.cart-close { font-size: 1.7rem; color: var(--text-faint); line-height: 1; }
.cart-close:hover { color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { text-align: center; color: var(--text-faint); margin-top: 40px; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item-img {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  border: 1px solid var(--border);
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.92rem; font-weight: 600; }
.cart-item-price { font-size: 0.82rem; color: var(--gold); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.qty button:hover { border-color: var(--gold); color: var(--gold); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.cart-item-remove { color: var(--text-faint); font-size: 0.78rem; background: none; }
.cart-item-remove:hover { color: var(--red); }
.cart-foot { padding: 22px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-total .label { color: var(--text-dim); }
.cart-total .amount { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.7rem; color: var(--gold); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px;
  text-align: center;
  max-width: 420px;
  box-shadow: var(--shadow);
  animation: pop 0.4s var(--ease);
}
.modal .modal-emoji { font-size: 3rem; margin-bottom: 14px; }
.modal h3 { font-size: 1.5rem; margin-bottom: 10px; }
.modal p { color: var(--text-dim); margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .discipline-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5,5,7,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; border-radius: 8px; }
  .nav-toggle { display: flex; }

  .feature { grid-template-columns: 1fr; gap: 28px; padding: 60px 0; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .feature-visual { min-height: 220px; }

  .section { padding: 64px 0; }
  .container { padding: 0 18px; }
}

@media (max-width: 520px) {
  .discipline-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .quiz-box { padding: 24px; }
  .hero-cta { flex-direction: column; align-items: center; }
}

/* ============================================================
   ACADEMY — Weekly Challenge + Leaderboard
   ============================================================ */
.academy-extra {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  margin-top: 56px;
}
.challenge-card, .leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.panel-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.15rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.challenge-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.challenge-emoji { font-size: 2.6rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)); }
.challenge-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.35rem; }
.challenge-desc { color: var(--text-dim); font-size: 0.92rem; line-height: 1.45; }
.challenge-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-faint); margin: 16px 0 7px; }
.challenge-bar { height: 10px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; }
.challenge-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 999px; transition: width 0.6s var(--ease); }
.challenge-reward { margin-top: 16px; font-size: 0.86rem; color: var(--text-dim); }
.challenge-done { color: var(--green); font-weight: 600; }

.lb-list { display: flex; flex-direction: column; gap: 7px; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease);
}
.lb-row:hover { transform: translateX(3px); }
.lb-row.me { border-color: var(--gold); background: rgba(201, 168, 76, 0.1); }
.lb-rank { width: 34px; text-align: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.15rem; flex-shrink: 0; color: var(--text-dim); }
.lb-name { flex: 1; font-weight: 600; }
.lb-row.me .lb-name { color: var(--gold); }
.lb-xp { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-dim); }
.lb-row.me .lb-xp { color: var(--gold); }
.lb-divider { text-align: center; color: var(--text-faint); padding: 6px; letter-spacing: 0.3em; }

@media (max-width: 768px) {
  .academy-extra { grid-template-columns: 1fr; margin-top: 40px; }
}

/* ============================================================
   ACADEMY — Discipline detail overlay (intro before quiz)
   ============================================================ */
.detail-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: 0.05em;
  margin: 6px 0 16px;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.detail-text { color: var(--text-dim); line-height: 1.7; font-size: 1rem; margin-bottom: 26px; }
.detail-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; font-size: 0.82rem; color: var(--text-faint); }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   HOMEPAGE — creative hero, glove-T, slide reveals, launch band
   ============================================================ */

/* Animated background orbs */
.hero-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.orb-1 { width: 460px; height: 460px; top: -120px; left: -80px;  background: radial-gradient(circle, rgba(201,168,76,0.55), transparent 70%); animation: orbFloat1 16s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; bottom: -140px; right: -60px; background: radial-gradient(circle, rgba(230,57,70,0.45), transparent 70%); animation: orbFloat2 20s ease-in-out infinite; }
.orb-3 { width: 320px; height: 320px; top: 35%; left: 58%; background: radial-gradient(circle, rgba(132,99,255,0.40), transparent 70%); animation: orbFloat3 18s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(60px,40px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,-30px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,-50px) scale(1.12)} }

/* Hero entrance animation */
.hero-content > * { animation: heroIn 0.9s var(--ease) both; }
.hero-wordmark { animation-delay: 0.10s; }
.hero-tagline  { animation-delay: 0.35s; }
.hero-lead     { animation-delay: 0.55s; }
.hero-cta      { animation-delay: 0.75s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(45px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

.hero-lead { max-width: 600px; margin: 18px auto 0; color: var(--text-dim); font-size: clamp(1rem, 2.2vw, 1.18rem); line-height: 1.6; }
.hero-lead b { color: var(--text); }

/* Slide-in text reveal */
.slide-up { opacity: 0; transform: translateY(60px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); will-change: opacity, transform; }
.slide-up.visible { opacity: 1; transform: none; filter: blur(0); }

/* About band */
.about-band { padding: 90px 0 20px; }
.about-lead { max-width: 700px; margin: 14px auto 0; color: var(--text-dim); font-size: 1.08rem; line-height: 1.75; }
.about-lead b { color: var(--gold); }

/* Launch / e-mail signup band */
.launch-band {
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(201,168,76,0.08), transparent 60%), var(--bg-elev);
  padding: 84px 0;
}
.launch-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.launch-text h2 { margin-bottom: 14px; }
.launch-text p { color: var(--text-dim); margin-bottom: 22px; max-width: 460px; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input {
  flex: 1; min-width: 220px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s;
}
.signup input:focus { outline: none; border-color: var(--gold); }
.signup-note { margin-top: 14px; font-size: 0.9rem; color: var(--text-faint); min-height: 1.2em; }
.signup-note.ok { color: var(--green); }
.launch-contact { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.launch-contact h3 { font-size: 1.3rem; margin-bottom: 16px; }
.launch-contact ul { display: flex; flex-direction: column; gap: 12px; }
.launch-contact li { color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.launch-contact a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .launch-grid { grid-template-columns: 1fr; gap: 28px; }
}
