@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Exo+2:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #0c1018;
  --sidebar: #121826;
  --panel: #161f32;
  --panel-2: #1c2740;
  --text: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 255, 255, 0.55);
  --fuchsia: #fb3fc7;
  --fuchsia-soft: #ff8ae6;
  --cyan: #5eead4;
  --violet: #a855f7;
  --gold: #c9a962;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-clay: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-tech: "Exo 2", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(251, 63, 199, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(94, 234, 212, 0.08), transparent 45%),
    var(--bg);
}

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

.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  padding: 28px 20px;
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark { width: 40px; height: 40px; }

.brand-name {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.sidebar-greeting {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(251, 63, 199, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(251, 63, 199, 0.2);
  box-shadow: var(--shadow-clay);
}

.sidebar-greeting p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.sidebar-greeting strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  margin-top: 4px;
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-list a.is-active {
  background: linear-gradient(135deg, rgba(251, 63, 199, 0.2), rgba(94, 234, 212, 0.08));
  border: 1px solid rgba(251, 63, 199, 0.25);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-promo {
  margin-top: auto;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--fuchsia-soft), var(--violet));
  color: var(--bg);
  box-shadow: 0 16px 40px rgba(251, 63, 199, 0.3);
}

.sidebar-promo p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.sidebar-promo a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 16, 24, 0.85);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Main */
.main {
  padding: 28px 32px 48px;
  overflow-x: hidden;
}

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

.topbar h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0;
}

.topbar-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: 4px;
}

.search {
  flex: 1 1 240px;
  max-width: 360px;
  padding: 12px 16px 12px 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M14 14l-3-3'/%3E%3C/svg%3E") 14px center no-repeat;
  color: var(--text);
  font: inherit;
}

.search::placeholder { color: rgba(255, 255, 255, 0.35); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-clay);
}

.stat-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cyan);
}

.stat-card strong.accent-fuchsia { color: var(--fuchsia-soft); }
.stat-card strong.accent-gold { color: var(--gold); }

.stat-card small {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Version grid */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}

.section-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.versions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.version-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.version-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 63, 199, 0.3);
  box-shadow: 0 28px 56px rgba(251, 63, 199, 0.12);
}

.version-card.is-featured {
  border-color: rgba(94, 234, 212, 0.35);
}

.version-card__preview {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.version-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--panel));
}

.preview--clay {
  background:
    url("../assets/brand-mark-clay.png") center 35% / 56px no-repeat,
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5), transparent 40%),
    linear-gradient(145deg, #1a1028 0%, #C4B5E8 35%, #F4B4D4 65%, #A8E6CF 100%);
}

.preview--stage {
  background: linear-gradient(135deg, #070b12 0%, #1a1040 50%, rgba(94, 234, 212, 0.2) 100%);
}

.preview--y2k {
  background: linear-gradient(135deg, #bef264, #f9a8d4, #7dd3fc);
}

.preview--pro {
  background: linear-gradient(135deg, #0f172a, #701a75, #0891b2);
}

.preview--bold {
  background: linear-gradient(135deg, #0d9488, #ca8a04, #c2410c);
}

.preview--premium {
  background: linear-gradient(135deg, #1e1033, #fb3fc7, #6b21a8);
}

.preview--dev {
  background: linear-gradient(135deg, #fdf2f8, #fbcfe8, #f9a8d4);
}

.version-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(12, 16, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.version-card__badge--new { color: var(--cyan); border-color: rgba(94, 234, 212, 0.4); }
.version-card__badge--hot { color: var(--fuchsia-soft); border-color: rgba(251, 63, 199, 0.4); }

.version-card__body {
  padding: 18px 20px 20px;
}

.version-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 6px;
}

.version-card__tagline {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.version-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.version-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--fuchsia-soft), var(--fuchsia));
  color: #fff;
  box-shadow: 0 8px 24px rgba(251, 63, 199, 0.25);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.version-card code {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  word-break: break-all;
}

.version-card.is-hidden { display: none; }

.footer-note {
  margin-top: 36px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 960px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 32px; }
}
