:root {
  --brand: #4F2A75;
  --brand-2: #8C74A5;
  --brand-3: #3F215D;
  --bg: #0b0b12;
  --bg-2: #0e0e18;
  --text: #e8e7f3;
  --muted: #b9b8c7;
  --success: #33d69f;
  --card: #121221;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 15px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --light-bg: #f4f4f9;
  --light-text: #1a1a1f;
  --light-muted: #6b6b7a;
  --light-card: #ffffff;
  --light-border: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] {
  --bg: var(--light-bg);
  --bg-2: #e8e8ee;
  --text: var(--light-text);
  --muted: var(--light-muted);
  --card: var(--light-card);
  --glass: rgba(0, 0, 0, 0.05);
  --border: var(--light-border);
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: min(1200px, 92vw); margin-inline: auto; padding-inline: 12px; }
.section-title { font-size: clamp(1.4rem, 1.5vw + 1rem, 2.2rem); margin: 0 0 16px; font-weight: 700; }
.gradient { background: linear-gradient(90deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bullets { margin: 0; padding-left: 18px; }
.bullets li { margin: 6px 0; color: var(--muted); }
.muted { color: var(--muted); }
.search-input { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--glass); color: var(--text); margin-bottom: 12px; font-size: clamp(0.9rem, 1vw, 1rem); }

#loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(900px 700px at 10% -10%, rgba(79, 42, 117, 0.3), transparent 50%),
              radial-gradient(1100px 900px at 110% 120%, rgba(63, 33, 93, 0.3), transparent 50%),
              var(--bg);
}
#loader .loader-inner { width: clamp(300px, 80vw, 460px); text-align: center; }
#loader .logo { font-size: clamp(28px, 4vw, 36px); margin-bottom: 12px; filter: drop-shadow(0 6px 12px rgba(79, 42, 117, 0.4)); }
#loader .progress { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
#loader .progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
#loader .percent { margin-top: 8px; color: var(--muted); font-size: clamp(0.8rem, 1vw, 0.9rem); }
#loader.hide { opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }

#fx-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 600px at var(--mx, 50%) var(--my, 20%), rgba(79, 42, 117, 0.2), transparent 55%),
              radial-gradient(900px 900px at 70% -10%, rgba(140, 116, 165, 0.15), transparent 60%),
              radial-gradient(1200px 1200px at -10% 110%, rgba(63, 33, 93, 0.15), transparent 60%);
}

.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(to bottom, rgba(11, 11, 18, 0.9), rgba(11, 11, 18, 0) 70%); backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(10px, 2vw, 14px) 0; }
.brand { display: flex; gap: 8px; align-items: center; font-weight: 800; text-decoration: none; color: var(--text); }
.brand-icon { width: clamp(24px, 3vw, 32px); height: clamp(24px, 3vw, 32px); object-fit: contain; filter: drop-shadow(0 3px 8px rgba(140, 116, 165, 0.3)); }
.brand-text { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.nav-links { display: flex; gap: clamp(12px, 2vw, 20px); list-style: none; padding: 0; margin: 0; }
.nav-links a { text-decoration: none; color: var(--muted); padding: clamp(6px, 1vw, 10px) clamp(8px, 1vw, 12px); border-radius: 8px; transition: color 0.2s ease, background 0.2s ease; }
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-cta { display: flex; gap: clamp(6px, 1vw, 10px); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: transform 0.3s ease; }

@media (max-width: 860px) {
  .nav { flex-direction: column; align-items: flex-start; padding: clamp(8px, 2vw, 10px) 0; }
  .nav-links { display: none; flex-direction: column; gap: 10px; width: 100%; }
  .nav-toggle { display: block; }
  .nav[aria-expanded="true"] .nav-links { display: flex; }
  .nav-cta { flex-direction: column; gap: 8px; width: 100%; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 480px) {
  .brand-text { font-size: clamp(0.9rem, 2vw, 1rem); }
  .nav-toggle span { width: 18px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: clamp(8px, 1vw, 10px) clamp(12px, 1.5vw, 14px); border-radius: 12px; cursor: pointer; text-decoration: none; font-weight: 600;
  border: 1px solid var(--border); background: var(--glass); color: var(--text);
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(140, 116, 165, 0.3); }
.btn.solid { background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.outline { background: rgba(79, 42, 117, 0.16); border-color: rgba(79, 42, 117, 0.45); }
.btn:active { transform: translateY(0); }
.copy-btn { background: transparent; border: none; cursor: pointer; font-size: 1rem; color: var(--muted); transition: color 0.2s; }
.copy-btn:hover { color: var(--text); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 16px;
  padding: clamp(12px, 1.5vw, 18px); transition: box-shadow 0.3s ease;
}
.card:hover { box-shadow: 0 0 15px rgba(140, 116, 165, 0.2); }
.card-title { margin: 0 0 10px; font-weight: 700; font-size: clamp(1rem, 1.2vw, 1.1rem); }

.hero {
  display: flex; flex-direction: column; gap: clamp(12px, 2vw, 28px); padding: clamp(20px, 3vw, 54px) 0;
  position: relative; overflow: hidden;
}
.hero-content { text-align: center; }
.hero-content h1 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin: 0; }
.hero-content .subtitle { max-width: 65ch; margin: clamp(8px, 1.5vw, 12px) auto; font-size: clamp(0.9rem, 1.2vw, 1.1rem); color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; gap: clamp(8px, 1.5vw, 12px); margin-top: clamp(12px, 2vw, 16px); flex-wrap: wrap; }
.stat-card {
  min-width: clamp(150px, 20vw, 180px); padding: clamp(10px, 1.5vw, 12px);
  border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); transition: transform 0.2s ease;
}
.stat-card:hover { transform: scale(1.02); }
.stat-card .label { font-size: clamp(0.75rem, 1vw, 0.85rem); color: var(--muted); }
.stat-card .value { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 800; margin-top: 4px; }
.stat-card .value::after { content: "+"; margin-left: 2px; font-weight: 600; color: var(--brand); }
.chip {
  padding: clamp(4px, 0.8vw, 6px) clamp(8px, 1.2vw, 10px); border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04); color: var(--text); font-weight: 600; cursor: pointer; transition: background 0.25s ease, border-color 0.25s ease;
}
.chip-online { background: rgba(51, 214, 159, 0.12); border-color: rgba(51, 214, 159, 0.4); color: #b7ffe5; }
.hero-art { display: none; position: relative; min-height: clamp(200px, 25vw, 280px); }
.shape {
  position: absolute; border-radius: 20px; filter: blur(2px) drop-shadow(0 10px 20px rgba(79, 42, 117, 0.4)); transition: transform 0.3s ease;
}
.shape.s1 { width: clamp(100px, 12vw, 130px); height: clamp(100px, 12vw, 130px); left: 10%; top: 12%; background: linear-gradient(180deg, var(--brand), transparent); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.shape.s2 { width: clamp(120px, 15vw, 160px); height: clamp(120px, 15vw, 160px); left: 55%; top: 10%; background: linear-gradient(180deg, var(--brand-2), transparent); clip-path: circle(50%); }
.shape.s3 { width: clamp(90px, 10vw, 110px); height: clamp(90px, 10vw, 110px); left: 35%; top: 58%; background: linear-gradient(180deg, var(--brand-3), transparent); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; }
  .hero-stats { flex-direction: row; }
}

@media (min-width: 768px) {
  .hero { flex-direction: row; align-items: center; }
  .hero-content { text-align: left; flex: 1.2; }
  .hero-art { display: block; flex: 0.8; }
}

@media (min-width: 1024px) {
  .hero-content h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
  .hero-content .subtitle { font-size: clamp(1rem, 1.3vw, 1.2rem); }
}

.portal .grid { gap: clamp(12px, 1.5vw, 16px); }
.grid.two { display: grid; grid-template-columns: 1fr; gap: clamp(12px, 1.5vw, 16px); }
.linklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: clamp(8px, 1vw, 12px); }
.linkpill {
  display: flex; align-items: center; gap: clamp(8px, 1vw, 10px); padding: clamp(10px, 1.2vw, 12px) clamp(12px, 1.5vw, 14px);
  border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.035); text-decoration: none; color: var(--text);
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}
.linkpill:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.06); border-color: rgba(140, 116, 165, 0.4); box-shadow: 0 0 10px rgba(140, 116, 165, 0.3); }
.linkpill .dot { width: clamp(8px, 1vw, 10px); height: clamp(8px, 1vw, 10px); border-radius: 999px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: 0 0 0 2px rgba(79, 42, 117, 0.2); }
.quick-info { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: clamp(6px, 1vw, 10px); }
.quick-info li { display: grid; grid-template-columns: clamp(12px, 1.5vw, 18px) auto 1fr; gap: clamp(6px, 1vw, 10px); align-items: center; }
.quick-info a { color: var(--text); }
.quick-info .badge { width: clamp(10px, 1.2vw, 14px); height: clamp(10px, 1.2vw, 14px); border-radius: 4px; background: linear-gradient(180deg, var(--brand), var(--brand-3)); }

@media (min-width: 768px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

.team .header-row { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.5vw, 16px); align-items: center; }
.filters { display: flex; gap: clamp(6px, 1vw, 10px); flex-wrap: wrap; }
.filters .chip { opacity: 0.7; }
.filters .chip.active, .chip:hover { opacity: 1; border-color: rgba(140, 116, 165, 0.5); background: rgba(140, 116, 165, 0.12); box-shadow: 0 0 10px rgba(140, 116, 165, 0.2); }
.team-grid { margin-top: clamp(10px, 1.5vw, 12px); display: grid; grid-template-columns: 1fr; gap: clamp(10px, 1.5vw, 14px); }
.member {
  position: relative; padding: clamp(12px, 1.5vw, 16px); border-radius: 16px; background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border); transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease;
}
.member:hover { transform: translateY(-3px); border-color: rgba(140, 116, 165, 0.4); background: rgba(255, 255, 255, 0.055); box-shadow: 0 0 15px rgba(140, 116, 165, 0.3); }
.member-header { display: flex; align-items: center; gap: clamp(8px, 1vw, 12px); }
.avatar { --size: clamp(48px, 6vw, 64px); width: var(--size); height: var(--size); border-radius: 12px; overflow: hidden; position: relative; transition: box-shadow 0.3s ease; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar:hover { box-shadow: 0 0 20px rgba(140, 116, 165, 0.7); }
.role { font-size: clamp(0.7rem, 0.9vw, 0.82rem); color: var(--muted); }
.tag { padding: clamp(2px, 0.3vw, 2px) clamp(6px, 0.8vw, 8px); border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); font-size: clamp(0.65rem, 0.8vw, 0.76rem); }
.member-actions { display: flex; gap: clamp(6px, 1vw, 8px); margin-top: clamp(8px, 1vw, 10px); flex-wrap: wrap; }
.icon-btn {
  --size: clamp(30px, 4vw, 38px); display: inline-grid; place-items: center; width: var(--size); height: var(--size);
  border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}
.icon-btn:hover { transform: translateY(-2px); border-color: rgba(140, 116, 165, 0.35); background: rgba(255, 255, 255, 0.08); }

@media (min-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .team .header-row { flex-wrap: nowrap; }
}

@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.avatar-glow { box-shadow: 0 0 20px rgba(140, 116, 165, 0.7), 0 0 40px rgba(79, 42, 117, 0.6); }
.avatar-crown::after {
  content: "👑"; position: absolute; top: clamp(-12px, -1.5vw, -14px); left: 50%; transform: translateX(-50%) rotate(-10deg);
  font-size: clamp(16px, 2vw, 20px); pointer-events: none;
}
.avatar-aura::before {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; background: linear-gradient(45deg, #8C74A5, #4F2A75, #33d69f, #8C74A5);
  background-size: 300% 300%; animation: auraGlow 6s linear infinite; z-index: -1;
}
@keyframes auraGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.avatar-sparkle::before, .avatar-sparkle::after {
  content: "✦"; position: absolute; font-size: clamp(10px, 1.2vw, 12px); color: #e8e7f3; opacity: 0.8;
  animation: sparkleFloat 3s infinite ease-in-out;
}
.avatar-sparkle::before { top: clamp(-4px, -0.5vw, -6px); left: clamp(-4px, -0.5vw, -6px); animation-delay: 0s; }
.avatar-sparkle::after { bottom: clamp(-4px, -0.5vw, -6px); right: clamp(-4px, -0.5vw, -6px); animation-delay: 1.5s; }
@keyframes sparkleFloat { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; } 50% { transform: translateY(-6px) scale(1.2); opacity: 1; } }

.site-footer { margin-top: clamp(40px, 4vw, 48px); border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); padding: clamp(12px, 1.5vw, 16px) 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.5vw, 16px); align-items: center; justify-content: space-between; }
.socials { display: flex; gap: clamp(10px, 1.5vw, 16px); flex-wrap: wrap; align-items: center; }
.icon {
  display: inline-flex; align-items: center; justify-content: center; width: clamp(36px, 4vw, 42px); height: clamp(36px, 4vw, 42px);
  border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.035); color: var(--text); text-decoration: none;
  padding: clamp(6px, 0.8vw, 8px); transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.icon:hover { border-color: rgba(140, 116, 165, 0.4); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 10px rgba(140, 116, 165, 0.2); }
.icon svg { width: clamp(16px, 2vw, 20px); height: clamp(16px, 2vw, 20px); }
.copy { color: var(--muted); display: flex; gap: clamp(6px, 1vw, 8px); align-items: center; }
.copy a { color: var(--muted); text-decoration: none; }

@media (max-width: 600px) {
  .site-footer .container { flex-direction: column; text-align: center; }
  .socials { justify-content: center; }
}

.modal { position: fixed; inset: 0; display: none; place-items: center; z-index: 60; }
.modal[open] { display: grid; }
.overlay { position: absolute; inset: 0; background: rgba(3, 3, 6, 0.6); backdrop-filter: blur(4px); }
.dialog {
  position: relative; width: clamp(300px, 85vw, 520px); padding: clamp(16px, 2vw, 20px);
  background: var(--card); border-radius: 16px; animation: pop 0.22s cubic-bezier(0.2, 0.7, 0.3, 1.2);
}
.dialog .close {
  position: absolute; top: clamp(6px, 1vw, 8px); right: clamp(8px, 1vw, 10px); border: 0; background: transparent;
  font-size: clamp(20px, 2.5vw, 28px); color: var(--muted); cursor: pointer; transition: color 0.2s ease;
}
.dialog .close:hover { color: var(--text); }
@keyframes pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.cursor-dot, .cursor-ring { position: fixed; pointer-events: none; z-index: 100; transform: translate(-50%, -50%); mix-blend-mode: normal; }
.cursor-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--text); box-shadow: 0 0 0 2px rgba(79, 42, 117, 0.55); }
.cursor-ring {
  width: 40px; height: 40px; border-radius: 999px; border: 2px solid rgba(140, 116, 165, 0.55);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.cursor-ring.hidden { opacity: 0; }
.cursor-ring.enlarge { width: 60px; height: 60px; border-color: rgba(140, 116, 165, 0.9); box-shadow: 0 0 15px rgba(140, 116, 165, 0.5); }

@media (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none; }
}

.theme-toggle {
  position: fixed; right: clamp(10px, 1.5vw, 14px); bottom: clamp(10px, 1.5vw, 14px); z-index: 70;
  width: clamp(36px, 4vw, 42px); height: clamp(36px, 4vw, 42px); border-radius: 12px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(140, 116, 165, 0.45); box-shadow: 0 0 10px rgba(140, 116, 165, 0.3); }

.reveal { opacity: 0; transform: translateY(12px); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.6s linear; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }