:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0b1020;
  --panel: rgba(15, 22, 35, 0.78);
  --panel-2: rgba(21, 31, 49, 0.78);
  --text: #f4f7ff;
  --muted: #a8b3c7;
  --soft: #dce5ff;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #5865f2;
  --accent-2: #57f287;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(
      circle at 8% 18%,
      rgba(88, 101, 242, 0.24),
      transparent 30rem
    ),
    radial-gradient(
      circle at 90% 18%,
      rgba(87, 242, 135, 0.12),
      transparent 30rem
    ),
    linear-gradient(145deg, #070b12 0%, #090e18 55%, #07120f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    );
  background-size: 86px 86px;
  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black 18%,
      black 72%,
      transparent
    );
  opacity: 0.16;
}

body::after {
  content: "";
  position: fixed;
  width: 72vw;
  height: 72vw;
  max-width: 980px;
  max-height: 980px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(88, 101, 242, 0.16),
      transparent 68%
    );
  filter: blur(52px);
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav,
main,
footer {
  position: relative;
  z-index: 1;
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.nav nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
}

.nav nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 430px);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
  padding: 36px 0 84px;
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.eyebrow {
  width: fit-content;
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.44);
  background: rgba(88, 101, 242, 0.13);
  color: #dbe0ff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(4rem, 8.1vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  background:
    linear-gradient(180deg, #ffffff 0%, #cfd6ff 45%, #8b96ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 650;
  line-height: 1.72;
}

.hero-actions,
.beta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 15px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background:
    linear-gradient(135deg, #5865f2 0%, #735dff 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 46px rgba(88, 101, 242, 0.36);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.button.primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 20px 60px rgba(88, 101, 242, 0.48);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 2px;
}

.hero-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-panel,
.step-card,
.command-card,
.feature-grid article,
.beta-panel,
.page-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(13, 19, 31, 0.78);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.30),
    0 0 88px rgba(88, 101, 242, 0.06);
  backdrop-filter: blur(18px);
}

.product-panel {
  overflow: hidden;
  border-radius: 28px;
}

.panel-top {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.panel-body {
  padding: 28px;
}

.panel-label {
  margin: 0 0 12px;
  color: #ccd3ff;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.panel-body h2 {
  margin: 0 0 22px;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.status-list span {
  color: var(--muted);
  font-weight: 800;
}

.status-list strong {
  color: #dfffe9;
  font-size: 0.88rem;
}

.panel-note {
  margin: 22px 0 0;
  color: var(--muted);
}

.section {
  padding: 92px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.section-heading {
  max-width: 620px;
}

.section-heading.centered {
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.centered .eyebrow {
  margin-inline: auto;
}

.section-heading h2,
.beta-panel h2 {
  margin: 16px 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.section-heading p,
.beta-panel p,
.step-card p,
.feature-grid p,
.page-card p,
.page-card li {
  color: var(--muted);
}

.quickstart {
  padding-top: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  border-radius: 24px;
  padding: 24px;
}

.step-card.featured {
  border-color: rgba(88, 101, 242, 0.42);
  background:
    linear-gradient(
      180deg,
      rgba(88, 101, 242, 0.14),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(13, 19, 31, 0.78);
}

.step-card > span,
.feature-grid article > span {
  color: #cdd3ff;
  font-size: 0.82rem;
  font-weight: 900;
}

.step-card h3,
.feature-grid h3 {
  margin: 12px 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}

.step-card p {
  min-height: 54px;
  margin: 0 0 18px;
}

code {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 25, 39, 0.78);
  color: #dbe4ff;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.command-card {
  display: grid;
  gap: 18px;
  border-radius: 26px;
  padding: 24px;
}

.command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.command-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.command-row span {
  width: 100%;
  color: var(--soft);
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article {
  min-height: 190px;
  border-radius: 24px;
  padding: 24px;
}

.feature-grid p {
  margin: 0;
}

.beta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 30px;
  padding: 34px;
  margin-bottom: 84px;
}

.beta-panel p {
  max-width: 650px;
  margin: 0;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--text);
}

.page-main {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

.page-card {
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
}

.page-card h1 {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.page-card h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.page-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 13vw, 6.2rem);
  }

  .hero-tags {
    justify-content: center;
  }

  .product-panel {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .beta-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav nav a {
    padding-inline: 10px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .hero-actions,
  .beta-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .status-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* discord pass 36 */

.nav nav a.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f4f7ff;
  background:
    linear-gradient(
      135deg,
      rgba(88, 101, 242, 0.32),
      rgba(115, 93, 255, 0.20)
    );
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav nav a.discord-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #57f287;
  box-shadow: 0 0 16px rgba(87, 242, 135, 0.7);
}

.nav nav a.discord-link:hover {
  background:
    linear-gradient(
      135deg,
      rgba(88, 101, 242, 0.42),
      rgba(115, 93, 255, 0.28)
    );
}

.discord-button {
  gap: 8px;
}

.discord-button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #57f287;
  box-shadow: 0 0 16px rgba(87, 242, 135, 0.7);
}

@media (max-width: 680px) {
  .nav nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* dashboard shell pass 39 */

.nav nav a.dashboard-link {
  color: #f4f7ff;
  background:
    linear-gradient(
      135deg,
      rgba(87, 242, 135, 0.18),
      rgba(88, 101, 242, 0.22)
    );
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.dashboard-hero {
  min-height: 56vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 48px 0 84px;
}

.dashboard-hero h1 {
  margin: 18px 0;
  max-width: 760px;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.dashboard-hero h1 span {
  display: block;
  background:
    linear-gradient(180deg, #ffffff, #8f98ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dashboard-hero p {
  max-width: 620px;
  color: var(--muted);
}

.dashboard-login-card,
.dashboard-sidebar,
.dashboard-panel,
.module-grid article {
  border: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(13, 19, 31, 0.78);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.30),
    0 0 88px rgba(88, 101, 242, 0.06);
  backdrop-filter: blur(18px);
}

.dashboard-login-card {
  border-radius: 28px;
  padding: 28px;
}

.dashboard-login-card h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.dashboard-login-card button:disabled,
.module-grid button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 90px;
}

.dashboard-sidebar {
  position: sticky;
  top: 18px;
  border-radius: 26px;
  padding: 22px;
}

.dashboard-sidebar p {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-sidebar h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.dashboard-sidebar > span {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.15);
  color: #dbe0ff;
  font-size: 0.82rem;
  font-weight: 900;
}

.dashboard-menu {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.dashboard-menu a {
  padding: 10px 12px;
  border-radius: 13px;
  color: var(--muted);
  font-weight: 850;
}

.dashboard-menu a.active,
.dashboard-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-content {
  display: grid;
  gap: 22px;
}

.dashboard-panel {
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.dashboard-panel h2 {
  margin: 16px 0;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.dashboard-panel p {
  color: var(--muted);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.dashboard-stats article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-stats span,
.module-grid p {
  color: var(--muted);
}

.dashboard-stats strong {
  display: block;
  margin-top: 6px;
  color: #dfffe9;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.module-grid article {
  border-radius: 20px;
  padding: 20px;
}

.module-grid h3 {
  margin: 0 0 8px;
  letter-spacing: -0.035em;
}

.module-grid button {
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 980px) {
  .dashboard-hero,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-stats,
  .module-grid {
    grid-template-columns: 1fr;
  }
}
/* dashboard foundation pass 40 */

.server-switcher-label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.server-switcher {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 850;
}

.server-switcher option {
  color: #0b1020;
}

.module-grid article {
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.module-grid article:hover,
.module-grid article.is-selected {
  transform: translateY(-2px);
  border-color: rgba(87, 242, 135, 0.38);
  background:
    linear-gradient(
      180deg,
      rgba(87, 242, 135, 0.08),
      rgba(88, 101, 242, 0.055)
    ),
    rgba(13, 19, 31, 0.82);
}

.dashboard-detail-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(87, 242, 135, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(87, 242, 135, 0.08),
      rgba(255, 255, 255, 0.035)
    );
}

.dashboard-detail-card h3 {
  margin: 10px 0;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.contract-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.contract-box span {
  width: 100%;
  color: var(--muted);
  font-weight: 900;
}

.contract-box code {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #dfffe9;
  font-size: 0.85rem;
}

.preview-note {
  margin-top: 16px;
  font-size: 0.95rem;
}

.auth-flow-list {
  display: none;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.auth-flow-list.is-open {
  display: grid;
  gap: 8px;
}


/* dashboard settings live pass 50 */

#dashboard-settings-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.dashboard-field {
  display: grid;
  gap: 8px;
}

.dashboard-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.dashboard-field select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 850;
}

.dashboard-field option {
  color: #0b1020;
}

/* dashboard hardening pass 51 */

.dashboard-readiness-card {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-readiness-card strong {
  color: var(--text);
}

.dashboard-readiness-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* dashboard UI polish pass 54 */
html {
  scroll-behavior: smooth;
}

.dashboard-menu a[aria-current="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-detail-card {
  scroll-margin-top: 24px;
}

.server-switcher:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* dashboard nav stability emergency fix */
.dashboard-panel,
.dashboard-detail-card {
  scroll-margin-top: 28px;
}
