:root {
  --bg-deep: #0a0e1a;
  --bg-surface: #111728;
  --bg-elevated: #161d33;
  --bg-elevated-2: #1a2342;

  --accent: #4f7df5;
  --accent-2: #22d3a7;
  --accent-glow: rgba(79, 125, 245, 0.35);

  --text-primary: #e8ecf4;
  --text-secondary: #8a93ad;
  --text-dim: #5b6480;

  --border: rgba(140, 160, 220, 0.10);
  --border-strong: rgba(140, 160, 220, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 0 1px rgba(79,125,245,0.35), 0 8px 28px rgba(79,125,245,0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(79,125,245,0.08), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(34,211,167,0.05), transparent 60%),
    var(--bg-deep);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}

/* ---------- Header ---------- */
.header { margin-bottom: 56px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.pulse {
  width: 7px; height: 7px;
  background: var(--accent-2);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(34,211,167,0.18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,211,167,0.18); }
  50% { box-shadow: 0 0 0 7px rgba(34,211,167,0.05); }
}

.header h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #b8c2d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ---------- Summary bar ---------- */
.summary {
  margin-top: 36px;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 8px;
  box-shadow: var(--shadow-lg);
}

.summary-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
}

.summary-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.summary-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-divider {
  width: 1px;
  background: var(--border);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--border-strong) 8%,
    var(--border-strong) 92%,
    transparent 100%);
}

/* ---------- Incident ---------- */
.incident {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}

.incident-side {
  text-align: right;
  padding-top: 22px;
  position: relative;
}

.incident-side::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 32px;
  width: 11px;
  height: 11px;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(79,125,245,0.12);
}

.date-day {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.date-month {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.duration-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ---------- Card ---------- */
.incident-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.incident-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.7;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.incident-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.status {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-resolved {
  background: rgba(34,211,167,0.10);
  color: var(--accent-2);
  border: 1px solid rgba(34,211,167,0.25);
}

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.label-bar {
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.text {
  list-style: none;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  padding: 0;
}

.text li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.text li:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .container { padding: 56px 20px 80px; }
  .header h1 { font-size: 34px; }

  .summary { flex-wrap: wrap; }
  .summary-divider { display: none; }
  .summary-item { flex: 1 1 33%; padding: 8px; }

  .timeline::before { display: none; }

  .incident { grid-template-columns: 1fr; gap: 14px; }
  .incident-side {
    text-align: left;
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .incident-side::after { display: none; }
  .date-day { font-size: 22px; }
  .date-month { margin-top: 0; }
  .duration-pill { margin-top: 0; margin-left: auto; }

  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .incident-card { padding: 20px; }
}
