:root {
  --bg: #040713;
  --panel: rgba(10, 14, 26, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #edf4ff;
  --muted: rgba(237, 244, 255, 0.66);
  --cyan: #00dcff;
  --violet: #8d7dff;
  --green: #2ee59d;
  --orange: #ffb454;
  --red: #ff557d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 220, 255, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 85, 125, 0.12), transparent 32%),
    linear-gradient(180deg, #03050d 0%, #07101f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.28;
  pointer-events: none;
}

.hub-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.hub-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(8, 14, 34, 0.96), rgba(11, 16, 28, 0.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hub-kicker,
.card-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hub-hero h1,
.hub-card h2 {
  margin: 0;
}

.hub-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.hub-copy {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-link,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hub-link {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #06111b;
  box-shadow: 0 18px 40px rgba(0, 220, 255, 0.24);
}

.hub-link.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hub-link:hover,
.card-link:hover {
  transform: translateY(-2px);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.status-card,
.hub-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-card {
  padding: 18px;
}

.status-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-value {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.hub-card {
  position: relative;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
}

.hub-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  opacity: 0.95;
}

.hub-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-link {
  width: fit-content;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.accent-cyan::before { background: linear-gradient(90deg, var(--cyan), rgba(0, 220, 255, 0.1)); }
.accent-violet::before { background: linear-gradient(90deg, var(--violet), rgba(141, 125, 255, 0.1)); }
.accent-green::before { background: linear-gradient(90deg, var(--green), rgba(46, 229, 157, 0.1)); }
.accent-orange::before { background: linear-gradient(90deg, var(--orange), rgba(255, 180, 84, 0.1)); }
.accent-red::before { background: linear-gradient(90deg, var(--red), rgba(255, 85, 125, 0.1)); }

@media (max-width: 980px) {
  .status-strip,
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hub-shell {
    padding: 18px 14px 36px;
  }

  .hub-hero,
  .hub-card,
  .status-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hub-hero {
    flex-direction: column;
  }
}
