:root {
  --bg: #0b0f17;
  --bg-soft: #111726;
  --panel: rgba(17, 23, 38, 0.88);
  --text: #f5f8ff;
  --muted: #98a3bd;
  --line: rgba(152, 163, 189, 0.14);
  --accent: #5865f2;
  --accent-strong: #7c88ff;
  --accent-pink: #e63d73;
  --ok: #2dd4bf;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 101, 242, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(230, 61, 115, 0.1), transparent 24%),
    linear-gradient(180deg, #0a0e16 0%, #0b0f17 45%, #0d1320 100%);
}

a {
  color: inherit;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.45;
}

.orb-one {
  top: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  background: rgba(88, 101, 242, 0.22);
}

.orb-two {
  top: 180px;
  right: -70px;
  width: 280px;
  height: 280px;
  background: rgba(230, 61, 115, 0.18);
}

.orb-three {
  bottom: 40px;
  left: 20%;
  width: 320px;
  height: 320px;
  background: rgba(45, 212, 191, 0.1);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.hidden {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  box-shadow: 0 0 0 6px rgba(88, 101, 242, 0.12);
}

.brand-mark.small {
  width: 12px;
  height: 12px;
  box-shadow: none;
}

.brand-text {
  font-size: 1.35rem;
}

.nav-links,
.topbar-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.96rem;
  transition: background 140ms ease, color 140ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-pink), #c62c5f);
  color: #fff;
  box-shadow: 0 18px 36px rgba(230, 61, 115, 0.2);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 48px 0 24px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.feature-card h2,
.roadmap-card h3,
.command-copy h3,
.mini-stat strong,
.status-row strong {
  margin: 0;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  color: #ffffff;
}

.hero-text {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 30px;
}

.hero-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-note-accent {
  color: var(--ok);
  font-weight: 800;
}

.auth-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-card-copy strong {
  display: block;
  font-size: 1.02rem;
}

.auth-card-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-avatar {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 999px;
  vertical-align: middle;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.18);
  pointer-events: none;
}

.hero-visual::before {
  width: 720px;
  height: 320px;
  right: -260px;
  bottom: -110px;
}

.hero-visual::after {
  width: 520px;
  height: 220px;
  left: -160px;
  bottom: -180px;
}

.screen-card,
.panel,
.feature-card,
.roadmap-card,
.status-row,
.command-card,
.mini-panel,
.mini-stat,
.guild-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.screen-card {
  position: relative;
  width: min(560px, 100%);
  border-radius: 24px;
  overflow: hidden;
}

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

.screen-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.screen-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 360px;
}

.screen-sidebar {
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.screen-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-weight: 700;
}

.screen-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.screen-link.active {
  background: rgba(88, 101, 242, 0.12);
  color: var(--text);
}

.screen-content {
  padding: 20px;
}

.mini-panel {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.mini-label,
.mini-stat span,
.status-label,
.command-copy p,
.empty-state,
.feature-card p,
.roadmap-card p,
.guild-meta {
  color: var(--muted);
}

.mini-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

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

.mini-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.mini-stat span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.mini-stat strong {
  font-size: 1.45rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

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

.feature-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ok);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-card h2 {
  font-size: 1.25rem;
}

.feature-card p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  margin-top: 22px;
}

.panel {
  border-radius: 24px;
  padding: 26px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 1.9rem;
}

.status-stack,
.command-list,
.roadmap-grid,
.guild-list {
  display: grid;
  gap: 14px;
}

.status-row,
.command-card,
.roadmap-card,
.guild-card {
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
}

.status-row,
.command-card,
.guild-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-label {
  font-size: 0.95rem;
}

.command-copy h3 {
  font-size: 1.16rem;
}

.command-copy p {
  margin: 10px 0 0;
  line-height: 1.65;
}

.command-state {
  flex-shrink: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.15);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: lowercase;
}

.guild-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.guild-badge {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--ok);
  font-size: 0.84rem;
  font-weight: 700;
}

.empty-state {
  margin: 0;
}

.guilds-panel,
.roadmap-panel {
  margin-top: 22px;
}

.logged-in-view {
  padding: 34px 0 20px;
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 22px;
}

.profile-avatar {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  object-fit: cover;
  border: 6px solid rgba(88, 101, 242, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.profile-copy h1,
.servers-head h2 {
  margin: 0;
}

.profile-copy h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
}

.profile-copy p {
  margin: 8px 0 0;
  color: var(--accent-pink);
  font-size: 1.2rem;
  font-weight: 600;
}

.dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
}

.dashboard-tab {
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
}

.dashboard-tab.active {
  color: var(--accent-strong);
}

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

.servers-panel {
  border: 1px solid var(--line);
  background: rgba(20, 26, 39, 0.92);
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow);
  padding: 28px 32px 36px;
}

.servers-head {
  margin-bottom: 26px;
}

.servers-head h2 {
  font-size: 3rem;
}

.servers-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.server-card {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.server-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 26, 39, 0.96), rgba(12, 16, 24, 0.96));
  overflow: hidden;
}

.server-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-card-fallback {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-pink);
}

.server-card h3 {
  margin: 14px 0 6px;
  font-size: 1.5rem;
}

.server-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.config-feedback {
  margin: 0 0 18px;
  color: var(--muted);
}

.command-config-list {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.command-config-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.command-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.command-config-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.command-config-head p,
.config-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.command-access-badge {
  flex-shrink: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.15);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-card h3 {
  font-size: 1.15rem;
}

.roadmap-card p {
  margin: 12px 0 0;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .hero,
  .feature-strip,
  .content-grid,
  .roadmap-grid,
  .server-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 24px, 1240px);
  }

  .topbar {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .screen-layout {
    grid-template-columns: 1fr;
  }

  .screen-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .status-row,
  .command-card,
  .guild-card,
  .auth-card,
  .profile-hero,
  .profile-identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .servers-panel {
    padding: 22px;
  }

  .servers-head h2 {
    font-size: 2.4rem;
  }
}
