:root {
  --bg:        #080810;
  --surface:   #10101a;
  --surface2:  #18182a;
  --surface3:  #1e1e30;
  --border:    #252538;
  --accent:    #6e57ff;
  --accent-hi: #9d87ff;
  --accent-lo: #3d2dcc;
  --glow:      rgba(110,87,255,0.35);
  --text:      #d8d8f0;
  --muted:     #5a5a80;
  --ok:        #4dffa0;
  --r:         12px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* ── LAYOUT ──────────────────────────────────── */
#app {
  display: flex;
  min-height: 100vh;
}

#sidebar {
  width: 320px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

#main {
  flex: 1;
  padding: 60px 40px;
  position: relative;
  max-width: 900px;
}

/* Background Grid Pattern */
#app::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* ── SIDEBAR ELEMENTS ────────────────────────── */
.s-head {
  padding: 32px 24px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 20%, var(--accent-hi) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-dot { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.tagline {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-sec {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.nav-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ok);
}

/* ── CONTENT STYLES ──────────────────────────── */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}

h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

p {
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 20px;
  max-width: 700px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--r);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.product:hover {
  border-color: var(--accent-lo);
  background: var(--surface2);
  transform: translateY(-2px);
}

.product h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: #fff;
}

.old-name {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.feature-list {
  list-style: none;
  margin-top: 15px;
}

.feature-list li {
  font-size: 12px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list li::before {
  content: '→';
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  margin-top: 20px;
  transition: 0.2s;
}

.btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.count-badge {
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--accent-hi);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  #app { flex-direction: column; }
  #sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border); }
  #main { padding: 40px 20px; }
  .card-grid { grid-template-columns: 1fr; }
}
