@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap');

:root {
  --bg: #08080d;
  --panel: rgba(18, 18, 26, 0.68);
  --panel-strong: rgba(22, 22, 34, 0.88);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --accent: #ff0066;
  --accent-2: #ff3b8d;
  --danger: #ff365f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 0, 102, 0.18), transparent 34rem),
    linear-gradient(135deg, #050509 0%, #11111c 55%, #07070d 100%);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.52;
}

.bg-glow-one {
  width: 280px;
  height: 280px;
  background: rgba(255, 0, 102, 0.3);
  top: 10%;
  right: 8%;
}

.bg-glow-two {
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
  bottom: 8%;
  left: 8%;
}

.app-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-wrap {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 0, 102, 0.35), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 45px rgba(255, 0, 102, 0.12);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  position: relative;
  z-index: 2;
}

.brand-fallback {
  position: absolute;
  font-weight: 900;
  font-size: 30px;
  color: white;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 800;
}

.eyebrow.accent { color: var(--accent-2); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 0;
  line-height: 1;
}

.nav-tabs {
  display: flex;
  gap: 8px;
  padding: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

.nav-tab {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-tab:hover, .nav-tab.active {
  background: rgba(255, 0, 102, 0.16);
  color: white;
}

.page { display: none; }
.page.active { display: block; }

.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.hero-card, .news-panel, .vote-card, .iframe-card {
  padding: clamp(22px, 4vw, 34px);
}

.hero-card h2, .vote-card h2 {
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.hero-text, .vote-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 720px;
}

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

.server-card {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 24px;
  padding: 18px;
  transition: 0.2s ease;
}

.server-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 102, 0.58);
  background: rgba(255, 0, 102, 0.08);
}

.server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.server-card h3 { margin-bottom: 8px; }
.server-card p { color: var(--muted); line-height: 1.5; }

.badge {
  color: white;
  background: rgba(255, 0, 102, 0.18);
  border: 1px solid rgba(255, 0, 102, 0.4);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.primary-btn, .secondary-btn {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-btn {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 40px rgba(255, 0, 102, 0.24);
}

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

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


.download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.download-btn {
  border: 0;
  border-radius: 18px;
  padding: 16px 22px;
  font-weight: 900;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 48px rgba(255, 0, 102, 0.28);
  transition: 0.2s ease;
}

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

.install-box {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
}

.install-box p { margin: 4px 0 0; color: var(--muted); }

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.panel-title-row h3 { margin: 0; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

.news-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--stroke);
  margin-bottom: 12px;
}

.news-item h4 { margin: 0 0 8px; }
.news-item p { margin: 0; color: var(--muted); line-height: 1.5; }

.vote-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
}

.actions-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.actions-row .primary-btn,
.actions-row .secondary-btn { width: auto; }

.iframe-card { min-height: 620px; padding: 10px; overflow: hidden; }

iframe {
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
}

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

.link-card {
  color: white;
  text-decoration: none;
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: 0.2s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 102, 0.54);
}

.link-card span {
  color: var(--accent-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.link-card strong {
  font-size: 24px;
  margin-top: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 18px;
  border-radius: 16px;
  color: white;
  background: rgba(20, 20, 30, 0.9);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .topbar, .hero-grid, .vote-layout, .server-grid, .links-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-tabs { overflow-x: auto; }
  .hero-card h2, .vote-card h2 { font-size: 44px; }
}
