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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
  min-height: 100vh;
}

a { color: #0369a1; text-decoration: none; }
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #334155;
}

/* ── BACK BUTTON ── */
.back-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.back-fab:hover { background: #1e293b; transform: translateY(-2px); color: #fff; }
.back-fab svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── HERO ── */
.hero {
  background: #0f172a;
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.hero p { color: #94a3b8; font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.hero-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-meta-item { text-align: center; }
.hero-meta-item .label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.stack-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.stack-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 5px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

/* ── LAYOUT ── */
.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 100px;
}

/* ── ACCORDION ── */
.accordion {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow 0.2s;
}
.accordion:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}
.accordion-header:hover { background: #f8fafc; }
.acc-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.acc-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.acc-text { min-width: 0; }
.acc-title { font-size: 15px; font-weight: 600; color: #0f172a; }
.acc-subtitle { font-size: 12px; color: #64748b; margin-top: 2px; }
.acc-chevron {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.accordion.open .acc-chevron { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 22px 24px;
  border-top: 1px solid #f1f5f9;
}
.accordion.open .accordion-body { display: block; padding-top: 22px; }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 10px;
  margin-top: 22px;
}
.section-label:first-child { margin-top: 0; }

p { font-size: 14px; line-height: 1.75; color: #334155; margin-bottom: 8px; }
ul { padding-left: 18px; }
ul li { font-size: 14px; line-height: 1.85; color: #334155; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }

/* ── CARDS ── */
.card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 14px 16px;
}
.card-title { font-size: 13px; font-weight: 600; color: #0f172a; margin-bottom: 8px; }
.card ul { padding-left: 16px; }
.card ul li { font-size: 13px; line-height: 1.75; color: #475569; }

/* ── SECURITY CARDS ── */
.sec-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0f172a;
  border-radius: 0 9px 9px 0;
  padding: 13px 15px;
}
.sec-title { font-size: 13px; font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.sec-desc { font-size: 12px; color: #64748b; line-height: 1.65; }

/* ── ROLE CARDS ── */
.role-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.role-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.role-emp .role-badge { background: #eff6ff; color: #1d4ed8; }
.role-staff .role-badge { background: #faf5ff; color: #7c3aed; }
.role-admin .role-badge { background: #fff7ed; color: #c2410c; }
.role-card p { font-size: 13px; color: #475569; margin: 0; line-height: 1.65; }

/* ── TEAM CARDS ── */
.team-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.team-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.team-role { font-size: 12px; color: #64748b; }

/* ── LIFECYCLE ── */
.lifecycle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 16px 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #334155;
  line-height: 2;
  margin-top: 8px;
  overflow-x: auto;
  white-space: pre;
}

/* ── CHECKLIST ── */
.feature-check { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #334155; line-height: 1.55; }
.check-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-yes { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.check-no  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { padding: 40px 16px 36px; }
  .content { padding: 24px 14px 100px; }
  .accordion-header { padding: 14px 16px; }
  .accordion-body { padding: 0 16px 18px; }
  .accordion.open .accordion-body { padding-top: 16px; }
  .acc-subtitle { display: none; }
  .back-fab { bottom: 18px; right: 18px; padding: 11px 16px; font-size: 12px; }
  .lifecycle { font-size: 11px; padding: 12px 14px; }
}