:root {
  --hc-primary: #2563eb;
  --hc-primary-dark: #1e40af;
  --hc-bg: #f4f6fb;
  --hc-card-radius: 1rem;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 72px;
  background: var(--hc-bg);
  color: #1f2937;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ---- Navbar ---- */
.hc-navbar {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%);
}
.hc-navbar .navbar-brand { font-weight: 700; letter-spacing: .3px; }
.hc-navbar .nav-link { color: rgba(255,255,255,.8); font-weight: 500; }
.hc-navbar .nav-link:hover, .hc-navbar .nav-link.active { color: #fff; }

/* ---- Hero ---- */
.hc-hero {
  background: linear-gradient(135deg, var(--hc-primary-dark) 0%, var(--hc-primary) 55%, #38bdf8 100%);
  color: #fff;
  border-radius: var(--hc-card-radius);
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px -20px rgba(30, 64, 175, .6);
}
.hc-hero h1 { font-weight: 800; letter-spacing: -.5px; }
.hc-hero .lead { opacity: .9; max-width: 720px; }
.hc-hero code { color: #fde68a; background: rgba(255,255,255,.12); }

/* ---- Cards ---- */
.card {
  border: 0;
  border-radius: var(--hc-card-radius);
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px -12px rgba(16,24,40,.18);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  border-radius: var(--hc-card-radius) var(--hc-card-radius) 0 0 !important;
  font-weight: 600;
}

.platform-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -16px rgba(16,24,40,.3);
}
.platform-card .icon {
  width: 88px; height: 88px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 24px;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}
.platform-card .icon.github { background: #e2e8f0; }
.platform-card .icon.azure  { background: #dbeafe; }

/* ---- Forms ---- */
.form-control, .form-select {
  border-radius: .6rem;
  padding: .7rem .9rem;
  border-color: #d9dee7;
}
.form-control:focus { border-color: var(--hc-primary); }
.btn { border-radius: .6rem; font-weight: 600; }
.btn-primary {
  background: linear-gradient(90deg, var(--hc-primary-dark), var(--hc-primary));
  border: 0;
}
.btn-primary:hover { filter: brightness(1.08); }

/* ---- Checklist panel ---- */
.hc-checklist li { padding: .3rem 0; }
.hc-checklist li::marker { color: var(--hc-primary); font-weight: 700; }

/* ---- Report ---- */
.score-ring {
  width: 150px; height: 150px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; line-height: 1;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.25), 0 16px 30px -14px rgba(0,0,0,.5);
}
.score-ring .num { font-size: 3rem; }
.score-ring .den { font-size: .9rem; opacity: .85; font-weight: 600; }
.score-good { background: linear-gradient(135deg, #16a34a, #4ade80); }
.score-mid  { background: linear-gradient(135deg, #d97706, #fbbf24); }
.score-bad  { background: linear-gradient(135deg, #dc2626, #f87171); }

.grade-pill {
  font-size: 1.75rem; font-weight: 800; padding: .35rem 1.1rem; border-radius: .9rem;
}

.check-card { overflow: hidden; }
.check-card.status-Passed        { border-left: 6px solid #16a34a; }
.check-card.status-Partial       { border-left: 6px solid #d97706; }
.check-card.status-Failed        { border-left: 6px solid #dc2626; }
.check-card.status-NotApplicable { border-left: 6px solid #94a3b8; }

.table > :not(caption) > * > * { padding: .65rem .75rem; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; border-bottom-width: 1px; }

details > summary { cursor: pointer; list-style: none; }
details > summary::before { content: "▸ "; }
details[open] > summary::before { content: "▾ "; }

.footer { background: #fff; }
