:root {
  --bg: #0d0f12;
  --bg-elevated: #151820;
  --bg-card: #12151c;
  --border: #252a36;
  --text: #e8ecf4;
  --muted: #9aa3b5;
  --cyan: #00e5ff;
  --magenta: #ff00e5;
  --warn-bg: rgba(255, 180, 0, 0.12);
  --warn-border: rgba(255, 180, 0, 0.45);
  --warn-text: #ffd666;
  --radius: 14px;
  --shadow: 0 0 0 1px rgba(0, 229, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 229, 255, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.bg-ring {
  position: fixed;
  inset: -20% auto auto 50%;
  width: min(900px, 140vw);
  height: min(900px, 140vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 42%, rgba(0, 229, 255, 0.06) 48%, rgba(255, 0, 229, 0.05) 55%, transparent 62%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.75rem;
}

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

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 0 16px rgba(0, 180, 255, 0.35);
}
@media (max-width: 640px) {
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { display: none; }
}

.brand-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, var(--cyan) 58%, var(--magenta) 72%, transparent 75%),
    conic-gradient(from 210deg, var(--cyan), var(--magenta), var(--cyan));
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.45), 0 0 28px rgba(255, 0, 229, 0.25);
  flex-shrink: 0;
}

.brand-name {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(105deg, var(--cyan), #7af0ff 40%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.notice {
  margin: 1rem 0 1.75rem;
  padding: 0.95rem 1.1rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  color: var(--warn-text);
  font-size: 0.95rem;
}

.section {
  margin-bottom: 2.5rem;
}

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

.section-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #0a0c10;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #0a0c10;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.logo-placeholder::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, var(--cyan) 56%, var(--magenta) 70%, transparent 74%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge-prerelease {
  color: #ffd666;
  background: rgba(255, 180, 0, 0.12);
  border-color: rgba(255, 180, 0, 0.4);
}

.badge-soon {
  color: #b8c0ff;
  background: rgba(120, 140, 255, 0.12);
  border-color: rgba(120, 140, 255, 0.4);
}

.badge-fork {
  color: #9ad7ff;
  background: rgba(0, 180, 255, 0.1);
  border-color: rgba(0, 180, 255, 0.35);
}

.badge-related {
  color: #c8f0d0;
  background: rgba(80, 200, 120, 0.1);
  border-color: rgba(80, 200, 120, 0.35);
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.meta strong {
  color: var(--text);
  font-weight: 600;
}

.warn-line {
  margin: 0;
  font-size: 0.8rem;
  color: var(--warn-text);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-primary {
  color: #041016;
  background: linear-gradient(105deg, var(--cyan), #7af0ff 45%, #ff6ef0);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  cursor: default;
  pointer-events: none;
}

.help ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.help li {
  margin-bottom: 0.55rem;
}

.help li:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-note {
  font-size: 0.8rem;
  opacity: 0.85;
}

.download-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.download-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}


.footer-copy {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0.35rem 0 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.social-link:hover {
  color: var(--cyan);
  text-decoration: none;
}

.social-icon {
  flex-shrink: 0;
}

/* —— Fleet explainer —— */
.fleet-section .fleet-body {
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fleet-body p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.fleet-body p:last-child {
  margin-bottom: 0;
}

.fleet-traits {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.fleet-traits li {
  margin-bottom: 0.55rem;
}

.fleet-traits li:last-child {
  margin-bottom: 0;
}

.fleet-traits strong {
  color: var(--text);
}

.fleet-note {
  font-size: 0.85rem !important;
  opacity: 0.9;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: 0.25rem !important;
}

/* —— Expandable capabilities —— */
.cap-details {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.03);
  padding: 0.35rem 0.65rem 0.45rem;
}

.cap-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  padding: 0.3rem 0;
  user-select: none;
}

.cap-summary::-webkit-details-marker {
  display: none;
}

.cap-summary::before {
  content: "▸ ";
  color: var(--magenta);
}

.cap-details[open] .cap-summary::before {
  content: "▾ ";
}

.cap-list {
  margin: 0.25rem 0 0.35rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cap-list li {
  margin-bottom: 0.35rem;
}

.cap-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 639px) {
  .fleet-body {
    padding: 1rem !important;
  }

  .cap-summary {
    font-size: 0.85rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
  }
}

.logo-fallback {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; color: #e6faff;
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(255,0,170,0.18)), #0a0c10;
  border: 1px solid var(--border);
}
.card-top .logo { border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.45); }

/* ShopVictorious */
.shop-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.shop-logo { width: 200px; height: 200px; border-radius: 20px; object-fit: cover; box-shadow: 0 0 24px rgba(0,229,255,0.35), 0 0 48px rgba(255,0,229,0.2); }
.shop-card { border-color: rgba(255,0,229,0.45); }

/* ShopVictorious */
.shop-banner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 24px; margin-bottom: 20px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(0,229,255,0.10), rgba(255,0,229,0.12)); border: 1px solid rgba(255,0,229,0.45); box-shadow: var(--shadow), 0 0 32px rgba(255,0,229,0.15); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.shop-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 0 40px rgba(0,229,255,0.3); }
.shop-banner .shop-logo { width: 160px; height: 160px; }
.shop-banner-text { flex: 1 1 260px; }
.shop-banner h2 { font-size: 2.2rem; margin: 4px 0 8px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--cyan); }
.shop-enter { margin-top: 8px; }
.store-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 720px) { .store-grid { grid-template-columns: 1fr 1fr; } }
.store-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; min-height: 150px; }
.store-btn:hover { transform: translateY(-2px); }
.store-bully { border-color: rgba(255,0,229,0.5); }
.store-bully:hover { box-shadow: 0 0 28px rgba(255,0,229,0.35); }
.store-hw { border-color: rgba(0,229,255,0.5); }
.store-hw:hover { box-shadow: 0 0 28px rgba(0,229,255,0.35); }
.store-icon { font-size: 2rem; }
.store-name { font-size: 1.35rem; font-weight: 700; }
.store-desc { color: var(--muted); }
.merch-heading { margin: 8px 0 4px; font-size: 1.3rem; }
.merch-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .merch-grid { grid-template-columns: repeat(3, 1fr); } }
.merch-item { margin: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.merch-item img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.merch-item figcaption { padding: 10px 12px; font-size: .9rem; color: var(--text); }
