:root {
  color-scheme: dark;
  --bg: #0a0d18;
  --panel: #111727;
  --panel2: #151d30;
  --text: #f4f5fb;
  --muted: #929bb1;
  --purple: #9a7bff;
  --cyan: #5ce1e6;
  --gold: #f0c77a;
  --line: rgba(166,180,220,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "DM Sans", sans-serif; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.ambient { position: absolute; width: 500px; height: 500px; filter: blur(120px); opacity: .13; pointer-events: none; border-radius: 50%; }
.ambient-one { background: #714bff; top: 100px; left: -300px; }
.ambient-two { background: #17c6d1; top: 500px; right: -350px; }
.topbar {
  height: 82px; max-width: 1320px; margin: auto; padding: 0 36px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); position: relative; z-index: 2;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: "Space Grotesk"; font-size: 16px; letter-spacing: 1.4px; font-weight: 600; }
.brand b { color: var(--purple); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: linear-gradient(135deg,#9a7bff,#5542b9); border-radius: 10px; color: white; font-weight: 800; font-size: 19px; box-shadow: 0 5px 25px #7554ff44; }
.top-links { display: flex; gap: 38px; color: var(--muted); font-size: 13px; }
.top-links a:hover { color: white; }
.login-button, .primary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: 13px 18px; border-radius: 10px; background: #8b6cf5;
  font-size: 13px; font-weight: 700; box-shadow: 0 8px 30px #7956e633;
  transition: .2s ease;
}
.login-button:hover, .primary-button:hover { transform: translateY(-2px); background: #a18aff; }
.kick-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; color: #6545c7; font-weight: 900; font-size: 13px; }
.arrow { font-size: 17px; }
.hero { max-width: 1320px; min-height: 630px; margin: auto; padding: 82px 36px 90px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; position: relative; }
.eyebrow { color: var(--cyan); font-size: 10px; letter-spacing: 2.2px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; }
.pulse, .live-dot { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 13px var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Space Grotesk"; letter-spacing: -2.5px; }
h1 { font-size: clamp(48px,6vw,76px); line-height: 1.04; margin: 24px 0; }
h1 span, h2 span { color: var(--purple); }
.hero-description { max-width: 500px; color: var(--muted); line-height: 1.85; font-size: 15px; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 32px; }
.primary-button { padding: 16px 20px; }
.secondary-button { color: #c5c9d8; font-size: 13px; font-weight: 600; }
.secondary-button span { color: var(--cyan); margin-left: 8px; }
.hero-meta { display: flex; align-items: center; gap: 13px; margin-top: 54px; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--bg); border-radius: 50%; background: #252d46; margin-left: -7px; color: var(--gold); }
.avatar-stack span:first-child { margin-left: 0; }
.hero-meta strong, .hero-meta small { display: block; }
.hero-meta strong { font-size: 12px; }
.hero-meta small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.hero-art { position: relative; max-width: 550px; justify-self: end; width: 100%; }
.art-glow { position: absolute; inset: 12% -5%; background: #7658e6; filter: blur(90px); opacity: .2; }
.art-frame { height: 445px; border-radius: 20px; overflow: hidden; position: relative; border: 1px solid #a99aff44; box-shadow: 0 30px 90px #0008; }
.art-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.art-overlay { position: absolute; inset: 0; background: linear-gradient(0deg,#090d19 0%,transparent 65%),linear-gradient(90deg,#10142633,transparent); }
.art-label { position: absolute; top: 22px; left: 22px; font-size: 9px; letter-spacing: 2px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.art-caption { position: absolute; bottom: 28px; left: 28px; }
.art-caption span { display: block; color: var(--cyan); letter-spacing: 2px; font-size: 9px; margin-bottom: 12px; }
.art-caption strong { font: 600 30px/1.15 "Space Grotesk"; }
.floating-card { position: absolute; bottom: 50px; right: -35px; display: flex; gap: 13px; align-items: center; padding: 15px 20px; border: 1px solid var(--line); background: #151d30ee; border-radius: 12px; box-shadow: 0 15px 50px #0008; }
.floating-icon { color: var(--gold); font-size: 28px; }
.floating-card small, .floating-card strong { display: block; }
.floating-card small { color: var(--muted); font-size: 8px; letter-spacing: 1.5px; }
.floating-card strong { font-size: 13px; margin-top: 4px; }
.features, .classes { max-width: 1320px; margin: auto; padding: 75px 36px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 35px; gap: 25px; }
.section-heading h2 { font-size: clamp(30px,4vw,43px); margin: 13px 0 0; }
.section-heading p { color: var(--muted); max-width: 300px; line-height: 1.7; font-size: 12px; margin: 0 0 5px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature-card { background: linear-gradient(145deg,#141c2e,#0f1523); border: 1px solid var(--line); border-radius: 15px; padding: 27px; min-height: 240px; position: relative; transition: .2s; }
.feature-card:hover { transform: translateY(-5px); border-color: #9a7bff66; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 20px; margin-bottom: 28px; }
.purple { color: var(--purple); background: #9a7bff18; }
.cyan { color: var(--cyan); background: #5ce1e618; }
.gold { color: var(--gold); background: #f0c77a18; }
.card-number { position: absolute; top: 32px; right: 27px; color: #5c6680; font-size: 10px; }
.feature-card h3 { font: 600 18px "Space Grotesk"; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 12px; line-height: 1.7; min-height: 42px; }
.card-link { color: #a995ff; font-size: 9px; letter-spacing: 1.2px; font-weight: 800; }
.classes { padding-top: 55px; }
.class-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.class-card { display: flex; align-items: center; gap: 15px; padding: 20px 16px; border-radius: 13px; background: #111827; border: 1px solid var(--line); }
.class-symbol { font-size: 25px; color: var(--gold); }
.class-card small { color: var(--muted); font-size: 8px; letter-spacing: 1px; }
.class-card h3 { font: 600 16px "Space Grotesk"; margin: 5px 0 0; }
.join-banner { max-width: 1248px; margin: 35px auto 80px; padding: 45px 50px; border-radius: 18px; border: 1px solid #947bff44; background: radial-gradient(ellipse at 85% 50%,#6646bd55,transparent 45%),linear-gradient(110deg,#171b32,#111827); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.join-banner h2 { font-size: 38px; margin: 12px 0 0; }
footer { max-width: 1320px; margin: auto; border-top: 1px solid var(--line); padding: 25px 36px; display: flex; align-items: center; justify-content: space-between; color: #68738b; font-size: 9px; letter-spacing: 1px; }
footer .brand { color: var(--text); font-size: 13px; }
footer .brand-mark { width: 28px; height: 28px; font-size: 15px; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 65px; }
  .hero-art { justify-self: center; max-width: 600px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .class-grid { grid-template-columns: 1fr 1fr; }
  .join-banner { margin: 25px 20px 60px; }
}
@media (max-width: 560px) {
  .topbar { height: 70px; padding: 0 18px; }
  .top-links { display: none; }
  .login-button { padding: 10px 12px; font-size: 11px; }
  .hero { padding: 55px 20px 65px; }
  h1 { font-size: 49px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-meta { margin-top: 35px; }
  .art-frame { height: 340px; }
  .floating-card { right: -5px; bottom: 25px; }
  .features, .classes { padding: 55px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: 1fr 1fr; }
  .class-card { padding: 15px 10px; gap: 10px; }
  .class-card h3 { font-size: 14px; }
  .class-card small { font-size: 7px; }
  .join-banner { margin: 15px 20px 50px; padding: 30px 24px; align-items: flex-start; flex-direction: column; }
  .join-banner h2 { font-size: 32px; }
  footer { padding: 22px 20px; gap: 18px; align-items: flex-start; flex-direction: column; }
}

/* AUTH MODAL */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal.open { display: flex; }
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: #050711dc;
  backdrop-filter: blur(9px);
}
.auth-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 35px;
  border: 1px solid #9a7bff44;
  border-radius: 20px;
  background: linear-gradient(145deg,#182039,#0d1322);
  box-shadow: 0 30px 100px #000b, 0 0 50px #7956e622;
  animation: authAppear .22s ease;
}
@keyframes authAppear {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-close {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff08;
  color: #cbd0e2;
  font-size: 23px;
  cursor: pointer;
}
.auth-brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg,#9a7bff,#5542b9);
  box-shadow: 0 5px 25px #7554ff44;
  font: 800 24px "Space Grotesk";
}
.auth-panel h2 {
  margin: 10px 0;
  font: 700 34px "Space Grotesk";
  letter-spacing: -1.5px;
}
.auth-panel h2 span { color: var(--purple); }
.auth-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #090f1c;
}
.auth-tab {
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 600 12px "DM Sans";
  cursor: pointer;
}
.auth-tab.active {
  color: white;
  background: #8062e8;
  box-shadow: 0 4px 15px #7956e633;
}
.auth-view[hidden] { display: none !important; }
.auth-panel label {
  display: block;
  margin: 15px 0 7px;
  color: #cbd0e2;
  font-size: 11px;
  font-weight: 700;
}
.auth-panel input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #303b55;
  border-radius: 9px;
  outline: none;
  background: #090f1c;
  color: white;
  font: 500 13px "DM Sans";
  transition: border .2s, box-shadow .2s;
}
.auth-panel input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #9a7bff20;
}
.auth-hint {
  display: block;
  margin-top: 7px;
  color: #8490aa;
  font-size: 10px;
}
.auth-submit, .auth-kick-button {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  color: white;
  font: 700 13px "DM Sans";
  cursor: pointer;
  transition: .2s;
}
.auth-submit {
  background: linear-gradient(110deg,#8b6cf5,#684bd0);
  box-shadow: 0 8px 25px #7956e633;
}
.auth-submit:hover, .auth-kick-button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.auth-submit:disabled, .auth-kick-button:disabled { opacity: .6; cursor: wait; transform: none; }
.auth-kick-button {
  margin-top: 0;
  border: 1px solid #3a465f;
  background: #202b42;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 21px 0 5px;
  color: #77829c;
  font-size: 10px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-switch {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}
.auth-switch button {
  border: 0;
  padding: 0;
  background: none;
  color: #ad98ff;
  font: 700 11px "DM Sans";
  cursor: pointer;
}
.auth-error {
  padding: 11px 13px;
  margin-bottom: 16px;
  border: 1px solid #ff6c8260;
  border-radius: 9px;
  background: #ff526012;
  color: #ff9baa;
  font-size: 11px;
  line-height: 1.6;
}
.auth-error[hidden] { display: none; }
.auth-account-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #090f1c;
}
.auth-account-icon { color: var(--gold); font-size: 28px; }
.auth-account-info strong { color: white; font: 700 17px "Space Grotesk"; }
.auth-account-info small { color: var(--muted); font-size: 10px; }
.auth-logout {
  display: block;
  margin: 17px auto 0;
  border: 0;
  background: transparent;
  color: #ff8b9a;
  font: 600 11px "DM Sans";
  cursor: pointer;
}
.auth-footnote {
  margin: 24px 0 0;
  color: #73809a;
  text-align: center;
  font-size: 9px;
  line-height: 1.6;
}
@media (max-width: 480px) {
  .auth-panel { padding: 27px 22px; }
  .auth-panel h2 { font-size: 30px; }
}
