:root {
  --manual-width: 1160px;
  --manual-glass: rgba(15, 24, 40, 0.82);
  --manual-glass-strong: rgba(11, 19, 32, 0.94);
  --manual-violet: #7c72f5;
  --manual-violet-soft: #a8b8fc;
  --manual-cyan: #5eead4;
  --manual-rose: #fb7185;
  --manual-gold: #fbbf24;
  --manual-green: #34d399;
}

.manual-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(124, 114, 245, 0.18), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(94, 234, 212, 0.12), transparent 28%),
    linear-gradient(180deg, #060810 0%, #09101b 32%, #0b1120 100%);
}

.manual-shell {
  max-width: var(--manual-width);
  margin: 0 auto;
  padding: 34px 24px 96px;
}

.manual-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 30px;
  background:
    radial-gradient(circle at 50% -8%, rgba(124,114,245,0.2) 0%, rgba(124,114,245,0.08) 30%, transparent 62%),
    linear-gradient(180deg, rgba(10,14,24,0.84) 0%, rgba(7,9,14,0.72) 74%);
  border: 1px solid rgba(41,60,90,0.7);
  border-radius: 30px;
  margin-bottom: 18px;
}

.manual-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(168,184,252,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,184,252,0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.72), transparent 88%);
  pointer-events: none;
}

.manual-hero::after {
  content: "";
  position: absolute;
  width: min(640px, 72vw);
  height: 280px;
  right: -120px;
  top: 68px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124,114,245,0.18) 0%, rgba(124,114,245,0) 72%);
  filter: blur(18px);
  pointer-events: none;
}

.manual-hero-card,
.manual-step-card,
.manual-info-card,
.manual-note-card,
.manual-cta-card,
.manual-tier-card {
  background: var(--manual-glass);
  border: 1px solid rgba(124, 114, 245, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.manual-hero-card {
  position: relative;
  z-index: 1;
  border-radius: 0;
  padding: 34px;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
}

.manual-eyebrow,
.manual-section-kicker,
.manual-tier-tag,
.manual-jump-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border: 1px solid rgba(124, 114, 245, 0.3);
  border-radius: 999px;
  background: rgba(124, 114, 245, 0.08);
  color: var(--manual-violet-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manual-eyebrow::before,
.manual-section-kicker::before,
.manual-tier-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.manual-hero-title {
  margin: 20px 0 18px;
  font-family: "Sora", var(--font);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #d7d2fe 48%, #8fb4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manual-hero-copy {
  max-width: 760px;
  margin: 0;
  color: #a8b4c7;
  font-size: 17px;
  line-height: 1.88;
  text-wrap: pretty;
}

.manual-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.manual-hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(15,24,40,0.96);
  border: 1px solid rgba(25,35,56,0.95);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 34px 4px;
  box-shadow: 0 22px 52px rgba(0,0,0,0.22);
}

.manual-stat-cell {
  min-width: 0;
  padding: 20px 18px;
  text-align: center;
  border-right: 1px solid rgba(25,35,56,0.95);
}

.manual-stat-cell:last-child {
  border-right: none;
}

.manual-stat-value {
  display: block;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: #a8b8fc;
  line-height: 1;
}

.manual-stat-label {
  display: block;
  color: #7a8da6;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

.manual-jump-shell {
  display: flex;
  justify-content: center;
  margin: -4px 0 30px;
}

.manual-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 980px);
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid rgba(41, 60, 90, 0.78);
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.manual-jump-label {
  padding-left: 4px;
  padding-right: 8px;
  border: none;
  background: transparent;
  color: rgba(168, 184, 252, 0.78);
}

.manual-jump-label::before {
  display: none;
}

.manual-jump a {
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #94a8c4;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.manual-jump a:hover,
.manual-jump a:focus-visible {
  color: #eef2ff;
  background: rgba(124, 114, 245, 0.12);
  border-color: rgba(124, 114, 245, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.manual-section {
  padding: 42px 0 22px;
}

.manual-section[id] {
  scroll-margin-top: 132px;
}

.manual-section-alt {
  position: relative;
}

.manual-section-head {
  margin-bottom: 28px;
}

.manual-section-head h2 {
  margin: 18px 0 12px;
  font-family: "Sora", var(--font);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.manual-section-head p {
  max-width: 760px;
  color: #9fb0c7;
  font-size: 15px;
  line-height: 1.85;
}

.manual-steps-grid,
.manual-card-grid,
.manual-tier-grid {
  display: grid;
  gap: 16px;
}

.manual-steps-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.manual-card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-card-grid-centered {
  max-width: calc((100% - 16px) * 2 / 3 + 8px);
  margin-inline: auto;
  margin-top: 16px;
}

.manual-tier-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.manual-step-card,
.manual-info-card,
.manual-tier-card,
.manual-note-card,
.manual-cta-card {
  border-radius: 22px;
  padding: 26px 24px;
}

.manual-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(124, 114, 245, 0.16);
  border: 1px solid rgba(124, 114, 245, 0.28);
  color: #eef2ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.manual-step-card h3,
.manual-info-card h3,
.manual-note-card h3,
.manual-tier-card h3,
.manual-cta-card h3 {
  margin: 0 0 10px;
  font-family: "Sora", var(--font);
  font-size: clamp(19px, 2vw, 20px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.manual-step-card p,
.manual-info-card p,
.manual-note-card p,
.manual-tier-card p,
.manual-cta-card p {
  margin: 0;
  color: #9fb0c7;
  font-size: 14px;
  line-height: 1.78;
}

.manual-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
}

.manual-list li {
  position: relative;
  display: block;
  padding-left: 22px;
  color: #c8d4e7;
  font-size: 14px;
  line-height: 1.74;
}

.manual-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--manual-cyan), var(--manual-violet));
  box-shadow: 0 0 14px rgba(124, 114, 245, 0.6);
}

.manual-note-card,
.manual-cta-card {
  margin-top: 16px;
  background: var(--manual-glass-strong);
}

.manual-tier-card {
  padding-top: 28px;
}

.tier-monitoring {
  border-color: rgba(148, 163, 184, 0.22);
}

.tier-review {
  border-color: rgba(251, 191, 36, 0.22);
}

.tier-action {
  border-color: rgba(251, 113, 133, 0.24);
}

.tier-monitoring .manual-tier-tag {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.08);
}

.tier-review .manual-tier-tag {
  color: var(--manual-gold);
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
}

.tier-action .manual-tier-tag {
  color: var(--manual-rose);
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.08);
}

.manual-tier-card .manual-tier-tag {
  margin-bottom: 14px;
}

/* Section-04/05 hotspot cards */
#alerts .manual-card-grid .manual-info-card,
#baselines .manual-card-grid.compact-gap .manual-info-card {
  padding: 28px 26px;
}

#alerts .manual-list li strong,
#baselines .manual-list li strong {
  white-space: normal;
}

.compact-gap {
  margin-top: 16px;
}

.manual-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.manual-cta-card .manual-eyebrow {
  margin-bottom: 14px;
}

.manual-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 1160px) {
  .manual-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .manual-hero,
  .manual-card-grid-three,
  .manual-tier-grid,
  .manual-cta-card {
    grid-template-columns: 1fr;
  }

  .manual-card-grid-two,
  .manual-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 24px 4px;
  }

  .manual-stat-cell:nth-child(2n) {
    border-right: none;
  }

  .manual-stat-cell {
    border-bottom: 1px solid rgba(25,35,56,0.95);
  }

  .manual-stat-cell:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .manual-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .manual-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .manual-hero {
    border-radius: 24px;
    padding: 24px 0 20px;
  }

  .manual-hero-card,
  .manual-step-card,
  .manual-info-card,
  .manual-note-card,
  .manual-cta-card,
  .manual-tier-card {
    padding: 22px 18px;
  }

  .manual-card-grid-two,
  .manual-steps-grid {
    grid-template-columns: 1fr;
  }

  .manual-hero-title {
    font-size: clamp(34px, 11vw, 50px);
  }

  .manual-hero-stats {
    grid-template-columns: 1fr;
    margin: 0 18px 0;
  }

  .manual-stat-cell {
    border-right: none;
    border-bottom: 1px solid rgba(25,35,56,0.95);
  }

  .manual-stat-cell:last-child {
    border-bottom: none;
  }

  .manual-jump {
    border-radius: 24px;
    justify-content: flex-start;
  }

  .manual-hero-actions,
  .manual-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .manual-hero-actions .btn,
  .manual-cta-actions .btn {
    width: 100%;
  }

  #alerts .manual-list li strong,
  #baselines .manual-list li strong {
    white-space: normal;
  }
}