:root {
  --cil-navy: #112641;
  --cil-navy-mid: #24548e;
  --cil-cyan: #00aeeb;
  --cil-red: #eb3527;
  --cil-ink: #0f172a;
  --cil-muted: #6b7280;
  --cil-line: #e5e7eb;
  --cil-surface: #f6f9fe;
  --cil-bg: #f3f6f9;

  /* Timeline branch accents */
  --accent-status-bg: #ecfdf3;
  --accent-status-border: #bbf7d0;
  --accent-status: #059669;
  --accent-uptime-bg: #eef6fb;
  --accent-uptime-border: #7dd3fc;
  --accent-uptime: #00aeeb;
  --accent-escalation-bg: #fff1f2;
  --accent-escalation-border: #fecdd3;
  --accent-escalation: #eb3527;
  --accent-csat-bg: #fff7ed;
  --accent-csat-border: #fdba74;
  --accent-csat: #f97316;
  --accent-glpi-bg: #eff6ff;
  --accent-glpi-border: #bfdbfe;
  --accent-glpi: #112641;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--cil-ink);
  background: linear-gradient(160deg, #eef6fb 0%, var(--cil-bg) 45%, #e8eef5 100%);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.hero {
  background: linear-gradient(135deg, rgba(17, 38, 65, 0.98), rgba(0, 174, 235, 0.85));
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 18px 40px rgba(17, 38, 65, 0.16);
  margin-bottom: 20px;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark img { display: block; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.84);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.lede {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.env-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  white-space: nowrap;
}

.env-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.env-pill[data-env="test"]::before { background: #fbbf24; }
.env-pill[data-env="prod"]::before { background: #60a5fa; }
.env-pill[data-env="local"]::before { background: #f97316; }

.intro {
  margin: 0 0 20px;
  color: var(--cil-muted);
  line-height: 1.55;
}

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

.dash-card {
  background: #fff;
  border: 1px solid var(--cil-line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  box-shadow: 0 8px 24px rgba(17, 38, 65, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 38, 65, 0.1);
}

.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dash-eyebrow {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cil-muted);
}

.dash-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cil-surface);
  color: var(--cil-navy);
}

.dash-card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--cil-navy);
}

.dash-copy {
  margin: 0;
  color: var(--cil-muted);
  line-height: 1.5;
  flex: 1;
}

.dash-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: var(--cil-navy);
}

.dash-link::after {
  content: "→";
}

.accent-status {
  border-color: var(--accent-status-border);
  background: linear-gradient(180deg, #fff 0%, var(--accent-status-bg) 100%);
}
.accent-status .dash-link { background: var(--accent-status); }

.accent-history {
  border-color: #a5f3fc;
  background: linear-gradient(180deg, #fff 0%, #ecfeff 100%);
}
.accent-history .dash-link { background: #0891b2; }

.accent-uptime {
  border-color: var(--accent-uptime-border);
  background: linear-gradient(180deg, #fff 0%, var(--accent-uptime-bg) 100%);
}
.accent-uptime .dash-link { background: var(--accent-uptime); }

.accent-escalation {
  border-color: var(--accent-escalation-border);
  background: linear-gradient(180deg, #fff 0%, var(--accent-escalation-bg) 100%);
}
.accent-escalation .dash-link { background: var(--accent-escalation); }

.accent-csat {
  border-color: var(--accent-csat-border);
  background: linear-gradient(180deg, #fff 0%, var(--accent-csat-bg) 100%);
}
.accent-csat .dash-link { background: var(--accent-csat); }

.accent-glpi {
  border-color: var(--accent-glpi-border);
  background: linear-gradient(180deg, #fff 0%, var(--accent-glpi-bg) 100%);
}
.accent-glpi .dash-link { background: var(--accent-glpi); }

.footer-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(17, 38, 65, 0.04);
  color: var(--cil-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .hero-top { align-items: flex-start; }
  .dash-card { min-height: 0; }
}
