:root {
  --page-bg: #09121f;
  --panel-bg: rgba(19, 30, 49, 0.92);
  --panel-border: rgba(145, 170, 212, 0.18);
  --text: #e8eef8;
  --muted: #a8b7d3;
  --accent: #2bb7f3;
  --success: #1d9e7b;
  --shadow: 0 24px 70px rgba(3, 8, 20, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1200px, calc(100vw - 48px));
  color-scheme: dark;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(28, 138, 136, 0.32), transparent 28%),
    radial-gradient(circle at top left, rgba(128, 24, 40, 0.38), transparent 34%),
    linear-gradient(180deg, #0b1526 0%, #09121f 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell-container { width: var(--container); margin: 0 auto; }
.federation-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(9, 18, 31, 0.86);
  border-bottom: 1px solid rgba(155, 179, 216, 0.12);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand-cluster, .header-tools, .brand-lockup, .utility-links { display: flex; align-items: center; }
.brand-cluster { gap: 18px; min-width: 0; }
.brand-lockup { gap: 14px; }
.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.brand-kicker, .module-eyebrow, .section-kicker, .card-kicker, .package-label {
  display: block;
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7ed7ff;
}
.brand-lockup strong, .module-identity strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.1;
}
.module-identity {
  padding-left: 18px;
  border-left: 1px solid rgba(155, 179, 216, 0.2);
}
.header-tools {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.shell-search { display: grid; gap: 6px; }
.shell-search-label { font-size: 0.8rem; color: var(--muted); }
.shell-search input {
  width: clamp(240px, 28vw, 340px);
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(155, 179, 216, 0.22);
  background: rgba(14, 24, 40, 0.94);
  color: var(--text);
  outline: none;
}
.shell-search input:focus {
  border-color: rgba(126, 215, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(126, 215, 255, 0.12);
}
.utility-links {
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}
.utility-links a:hover { color: var(--text); }
.user-greeting {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.shell-main { padding: 34px 0 72px; }
.hero, .strip-grid, .workspace-grid, .access-panel { margin-bottom: 24px; }
.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 24px;
}
.hero-copy, .hero-status-card, .panel, .summary-card {
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero-copy { padding: 36px; }
.hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.98;
  max-width: 11ch;
}
.hero-body {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}
.hero-actions, .cta-row, .panel-heading {
  display: flex;
  align-items: center;
}
.hero-actions, .cta-row {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, #1ca7de 0%, #2279ff 100%);
  color: white;
}
.btn-secondary {
  border-color: rgba(155, 179, 216, 0.24);
  background: rgba(255, 255, 255, 0.04);
}
.hero-status-card, .panel { padding: 28px; }
.hero-status-card h2, .panel h2, .panel h3 { margin: 8px 0 14px; }
.status-list, .step-list, .support-grid, .footer-link-list { display: grid; gap: 12px; }
.status-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.status-list li, .profile-item, .step-card, .support-item, .package-card, .agent-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(155, 179, 216, 0.12);
}
.status-list li {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.status-list span, .profile-item span, .support-item span {
  color: var(--muted);
  font-size: 0.9rem;
}
.strip-grid, .workspace-grid, .profile-grid, .support-grid, .package-grid, .agent-grid {
  display: grid;
  gap: 18px;
}
.strip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-card { padding: 22px; }
.summary-card h3 { margin: 10px 0 12px; font-size: 1.2rem; }
.access-panel, .workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; }
.profile-grid, .package-grid, .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-stack { display: grid; gap: 10px; margin-top: 18px; color: #9dd8ff; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.pill.success { background: rgba(29, 158, 123, 0.18); color: #9df0d5; }
.pill.warning { background: rgba(211, 166, 78, 0.18); color: #ffd992; }
.hidden { display: none; }
.search-hidden { display: none !important; }
.module-footer {
  border-top: 1px solid rgba(155, 179, 216, 0.12);
  padding: 28px 0 40px;
  background: rgba(8, 14, 24, 0.74);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 24px;
}
.footer-link-list a, .link-stack a { color: #9dd8ff; }
@media (max-width: 1100px) {
  .hero, .strip-grid, .workspace-grid, .access-panel, .footer-grid, .profile-grid, .package-grid, .agent-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .header-row, .brand-cluster, .header-tools, .utility-links, .panel-heading {
    align-items: flex-start;
  }
  .header-row, .brand-cluster, .header-tools { flex-direction: column; }
  .hero, .strip-grid, .workspace-grid, .access-panel, .footer-grid, .profile-grid, .package-grid, .agent-grid {
    grid-template-columns: 1fr;
  }
  .shell-search input { width: min(100%, 420px); }
  .hero-copy { padding: 28px; }
}
