/* Genesis Suite — портал-лендинг. Бренд/тема (дизайн-токены — заготовка под P2). */
:root {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-2: #1c232d;
  --border: #2a323d;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --accent: #6c8cff;
  --accent-2: #9a6cff;
  --ok: #3fb950;
  --warn: #d29922;
  --lock: #6e7681;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #1a2030 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topbar / бренд */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  background: rgba(14, 17, 22, .7); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font-weight: 800; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}
.brand-name { font-weight: 700; letter-spacing: .2px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

/* Switcher */
.switcher { position: relative; }
.switcher-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
}
.switcher-btn:hover { background: var(--surface-2); }
.grid-icon, .grid-icon::before, .grid-icon::after { display: block; }
.grid-icon {
  width: 16px; height: 16px;
  background-image: radial-gradient(currentColor 1.6px, transparent 1.7px);
  background-size: 6px 6px; color: var(--muted);
}
.switcher-menu {
  position: absolute; right: 0; top: 46px; width: 280px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.switcher-menu a {
  display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px;
  text-decoration: none; color: var(--text); background: var(--surface-2);
}
.switcher-menu a:hover { outline: 1px solid var(--accent); }
.switcher-menu a .si { font-size: 20px; }
.switcher-menu a .sn { font-weight: 600; font-size: 13px; }
.switcher-menu a[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Session */
.btn {
  font: inherit; cursor: pointer; border-radius: 10px; padding: 8px 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: #fff; font-weight: 600; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn:hover { filter: brightness(1.08); }
.user { color: var(--muted); font-size: 13px; }

/* Layout */
.wrap { width: min(1080px, 92vw); margin: 0 auto; padding: 40px 0 60px; flex: 1; }
.hero { padding: 28px 0 10px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); margin: 0 0 12px; line-height: 1.1; }
.accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); max-width: 60ch; font-size: 17px; }
.status { margin-top: 14px; font-size: 13px; color: var(--muted); }
.section-title { margin: 34px 0 16px; font-size: 15px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.loading { color: var(--muted); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--text); transition: transform .12s, border-color .12s;
}
.card[data-clickable="true"]:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-icon { font-size: 26px; }
.card-title { font-weight: 700; font-size: 17px; }
.card-kind { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.card-desc { color: var(--muted); font-size: 14px; flex: 1; }
.badge {
  align-self: flex-start; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border);
}
.badge.granted { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.badge.locked { color: var(--lock); }
.badge.unknown { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.card[data-clickable="false"] { opacity: .72; }

/* Footer */
.footer {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
@media (max-width: 560px) { .switcher-menu { grid-template-columns: 1fr; } }
