:root {
  --bg: #030303;
  --sidebar: rgba(8, 8, 8, 0.85);
  --panel: rgba(10, 10, 10, 0.92);
  --card: rgba(14, 14, 14, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --orange: #ff7a18;
  --orange-soft: rgba(255, 122, 24, 0.15);
  --text: #f7f7f7;
  --muted: rgba(247, 247, 247, 0.6);
  --gradient: linear-gradient(135deg, #ff9e2c, #ff5f1f);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255, 122, 24, 0.08), transparent 45%), var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  padding: 2rem clamp(1rem, 5vw, 4rem);
}

.sidebar {
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: fit-content;
}

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

.brand img {
  width: 44px;
  height: 44px;
}

.brand h1 {
  margin: 0;
  font-size: 1.1rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

nav a {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

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

.status-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.status-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.sidebar .ghost,
.sidebar .primary {
  width: 100%;
  text-align: center;
}

.primary {
  background: var(--gradient);
  color: #050505;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  color: var(--text);
  text-align: center;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.hero h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  width: 100%;
}

.metric {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1rem;
}

.metric strong {
  display: block;
  font-size: 1.5rem;
}

.section {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.6rem;
}

.section header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.section header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.section p.lede {
  margin: 0;
  color: var(--muted);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.utilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.utility-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  background: rgba(20, 20, 20, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.2s, transform 0.2s;
}

.utility-card:hover {
  border-color: rgba(255, 122, 24, 0.4);
  transform: translateY(-2px);
}

.utility-card span {
  color: var(--orange);
  font-size: 0.9rem;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.split-panels article {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.3rem;
  background: rgba(18, 18, 18, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bullets {
  padding-left: 1rem;
  margin: 0;
  color: var(--muted);
}

.analytics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.analytics article {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  background: rgba(20, 20, 20, 0.7);
}

.analytics strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 0.3rem;
}

footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}
