:root {
  --bg: #0b1020;
  --panel: rgba(18, 24, 49, 0.86);
  --panel-2: rgba(25, 31, 63, 0.95);
  --text: #eef2ff;
  --muted: #aab4d6;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #7c4dff;
  --accent-2: #ff4da6;
  --success: #59d18c;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 77, 255, 0.28), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 77, 166, 0.18), transparent 25%),
    linear-gradient(180deg, #070b16, #0b1020 35%, #0e1530 100%);
  color: var(--text);
  min-height: 100vh;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero, .panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 28px;
  padding: 36px;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.18);
  border: 1px solid rgba(124, 77, 255, 0.35);
  color: #ddd3ff;
  font-size: 0.84rem;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 1rem;
}

.hero-note { margin-top: 12px !important; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.panel {
  border-radius: 24px;
  padding: 24px;
  grid-column: span 4;
}

.panel-wide { grid-column: span 8; }

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-heading p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.card-grid, .embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.card, .link-card, .embed-card {
  border-radius: 20px;
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.discord-icon, .fallback-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.discord-meta h3, .link-card h3, .embed-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.discord-meta p, .card p, .link-card p, .embed-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}

.stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.status-online { color: var(--success); }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:hover { transform: translateY(-1px); opacity: 0.94; }
.button-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.button-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-row a:last-child {
  white-space: nowrap;
}

.embed-frame {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #0f1428;
}

.helper-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #fff;
}

@media (max-width: 920px) {
  .panel, .panel-wide { grid-column: span 12; }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1200px);
    padding-top: 18px;
  }
  .hero, .panel { padding: 18px; border-radius: 20px; }
  .discord-header { align-items: flex-start; }
  .link-row { flex-direction: column; align-items: flex-start; }
}
