/* ============================================================
   HTO Consulting — Design System
   css/style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #111111;
  --bg-card:       #1a1a1a;
  --border:        #2a2a2a;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --green:         #7CBA5F;
  --green-light:   #A8E086;
  --green-pale:    #d9ead3;
  --green-08:      rgba(124, 186, 95, 0.08);
  --green-12:      rgba(124, 186, 95, 0.12);
  --green-25:      rgba(124, 186, 95, 0.25);

  /* Accent: Cyan — info, datos técnicos */
  --cyan:          #00D4FF;
  --cyan-08:       rgba(0, 212, 255, 0.08);
  --cyan-15:       rgba(0, 212, 255, 0.15);
  --cyan-25:       rgba(0, 212, 255, 0.25);

  /* Accent: Orange — warnings, alertas */
  --orange:        #FF8C42;
  --orange-08:     rgba(255, 140, 66, 0.08);
  --orange-15:     rgba(255, 140, 66, 0.15);
  --orange-25:     rgba(255, 140, 66, 0.25);

  /* Accent: Red — reglas críticas, "no hacer" */
  --red:           #FF4B4B;
  --red-08:        rgba(255, 75, 75, 0.08);
  --red-15:        rgba(255, 75, 75, 0.15);
  --red-25:        rgba(255, 75, 75, 0.25);

  /* Accent: Bright green — éxito, "sí hacer" */
  --success:       #00FF88;
  --success-08:    rgba(0, 255, 136, 0.08);
  --success-15:    rgba(0, 255, 136, 0.15);
  --success-25:    rgba(0, 255, 136, 0.25);

  /* Accent: Yellow — tips, notas */
  --yellow:        #FFD700;
  --yellow-08:     rgba(255, 215, 0, 0.08);
  --yellow-15:     rgba(255, 215, 0, 0.15);
  --yellow-25:     rgba(255, 215, 0, 0.25);

  /* Accent: Lime — tips, notas */
  --lime:          #B8FF57;
  --lime-08:       rgba(184, 255, 87, 0.08);
  --lime-10:       rgba(184, 255, 87, 0.10);
  --lime-15:       rgba(184, 255, 87, 0.15);
  --lime-25:       rgba(184, 255, 87, 0.25);

  /* Accent: Purple — timing, proceso */
  --purple:        #B388FF;
  --purple-08:     rgba(179, 136, 255, 0.08);
  --purple-15:     rgba(179, 136, 255, 0.15);
  --purple-25:     rgba(179, 136, 255, 0.25);

  /* Accent: Emerald — info boxes, callouts, summary boxes */
  --emerald:       #28B464;
  --emerald-10:    rgba(40, 180, 100, 0.10);
  --emerald-20:    rgba(40, 180, 100, 0.20);
  --emerald-30:    rgba(40, 180, 100, 0.30);

  --warning:       #FF8C42;
  --warning-06:    rgba(255, 140, 66, 0.06);
  --warning-20:    rgba(255, 140, 66, 0.20);

  --text-primary:   #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted:     #666666;

  --font-sans: 'Montserrat', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --radius:     8px;
  --radius-lg:  12px;
  --max-width:  860px;
  --nav-height: 64px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-body {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
}

section {
  margin-bottom: 4rem;
}

hr.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.4) 50%, transparent 100%);
  margin: 4rem 0;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img,
.nav-logo svg {
  height: 28px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-back {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Language Toggle ───────────────────────────────────── */
.lang-toggle {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-secondary);
}

.lang-btn.active {
  background: var(--success);
  color: #0a0a0a;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.nav-back::before {
  content: '←';
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.nav-back:hover {
  color: var(--green-light);
}

.nav-back:hover::before {
  transform: translateX(-3px);
}

/* ── Page Header ────────────────────────────────────────── */
.page-header {
  padding: 40px 0 32px;
}

.page-header .badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1.4;
}

.badge-solid {
  background-color: var(--green);
  color: #fff;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--green);
  color: var(--green-light);
}

.badge-dark {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
}

/* ── Section Labels ─────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--success);
  margin-bottom: 20px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.10) 0%, transparent 70%);
  border-radius: var(--radius);
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.5), 0 0 16px rgba(0, 255, 136, 0.2); }
  50%      { box-shadow: 0 0 12px rgba(0, 255, 136, 0.8), 0 0 24px rgba(0, 255, 136, 0.35); }
}

.section-label::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border: 1.5px solid rgba(0, 255, 136, 0.6);
  border-radius: 50%;
  flex-shrink: 0;
  animation: glow-pulse 2.5s ease-in-out infinite;
}

/* ── Stats Row (index) ──────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4rem;
}

.stat-item {
  background-color: var(--bg-card);
  padding: 28px 24px;
  text-align: center;
  border-top: 2px solid var(--green);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--success);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.5);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

/* ── KPI Grid ───────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(124, 186, 95, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  border-color: rgba(124, 186, 95, 0.6);
  box-shadow: 0 0 35px rgba(124, 186, 95, 0.24);
}

.kpi-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--success);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 28px rgba(0, 255, 136, 0.6);
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background-color: var(--bg-card);
  border: 1px solid rgba(124, 186, 95, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(124, 186, 95, 0.6);
  box-shadow: 0 0 35px rgba(124, 186, 95, 0.24);
  transform: translateY(-3px);
}

.card-highlight {
  background: linear-gradient(to right, rgba(124, 186, 95, 0.05) 0%, transparent 65%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card-highlight:hover {
  background: linear-gradient(to right, rgba(124, 186, 95, 0.09) 0%, transparent 65%);
  border-color: var(--green-25);
  border-left-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(124, 186, 95, 0.18);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.card-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* ── Info / Warning Boxes ───────────────────────────────── */
.info-box,
.warning-box {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
}

.info-box {
  background-color: var(--cyan-08);
  border: 1px solid var(--cyan-25);
  border-left: 3px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.10);
}

.warning-box {
  background-color: var(--orange-08);
  border: 1px solid var(--orange-25);
  border-left: 3px solid var(--orange);
  box-shadow: 0 0 24px rgba(255, 140, 66, 0.12);
}

.box-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.info-box .box-label {
  color: var(--cyan);
}

.warning-box .box-label {
  color: var(--orange);
}

.info-box p,
.warning-box p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.info-box strong,
.warning-box strong {
  color: var(--text-primary);
}

/* ── Box color modifiers ───────────────────────────────── */
.box-red {
  background-color: var(--red-08) !important;
  border: 1px solid var(--red-25) !important;
  border-left: 3px solid var(--red) !important;
  box-shadow: 0 0 24px rgba(255, 75, 75, 0.12) !important;
}
.box-red .box-label { color: var(--red) !important; }

.box-orange {
  background-color: var(--orange-08) !important;
  border: 1px solid var(--orange-25) !important;
  border-left: 3px solid var(--orange) !important;
  box-shadow: 0 0 24px rgba(255, 140, 66, 0.12) !important;
}
.box-orange .box-label { color: var(--orange) !important; }

.box-yellow {
  background-color: var(--yellow-08) !important;
  border: 1px solid var(--yellow-25) !important;
  border-left: 3px solid var(--yellow) !important;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.12) !important;
}
.box-yellow .box-label { color: var(--yellow) !important; }

.box-purple {
  background-color: var(--purple-08) !important;
  border: 1px solid var(--purple-25) !important;
  border-left: 3px solid var(--purple) !important;
  box-shadow: 0 0 24px rgba(179, 136, 255, 0.12) !important;
}
.box-purple .box-label { color: var(--purple) !important; }

.box-cyan {
  background-color: var(--cyan-08) !important;
  border: 1px solid var(--cyan-25) !important;
  border-left: 3px solid var(--cyan) !important;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.10) !important;
}
.box-cyan .box-label { color: var(--cyan) !important; }

.box-green {
  background-color: var(--emerald-10) !important;
  border: 1px solid var(--emerald-30) !important;
  border-left: 3px solid var(--emerald) !important;
  box-shadow: 0 0 24px rgba(40, 180, 100, 0.10) !important;
}
.box-green .box-label { color: var(--emerald) !important; }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead tr th {
  background-color: var(--green-12);
  color: var(--green-light);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

tbody tr {
  border-top: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.015);
}

tbody tr:hover {
  background-color: var(--green-08);
  border-left-color: var(--success);
}

tbody td {
  padding: 12px 16px;
  color: var(--text-primary);
  vertical-align: middle;
}

tbody td.muted {
  color: var(--text-secondary);
}

tbody td.green {
  color: var(--green-light);
  font-weight: 600;
}

/* ── Numbered Steps ─────────────────────────────────────── */
.steps {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  counter-increment: step-counter;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: rgba(0, 255, 136, 0.10);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--success);
  margin-top: 2px;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Checklists ─────────────────────────────────────────── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  margin-top: 7px;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

/* ── SOP List Items ─────────────────────────────────────── */
.sop-category {
  margin-bottom: 2.5rem;
}

.sop-category-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding: 6px 0 10px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sop-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid rgba(124, 186, 95, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.sop-item:not(.disabled):hover {
  border-color: rgba(124, 186, 95, 0.6);
  background-color: var(--green-08);
  box-shadow: 0 0 35px rgba(124, 186, 95, 0.24);
}

.sop-item.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.sop-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sop-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sop-item-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.sop-item-arrow {
  font-size: 1rem;
  color: var(--success);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sop-item:not(.disabled):hover .sop-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Code Blocks ────────────────────────────────────────── */
pre {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--green-light);
}

code {
  font-family: var(--font-mono);
}

p code,
li code,
td code {
  background-color: var(--green-08);
  border: 1px solid var(--green-25);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.82em;
  color: var(--green-light);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--green-light);
}

/* ── Typography Helpers ─────────────────────────────────── */
h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Utility ────────────────────────────────────────────── */
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.green-text { color: var(--green-light); }

/* ── Section Nav (sticky anchor bar) ───────────────────── */
.section-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar { display: none; }

.section-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.section-nav-link {
  display: inline-block;
  padding: 18px 22px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-nav-link:hover {
  color: var(--green-light);
  border-bottom-color: var(--green-25);
}

.section-nav-link.active {
  color: var(--success);
  border-bottom-color: var(--success);
}

/* ── Tier Badges (in tables) ────────────────────────────── */
.tier-base {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.tier-performance {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  background-color: transparent;
  border: 1px solid var(--green);
  color: var(--green-light);
}

.tier-accelerator {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  background-color: var(--green);
  border: 1px solid var(--green);
  color: #fff;
}

/* ── Interactive Checklist ──────────────────────────────── */
.checklist-interactive {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checklist-interactive li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.checklist-interactive li:hover {
  background: rgba(124, 186, 95, 0.04);
  border-color: var(--border);
}

.checklist-interactive input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--green-25);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.checklist-interactive input[type="checkbox"]:hover {
  border-color: var(--green);
}

.checklist-interactive input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}

.checklist-interactive input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.checklist-interactive .check-content {
  flex: 1;
  transition: opacity 0.2s ease;
}

.checklist-interactive input[type="checkbox"]:checked + .check-content {
  opacity: 0.4;
  text-decoration: line-through;
  text-decoration-color: var(--green-25);
}

.checklist-interactive .check-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.checklist-interactive .check-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Hero Stat Line (index) ─────────────────────────────── */
.hero-stat-line {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-stat-line .hero-accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll Animations ──────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page Header Gradient ───────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, rgba(124,186,95,0.12) 0%, rgba(124,186,95,0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  margin-bottom: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Internal index hero — neon green + aurora */
.internal-hero {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.06), rgba(0, 255, 136, 0.015));
  border: 1.5px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.06);
}

.internal-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 400px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 255, 136, 0.08) 0%, rgba(0, 255, 136, 0.03) 40%, transparent 70%),
              radial-gradient(ellipse 40% 30% at 30% 20%, rgba(106, 168, 79, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse 40% 30% at 70% 20%, rgba(0, 255, 136, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.internal-hero h1 {
  color: var(--success);
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.2);
}

.internal-hero .subtitle {
  max-width: 600px;
  margin: 0 auto;
}

/* ── Summary Box ────────────────────────────────────────── */
.summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── Section Title (with ◆ icon) ────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-title .icon {
  color: var(--success);
  font-size: 0.65rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(0, 255, 136, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.3);
  font-weight: 800;
}

/* ── Stats Grid (4-col) ─────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 2.5rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid rgba(124, 186, 95, 0.2);
  border-top: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-box:hover {
  border-color: rgba(124, 186, 95, 0.6);
  box-shadow: 0 0 35px rgba(124, 186, 95, 0.24);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--success);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.6);
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* ── Hero Ring (SVG circular stat) ─────────────────────── */
.hero-ring-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, rgba(124,186,95,0.05) 0%, rgba(124,186,95,0.01) 100%);
  border: 1px solid rgba(124,186,95,0.15);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 2rem;
}

.hero-ring {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.hero-ring svg { width: 100%; height: 100%; }

.hero-ring-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--success);
  text-shadow: 0 0 22px rgba(0, 255, 136, 0.7);
  white-space: nowrap;
  line-height: 1;
}

.hero-ring-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.hero-ring-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Volume Callout (big number + text) ─────────────────── */
.volume-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--green-08);
  border: 1px solid var(--green-25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
}

.volume-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--success);
  text-shadow: 0 0 28px rgba(0, 255, 136, 0.6);
  line-height: 1;
  white-space: nowrap;
}

.volume-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Flow Diagram ───────────────────────────────────────── */
.flow-diagram {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 20px 0;
  flex-wrap: wrap;
  /* gradient border applied in bottom section */
}

.flow-node {
  --node-color: 0, 255, 136;
  background: var(--bg-card);
  border: 1px solid rgba(var(--node-color), 0.2);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: center;
  flex: 1;
  min-width: 110px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}

.flow-node:hover {
  border-color: rgba(var(--node-color), 0.6);
  box-shadow: 0 0 30px rgba(var(--node-color), 0.25);
  transform: translateY(-3px);
}

/* Flow node individual colors */
.flow-node:nth-child(1)  { --node-color: 0, 212, 255; }    /* cyan */
.flow-node:nth-child(3)  { --node-color: 255, 140, 66; }   /* orange (skip arrow) */
.flow-node:nth-child(5)  { --node-color: 0, 255, 136; }    /* green */
.flow-node:nth-child(7)  { --node-color: 255, 215, 0; }    /* yellow */
.flow-node:nth-child(9)  { --node-color: 179, 136, 255; }  /* purple */
.flow-node:nth-child(11) { --node-color: 0, 212, 255; }    /* cyan (cycle) */

.flow-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(var(--node-color), 0.15);
  border: 1px solid rgba(var(--node-color), 0.3);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(var(--node-color), 0.2);
}

.flow-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(var(--node-color));
  margin-bottom: 4px;
}

.flow-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--success);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  padding-bottom: 4px;
  text-shadow: 0 0 18px rgba(0, 255, 136, 0.8);
}

/* ── Content Type Cards ─────────────────────────────────── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
  /* gradient border applied in bottom section */
}

.type-card {
  background: var(--bg-card);
  border: 1px solid rgba(124, 186, 95, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}

.type-card:hover {
  border-color: rgba(124, 186, 95, 0.5);
  background: linear-gradient(135deg, rgba(124,186,95,0.10) 0%, transparent 60%);
  box-shadow: 0 0 30px rgba(124, 186, 95, 0.18);
  transform: translateY(-3px);
}

.type-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.type-badge-pill {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.type-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.type-card-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Step Blocks (numbered sections) ───────────────────── */
.step-blocks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-block {
  background: var(--bg-card);
  border: 1px solid rgba(124, 186, 95, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px 20px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-block:hover {
  border-color: rgba(124, 186, 95, 0.5);
  box-shadow: 0 0 30px rgba(124, 186, 95, 0.18);
}

.step-block-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(0, 255, 136, 0.10);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--success);
  margin-top: 2px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.12);
}

.step-block-content { flex: 1; }

.step-block-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-block-meta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
  margin-bottom: 8px;
}

.step-block-body {
  font-size: 0.845rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Nav Logo Override ──────────────────────────────────── */
.nav-logo img { height: 36px !important; width: auto; }

/* ── Coming Soon Badge ──────────────────────────────────── */
.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: var(--text-muted);
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Tags ───────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* ── Bottom Nav (between SOPs) ──────────────────────────── */
.nav-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  gap: 16px;
}

.nav-bottom-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-bottom-link:hover { color: var(--green-light); }

.nav-bottom-link.next { flex-direction: row-reverse; }

/* ── Definition of Done callout ─────────────────────────── */
.done-callout {
  background: linear-gradient(135deg, var(--emerald-10) 0%, rgba(40, 180, 100, 0.04) 100%);
  border: 1px solid var(--emerald-30);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 0 28px rgba(40, 180, 100, 0.12);
}

.done-callout-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald);
  margin-bottom: 10px;
}

.done-callout p {
  font-size: 0.925rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.65;
  margin: 0;
}

/* ── Page body variant (with section nav) ───────────────── */
.page-body-sop {
  padding-top: 32px;
  padding-bottom: 80px;
}

/* ── Gold / Training Theme ──────────────────────────────── */
body.theme-training {
  --green:       #D4A843;
  --green-light: #E8C76A;
  --green-pale:  #FFF3D1;
  --green-08:    rgba(212, 168, 67, 0.08);
  --green-12:    rgba(212, 168, 67, 0.12);
  --green-25:    rgba(212, 168, 67, 0.25);
}

/* ── Landing Cards (index.html) ─────────────────────────── */
/* ── Landing Hero Box ─────────────────────────────────── */
.landing-hero-box {
  text-align: center;
  position: relative;
  padding: 3rem;
  border: 1.5px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.04), rgba(0, 255, 136, 0.01));
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.06);
  margin-bottom: 3rem;
}

/* Gradient aurora behind hero box */
.landing-hero-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 500px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 255, 136, 0.08) 0%, rgba(0, 255, 136, 0.03) 40%, transparent 70%),
              radial-gradient(ellipse 40% 30% at 30% 20%, rgba(106, 168, 79, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse 40% 30% at 70% 20%, rgba(0, 255, 136, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.landing-hero-logo {
  margin-bottom: 20px;
}

.landing-hero-logo img {
  height: 48px;
  width: auto;
  max-width: 200px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.2));
}

.landing-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--success);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.2);
}

.landing-hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.15);
}

.landing-hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Stats row */
.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2.5rem;
}

.landing-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-stat:hover {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.08);
}

.landing-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--success);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.landing-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* CTA Button */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.1); }
  50%      { box-shadow: 0 0 24px rgba(0, 255, 136, 0.45), 0 0 56px rgba(0, 255, 136, 0.18); }
}

.landing-cta {
  display: inline-block;
  background: var(--success);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 16px 48px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
  animation: cta-glow 3s ease-in-out infinite;
}

.landing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.5), 0 0 64px rgba(0, 255, 136, 0.2);
  background: #33ffaa;
}

/* DEPRECATED: old landing cards — kept for backwards compat */
.landing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 3rem 0 2rem;
}

.landing-card {
  background: var(--bg-card);
  border: 1px solid rgba(124, 186, 95, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.landing-card:hover {
  border-color: rgba(124, 186, 95, 0.6);
  background: linear-gradient(135deg, rgba(124,186,95,0.10) 0%, transparent 70%);
  box-shadow: 0 0 40px rgba(124, 186, 95, 0.22);
  transform: translateY(-2px);
}

.landing-card.gold {
  border-color: rgba(212, 168, 67, 0.2);
}

.landing-card.gold:hover {
  border-color: rgba(212, 168, 67, 0.55);
  background: linear-gradient(135deg, rgba(212,168,67,0.06) 0%, transparent 70%);
  box-shadow: 0 0 32px rgba(212, 168, 67, 0.1);
}

.landing-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--green-12);
  border: 1px solid var(--green-25);
  flex-shrink: 0;
}

.landing-card.gold .landing-card-icon {
  background: rgba(212, 168, 67, 0.12);
  border-color: rgba(212, 168, 67, 0.25);
}

.landing-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  width: fit-content;
}

.landing-card.gold .landing-card-badge {
  background: #D4A843;
  color: #0a0a0a;
}

.landing-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.landing-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.landing-card-cta {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.landing-card.gold .landing-card-cta {
  color: #D4A843;
}

.landing-card:hover .landing-card-cta {
  gap: 10px;
}

.landing-footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}

/* ── Login Page ─────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(17, 24, 28, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 255, 136, 0.04);
}

.login-logo {
  display: block;
  height: 32px;
  width: auto;
  margin: 0 auto 28px;
}

.login-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

.login-field {
  position: relative;
  margin-bottom: 16px;
  text-align: left;
}

.login-field input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.login-field input:focus {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.1);
}

.login-field input::placeholder {
  color: var(--text-muted);
}

.login-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 13px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.login-btn:hover {
  background: var(--green-light);
  box-shadow: 0 0 28px rgba(124, 186, 95, 0.5);
}

.login-error {
  font-size: 0.8rem;
  color: #ff5555;
  margin-top: 12px;
  display: none;
}

.login-error.visible {
  display: block;
}

/* Premium login button */
.login-btn-premium {
  width: 100%;
  background: var(--success);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: cta-glow 3s ease-in-out infinite;
  -webkit-font-smoothing: antialiased;
}

.login-btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.5), 0 0 60px rgba(0, 255, 136, 0.15);
}

/* Shake animation for login errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-8px); }
  30%      { transform: translateX(6px); }
  45%      { transform: translateX(-5px); }
  60%      { transform: translateX(4px); }
  75%      { transform: translateX(-2px); }
}

.login-card.shake {
  animation: shake 0.5s ease-in-out;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover { color: var(--green-light); }

.breadcrumbs .sep {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.breadcrumbs .current {
  color: var(--green-light);
}

body.theme-training .breadcrumbs .current,
body.theme-training .breadcrumbs a:hover {
  color: #E8C76A;
}

/* ── Category Section (empty state) ────────────────────── */
.category-empty {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Responsive — Mobile (max 640px) ───────────────────── */
@media (max-width: 640px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .table-wrap {
    font-size: 0.8rem;
  }

  thead tr th,
  tbody td {
    padding: 10px 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .type-grid {
    grid-template-columns: 1fr;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }

  .hero-ring-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .volume-callout {
    flex-direction: column;
    gap: 8px;
  }

  .nav-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .section-nav-link {
    padding: 12px 14px;
    font-size: 0.66rem;
  }

  .section-nav-inner {
    justify-content: flex-start;
    padding: 0 16px;
    gap: 4px;
  }

  .container {
    padding: 0 16px;
  }

  .breadcrumbs {
    font-size: 0.72rem;
  }

  .page-header {
    padding: 28px 0 24px;
  }
}

/* ── Subcategories ──────────────────────────────────────────── */
.sop-subcategory {
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.sop-subcategory + .sop-subcategory {
  margin-top: 1.5rem;
}

.sop-subcategory-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── Badge Variants (multi-color) ──────────────────────── */
.badge-cyan {
  background-color: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}

.badge-orange {
  background-color: rgba(255, 140, 66, 0.15);
  border: 1px solid rgba(255, 140, 66, 0.3);
  color: var(--orange);
  box-shadow: 0 0 10px rgba(255, 140, 66, 0.15);
}

.badge-red {
  background-color: rgba(255, 75, 75, 0.15);
  border: 1px solid rgba(255, 75, 75, 0.3);
  color: var(--red);
  box-shadow: 0 0 10px rgba(255, 75, 75, 0.15);
}

.badge-success {
  background-color: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--success);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}

.badge-yellow {
  background-color: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

/* ── Table header glow ─────────────────────────────────── */
thead tr th {
  background-color: rgba(124, 186, 95, 0.15);
  border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

/* ── Table cell variants ───────────────────────────────── */
tbody td.cyan  { color: var(--cyan); font-weight: 600; }
tbody td.orange { color: var(--orange); font-weight: 600; }
tbody td.red    { color: var(--red); font-weight: 600; }
tbody td.success { color: var(--success); font-weight: 600; }

/* ── Volume callout glow ───────────────────────────────── */
.volume-callout {
  box-shadow: 0 0 24px rgba(40, 180, 100, 0.12);
  border-left: 3px solid var(--emerald);
}

/* ── Hero ring glow ────────────────────────────────────── */
.hero-ring-wrap {
  box-shadow: 0 0 35px rgba(124, 186, 95, 0.15);
}

/* ── Summary box upgrade ───────────────────────────────── */
.summary-box {
  border-left: 3px solid var(--emerald);
  box-shadow: 0 0 20px rgba(40, 180, 100, 0.10);
}

/* ── Premium Blockquote ───────────────────────────────────── */
blockquote,
.premium-quote {
  border-left: 4px solid var(--cyan);
  background: rgba(0, 212, 255, 0.04);
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.7;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.06);
}

blockquote.quote-gold,
.premium-quote.quote-gold {
  border-left-color: var(--yellow);
  background: rgba(255, 215, 0, 0.04);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.06);
}

/* ── Scroll Progress Bar ──────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--success), var(--green-light));
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  z-index: 9999;
  width: 0%;
  transition: width 0.05s linear;
}

/* ── Back to Top Button ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--success);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.15);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.35);
}

/* ── Step block hover lift ────────────────────────────────── */
.step-block {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}

.step-block:hover {
  transform: translateY(-2px);
}

/* ── Gradient animated border (flow + type cards) ──────── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-rotate {
  to { --border-angle: 360deg; }
}

.flow-diagram {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--bg-primary), var(--bg-primary)),
    conic-gradient(from var(--border-angle), rgba(0,212,255,0.3), rgba(0,255,136,0.3), rgba(179,136,255,0.15), rgba(0,212,255,0.3));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: border-rotate 8s linear infinite;
}

.type-grid {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--bg-primary), var(--bg-primary)),
    conic-gradient(from var(--border-angle), rgba(0,255,136,0.25), rgba(0,212,255,0.25), rgba(255,215,0,0.15), rgba(0,255,136,0.25));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: border-rotate 8s linear infinite;
}

/* ── Typography glow ───────────────────────────────────── */
.page-header h1 {
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.1);
}

/* ── Link Pills ────────────────────────────────────────── */
a.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease;
  background: rgba(0, 212, 255, 0.10);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--cyan);
}

a.link-pill:hover {
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
  background: rgba(0, 212, 255, 0.15);
}

a.link-pill.pill-green {
  background: rgba(0, 255, 136, 0.10);
  border-color: rgba(0, 255, 136, 0.25);
  color: var(--success);
}
a.link-pill.pill-green:hover {
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.15);
}

a.link-pill.pill-orange {
  background: rgba(255, 140, 66, 0.10);
  border-color: rgba(255, 140, 66, 0.25);
  color: var(--orange);
}
a.link-pill.pill-orange:hover {
  box-shadow: 0 0 18px rgba(255, 140, 66, 0.3);
  background: rgba(255, 140, 66, 0.15);
}

a.link-pill.pill-yellow {
  background: rgba(255, 215, 0, 0.10);
  border-color: rgba(255, 215, 0, 0.25);
  color: var(--yellow);
}
a.link-pill.pill-yellow:hover {
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.15);
}

a.link-pill.pill-purple {
  background: rgba(179, 136, 255, 0.10);
  border-color: rgba(179, 136, 255, 0.25);
  color: var(--purple);
}
a.link-pill.pill-purple:hover {
  box-shadow: 0 0 18px rgba(179, 136, 255, 0.3);
  background: rgba(179, 136, 255, 0.15);
}

/* ── Sidebar Scroll Spy (DISABLED — top section-nav is enough) ─── */
.sop-sidebar { display: none !important; }

.sop-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.sop-sidebar-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  opacity: 0.4;
}

.sop-sidebar-item:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.sop-sidebar-item.active {
  color: var(--success);
}

.sop-sidebar-item.active::before {
  background: var(--success);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  opacity: 1;
}

@media (max-width: 1200px) {
  .sop-sidebar { display: none; }
}

/* ══════════════════════════════════════════════════════════
   SOP Card Grid — Index Pages
   ══════════════════════════════════════════════════════════ */

/* Part Headers */
.part-header {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 3rem 0 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.part-header:first-of-type {
  margin-top: 2rem;
}

.part-header .part-badge {
  background: var(--success);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

/* Card Grid */
.sop-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 2rem;
}

/* Individual Card */
.sop-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sop-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
}

/* Icon area */
.sop-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 16px;
  position: relative;
}

.sop-card-icon .icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.12);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.sop-card:hover .icon-circle {
  box-shadow: 0 0 36px rgba(0, 255, 136, 0.22);
  border-color: rgba(0, 255, 136, 0.3);
}

.sop-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--success);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.4));
}

/* Card Body */
.sop-card-body {
  padding: 0 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sop-card-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--success);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.sop-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.sop-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.sop-card-runtime {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 500;
}

/* Coming Soon state */
.sop-card.coming-soon {
  opacity: 0.4;
  pointer-events: none;
}

.sop-card.coming-soon .sop-card-icon .icon-circle {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.sop-card.coming-soon svg {
  stroke: var(--text-muted);
  filter: none;
}

.sop-card .soon-badge {
  display: none;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
  width: fit-content;
}

.sop-card.coming-soon .soon-badge {
  display: inline-block;
}

/* ── Training theme (gold) overrides for cards ─────────── */
.theme-training .part-header .part-badge {
  background: #D4A843;
}

.theme-training .sop-card:hover {
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.1);
}

.theme-training .sop-card-icon .icon-circle {
  background: rgba(212, 168, 67, 0.06);
  border-color: rgba(212, 168, 67, 0.15);
  box-shadow: 0 0 24px rgba(212, 168, 67, 0.12);
}

.theme-training .sop-card:hover .icon-circle {
  box-shadow: 0 0 36px rgba(212, 168, 67, 0.22);
  border-color: rgba(212, 168, 67, 0.3);
}

.theme-training .sop-card-icon svg {
  stroke: #D4A843;
  filter: drop-shadow(0 0 6px rgba(212, 168, 67, 0.4));
}

.theme-training .sop-card-num {
  color: #D4A843;
  text-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .sop-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sop-card-grid {
    grid-template-columns: 1fr;
  }
  .part-header {
    font-size: 1.25rem;
  }
  .landing-hero-box {
    padding: 2rem 1.5rem;
  }
  .landing-hero-title {
    font-size: 2rem;
  }
  .landing-stats {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .landing-cta {
    padding: 14px 36px;
    font-size: 0.8rem;
  }
}
