:root {
  --ink: #f8f5ff;
  --muted: #b5a8d6;
  --violet: #7c5cff;
  --dark: #0a0612;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--dark);
  line-height: 1.6;
}

.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(124, 92, 255, 0.08), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(124, 92, 255, 0.06), transparent 60%),
    #0a0612;
}

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

.site-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 6, 18, 0.9);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(124, 92, 255, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(124, 92, 255, 0.12);
}

/* Hero */
.hero {
  padding: 120px 0 70px;
  text-align: center;
}

.hero-content {
  max-width: 620px;
  margin: 0 auto;
}

.hero-logo {
  width: 110px;
  height: 110px;
  margin-bottom: 32px;
  filter: drop-shadow(0 8px 24px rgba(124, 92, 255, 0.5));
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-copy {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Server showcase */
.server-showcase {
  overflow: hidden;
  padding: 26px 0 96px;
}

.server-showcase-header {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  text-align: center;
}

.server-showcase h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.server-rail {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: server-slide 58s linear infinite;
  will-change: transform;
}

.server-rail:hover {
  animation-play-state: paused;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 310px;
  min-height: 108px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.server-card.placeholder {
  color: rgba(248, 245, 255, 0.58);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.055);
}

.server-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #fff;
  background: rgba(124, 92, 255, 0.22);
  border-radius: 50%;
  font-weight: 800;
}

.server-card.placeholder .server-icon {
  background: rgba(255, 255, 255, 0.1);
}

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

.server-details {
  min-width: 0;
  text-align: left;
}

.server-details h3 {
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.server-card.placeholder .server-details p {
  color: rgba(181, 168, 214, 0.62);
}

@keyframes server-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 32px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn i {
  font-size: 1.15rem;
}

.btn-primary {
  color: #fff;
  background: var(--violet);
}

.btn-primary:hover {
  background: #8d6fff;
  transform: translateY(-2px);
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-large {
  min-height: 62px;
  padding: 0 36px;
  font-size: 1.05rem;
}

/* Features */
.section {
  padding: 40px 0 80px;
}

.feature-list {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 92, 255, 0.3);
}

.feature-item i {
  font-size: 2rem;
  color: var(--violet);
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
}

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

/* Install page */
.install-container {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
  padding: 56px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.install-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 24px rgba(124, 92, 255, 0.5));
}

.install-container h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.install-container p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.install-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-status {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  color: #eefbff;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 8px;
}

.install-status.active {
  display: flex;
}

.install-status.complete {
  background: rgba(124, 92, 255, 0.08);
  border-color: rgba(124, 92, 255, 0.22);
}

.install-status.complete .request-loader {
  display: none;
}

.install-status p {
  margin: 0;
  color: #d7faff;
  font-size: 0.98rem;
}

.request-loader {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: end;
  gap: 4px;
  width: 54px;
  height: 28px;
  flex: 0 0 auto;
}

.request-loader span {
  display: block;
  width: 6px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #68e8ff, #7c5cff);
  box-shadow: 0 0 14px rgba(104, 232, 255, 0.35);
  animation: request-wave 1.05s ease-in-out infinite;
}

.request-loader span:nth-child(2) {
  animation-delay: 0.08s;
}

.request-loader span:nth-child(3) {
  animation-delay: 0.16s;
}

.request-loader span:nth-child(4) {
  animation-delay: 0.24s;
}

.request-loader span:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes request-wave {
  0%,
  100% {
    height: 8px;
    opacity: 0.55;
    transform: translateY(0);
  }

  45% {
    height: 28px;
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Info page */
.page-main {
  padding: 60px 0 80px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.info-header img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 8px 24px rgba(124, 92, 255, 0.5));
}

.info-header h1 {
  font-size: 2.5rem;
  margin: 0 0 8px;
}

.info-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.info-content {
  max-width: 640px;
}

.info-section {
  margin-bottom: 40px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.info-section h2 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 600;
}

.feature-list-simple {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list-simple li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--ink);
}

.feature-list-simple i {
  color: var(--violet);
  font-size: 1rem;
}

.info-cta {
  margin-top: 32px;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
  }

  .nav-link {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .server-card {
    width: 270px;
    min-height: 96px;
    padding: 16px;
  }

  .server-icon {
    width: 58px;
    height: 58px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .info-header {
    flex-direction: column;
    text-align: center;
  }

  .info-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 2.2rem;
  }

  .install-container {
    padding: 32px 24px;
  }
}
