:root {
  --bg: #060816;
  --bg-alt: #0b1124;
  --panel: rgba(12, 17, 37, 0.78);
  --panel-strong: rgba(16, 23, 49, 0.94);
  --border: rgba(123, 157, 255, 0.18);
  --text: #eef2ff;
  --muted: #aeb9d9;
  --primary: #6d5dfc;
  --secondary: #23c4ff;
  --highlight: #8df6ff;
  --success: #7fffb6;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --container: min(1120px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(109, 93, 252, 0.25), transparent 28%),
    radial-gradient(circle at top right, rgba(35, 196, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #04050d 0%, #060816 30%, #091127 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(4, 7, 18, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 35px rgba(35, 196, 255, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  line-height: 1;
  gap: 0.15rem;
}

.brand-text strong,
.brand-text span,
.eyebrow,
h1,
h2,
h3,
.nav-links a,
.btn {
  font-family: "Rajdhani", sans-serif;
}

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

.brand-text span {
  color: var(--secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 0.75rem;
  gap: 0.22rem;
  flex-direction: column;
  justify-content: center;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

main {
  position: relative;
}

.page-section {
  display: none;
  position: relative;
  min-height: calc(100vh - 82px);
  padding: 5rem 0 4rem;
}

.page-section.active {
  display: block;
  animation: pageFade 0.45s ease;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(35, 196, 255, 0.2), transparent 25%),
    radial-gradient(circle at 80% 22%, rgba(109, 93, 252, 0.28), transparent 22%),
    radial-gradient(circle at 50% 75%, rgba(141, 246, 255, 0.08), transparent 18%);
}

.hero-grid,
.server-grid,
.contact-grid,
.content-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
  padding-top: 4rem;
}

.hero-copy,
.hero-panel,
.content-card,
.server-card,
.role-card,
.sidebar-card,
.contact-card,
.cta-panel,
.value-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 3rem;
  background: linear-gradient(180deg, rgba(8, 13, 31, 0.9), rgba(9, 14, 33, 0.7));
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--highlight);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h3 {
  font-size: 1.65rem;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--secondary);
  margin: 1rem 0;
  font-weight: 700;
}

.hero-description,
.content-card p,
.server-card p,
.role-card p,
.sidebar-card p,
.cta-panel p,
.feature-list,
.footer-content p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #08101f;
  background: linear-gradient(135deg, var(--highlight), var(--secondary));
  box-shadow: 0 18px 40px rgba(35, 196, 255, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 24px 48px rgba(35, 196, 255, 0.3);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-panel {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  overflow: hidden;
  min-height: 100%;
}

.hero-logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at center, rgba(109, 93, 252, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-logo {
  width: min(100%, 280px);
  filter: drop-shadow(0 16px 38px rgba(109, 93, 252, 0.28));
}

.stat-card {
  position: relative;
  padding: 1.4rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card.accent {
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.24), rgba(35, 196, 255, 0.12));
}

.stat-card strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  margin: 0.45rem 0;
}

.stat-label,
.server-status,
.server-meta span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--highlight);
}

.pulse-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -80px;
  border-radius: 50%;
  border: 1px solid rgba(35, 196, 255, 0.18);
  box-shadow: 0 0 0 25px rgba(35, 196, 255, 0.04), 0 0 0 55px rgba(109, 93, 252, 0.035);
}

.page-layout {
  display: grid;
  gap: 2rem;
}

.page-heading {
  max-width: 760px;
}

.page-heading h2 {
  margin-top: 0.35rem;
}

.content-grid,
.server-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.contact-card {
  padding: 2rem;
}

.values-grid,
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.value-card,
.role-card,
.sidebar-card,
.cta-panel {
  padding: 1.5rem;
}

.value-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 1.55rem;
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.2), rgba(35, 196, 255, 0.18));
}

.feature-list {
  margin: 1.5rem 0 2rem;
  padding-left: 1.1rem;
}

.feature-list li + li {
  margin-top: 0.7rem;
}

.server-card {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(9, 14, 33, 0.98), rgba(8, 11, 24, 0.88));
}

.server-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.server-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(109, 93, 252, 0.18);
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(127, 255, 182, 0.1);
}

.server-tagline {
  margin: 1rem 0 1.5rem;
}

.server-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.server-meta div,
.widget-placeholder {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-meta strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.4rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.invite-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-size: 1.2rem;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: rgba(35, 196, 255, 0.45);
  text-underline-offset: 0.18em;
  transition: color 0.25s ease, transform 0.25s ease;
}

.invite-link:hover {
  color: var(--highlight);
  transform: translateY(-1px);
}

.widget-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
}

.tracker-card {
  gap: 0.85rem;
}

.tracker-card p {
  color: var(--text);
  font-weight: 700;
}

.tracker-button {
  min-width: 180px;
}

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

.role-card {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.role-card:hover,
.value-card:hover,
.sidebar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 196, 255, 0.28);
  background: rgba(18, 25, 54, 0.92);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-grid {
  align-items: start;
}

.contact-sidebar {
  display: grid;
  gap: 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
}

.contact-form span {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(35, 196, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(35, 196, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--highlight);
}

.text-link {
  color: var(--secondary);
  word-break: break-word;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.social-links a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-links a:hover {
  background: rgba(35, 196, 255, 0.14);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 7, 18, 0.88);
}

.footer-content {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-content a {
  color: var(--secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.18s;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .server-grid,
  .contact-grid,
  .roles-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 2.3rem;
  }

  .server-meta,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .navbar {
    min-height: 74px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border-radius: 22px;
    background: rgba(5, 9, 21, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem 1rem;
  }

  .page-section {
    padding-top: 3.6rem;
  }

  .hero-grid {
    padding-top: 1rem;
  }

  .hero-copy,
  .hero-panel,
  .content-card,
  .server-card,
  .contact-card,
  .value-card,
  .role-card,
  .sidebar-card,
  .cta-panel {
    border-radius: 20px;
  }

  .server-meta,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .server-branding {
    align-items: flex-start;
  }

  h1 {
    line-height: 1.02;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100% - 1.1rem, 1120px);
  }

  .hero-copy,
  .hero-panel,
  .content-card,
  .server-card,
  .contact-card {
    padding: 1.35rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }
}
