/* ============================================================
   FOREMAN + KATELLO DOCS — Design System
   Author: NMH
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  /* Colors */
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --cyan-600: #0891b2;
  --purple-500: #8b5cf6;
  --purple-400: #a78bfa;
  --purple-600: #7c3aed;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-800: #166534;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-800: #92400e;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --red-800: #991b1b;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-800: #1e40af;

  /* Theme - Light */
  --bg-primary: var(--white);
  --bg-secondary: var(--slate-50);
  --bg-tertiary: var(--slate-100);
  --bg-card: var(--white);
  --bg-code: var(--navy-900);
  --bg-header: rgba(255,255,255,0.92);
  --bg-sidebar: var(--white);
  --bg-hero: linear-gradient(135deg, var(--navy-900) 0%, #1a2744 50%, #162033 100%);
  --text-primary: var(--navy-900);
  --text-secondary: var(--navy-700);
  --text-tertiary: var(--slate-500);
  --text-inverse: var(--white);
  --border-color: var(--slate-200);
  --border-light: var(--slate-100);
  --accent: var(--cyan-500);
  --accent-hover: var(--cyan-600);
  --accent-light: rgba(6,182,212,0.1);
  --accent-purple: var(--purple-500);
  --accent-purple-light: rgba(139,92,246,0.1);
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -2px rgba(15,23,42,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -4px rgba(15,23,42,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --scrollbar-thumb: var(--slate-300);
  --scrollbar-track: var(--slate-100);
}

[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2332;
  --bg-card: #151f2e;
  --bg-code: #0d1117;
  --bg-header: rgba(11,17,32,0.95);
  --bg-sidebar: #111827;
  --text-primary: var(--slate-100);
  --text-secondary: var(--slate-300);
  --text-tertiary: var(--slate-400);
  --border-color: #1e293b;
  --border-light: #1a2332;
  --accent: var(--cyan-400);
  --accent-hover: var(--cyan-500);
  --accent-light: rgba(34,211,238,0.1);
  --accent-purple-light: rgba(167,139,250,0.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.4);
  --scrollbar-thumb: #334155;
  --scrollbar-track: #1a2332;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 10001;
  background: linear-gradient(90deg, var(--cyan-500), var(--purple-500));
  width: 0%; transition: width 0.1s linear;
}

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s, border 0.3s, box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header__logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan-500), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; letter-spacing: -0.5px;
}
.header__title {
  font-weight: 700; font-size: 16px; color: var(--text-primary);
  transition: color 0.3s;
}
.header__title span { color: var(--accent); }

.header__nav { display: flex; gap: 4px; }
.header__nav-link {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s; white-space: nowrap;
}
.header__nav-link:hover,
.header__nav-link.active {
  color: var(--accent); background: var(--accent-light);
}

.header__actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-color);
  background: var(--bg-card); cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-light); }

.hamburger {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border-color); background: var(--bg-card);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: all 0.2s;
}
.hamburger span {
  width: 18px; height: 2px; background: var(--text-secondary);
  border-radius: 2px; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg-primary); border-bottom: 1px solid var(--border-color);
  z-index: 999; padding: 12px 24px; max-height: 70vh; overflow-y: auto;
  transform: translateY(-100%); opacity: 0; transition: all 0.3s;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; }
.mobile-nav__link {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s;
}
.mobile-nav__link:hover { color: var(--accent); background: var(--accent-light); }

/* ── Hero ── */
.hero {
  background: var(--bg-hero);
  padding: 80px 24px 100px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}

.hero__badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: rgba(6,182,212,0.15); color: var(--cyan-400);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  border: 1px solid rgba(6,182,212,0.2);
}

.hero__heading {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: #fff; line-height: 1.2; margin-bottom: 20px;
}
.hero__heading .highlight {
  background: linear-gradient(135deg, var(--cyan-400), var(--purple-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 16px; color: var(--slate-300); line-height: 1.8;
  margin-bottom: 32px; max-width: 540px;
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.25s; text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600));
  color: #fff; box-shadow: 0 4px 14px rgba(6,182,212,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 6px 20px rgba(6,182,212,0.45);
}
.btn--secondary {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.14); color: #fff;
  transform: translateY(-2px);
}
.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #fff; }

/* ── Hero Architecture Visual ── */
.hero__visual { position: relative; }
.arch-diagram {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 32px;
  backdrop-filter: blur(8px);
}
.arch-diagram__title {
  text-align: center; font-size: 12px; font-weight: 600;
  color: var(--cyan-400); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 24px;
}
.arch-diagram__flow {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.arch-node {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; color: #fff;
  width: 100%; max-width: 280px; justify-content: center;
  transition: transform 0.2s;
}
.arch-node:hover { transform: scale(1.03); }
.arch-node--repo { background: rgba(34,211,238,0.2); border: 1px solid rgba(34,211,238,0.3); }
.arch-node--cv { background: rgba(139,92,246,0.2); border: 1px solid rgba(139,92,246,0.3); }
.arch-node--le { background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.3); }
.arch-node--host { background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.3); }
.arch-node--rex { background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.3); }
.arch-node--tower { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.3); }
.arch-arrow {
  color: var(--slate-400); font-size: 18px; line-height: 1;
}

/* ── Page Layout ── */
.page-wrapper { min-height: 100vh; }
.main-layout {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 260px 1fr;
  gap: 0; position: relative;
}

/* ── Sidebar ── */
.sidebar {
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto; padding: 24px 16px; border-right: 1px solid var(--border-color);
  background: var(--bg-sidebar); transition: all 0.3s; z-index: 10;
}
.sidebar__toggle {
  position: absolute; top: 16px; right: -14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-color);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-tertiary); z-index: 2;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.sidebar__toggle:hover { border-color: var(--accent); color: var(--accent); }
.sidebar.collapsed { width: 0; padding: 0; overflow: hidden; border: none; }
.sidebar.collapsed ~ .main-content { grid-column: 1 / -1; }

.sidebar__title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-tertiary);
  padding: 8px 12px; margin-bottom: 4px;
}
.sidebar__link {
  display: block; padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s; margin-bottom: 1px; border-left: 2px solid transparent;
}
.sidebar__link:hover { color: var(--accent); background: var(--accent-light); }
.sidebar__link.active {
  color: var(--accent); background: var(--accent-light);
  border-left-color: var(--accent); font-weight: 600;
}
.sidebar__link--sub {
  padding-left: 24px; font-size: 12.5px;
}
.sidebar__divider {
  height: 1px; background: var(--border-color); margin: 12px 12px;
}

/* ── Main Content ── */
.main-content {
  min-width: 0; padding: 0;
}

/* ── Sections ── */
.section { padding: 64px 40px; }
.section--alt { background: var(--bg-secondary); }

.section__container { max-width: 900px; margin: 0 auto; }

.section__badge {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent);
  font-size: 12.5px; font-weight: 600; margin-bottom: 16px;
  border: 1px solid rgba(6,182,212,0.15);
}
.section__badge--purple {
  background: var(--accent-purple-light); color: var(--accent-purple);
  border-color: rgba(139,92,246,0.15);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: var(--text-primary); margin-bottom: 12px; line-height: 1.3;
}

.section__subtitle {
  font-size: 15px; color: var(--text-tertiary); line-height: 1.7;
  margin-bottom: 36px; max-width: 700px;
}

/* ── Content Typography ── */
.content-h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--text-primary);
  margin: 36px 0 14px; padding-top: 8px;
}
.content-h4 {
  font-size: 1.05rem; font-weight: 600; color: var(--text-primary);
  margin: 24px 0 10px;
}
.content-p {
  font-size: 15px; line-height: 1.8; color: var(--text-secondary);
  margin-bottom: 16px;
}
.content-p strong { color: var(--text-primary); }
.content-p code {
  background: var(--bg-tertiary); padding: 2px 6px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  border: 1px solid var(--border-color);
}

.content-ul, .content-ol {
  padding-left: 24px; margin-bottom: 16px;
}
.content-ul li, .content-ol li {
  font-size: 15px; line-height: 1.8; color: var(--text-secondary);
  margin-bottom: 6px;
}
.content-ul li strong, .content-ol li strong { color: var(--text-primary); }

/* ── Cards ── */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin: 24px 0;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card__icon {
  font-size: 28px; margin-bottom: 12px;
}
.card__icon--purple { filter: hue-rotate(45deg); }
.card__number {
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-400), var(--purple-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px; line-height: 1;
}
.card__title {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 8px;
}
.card__desc {
  font-size: 13.5px; color: var(--text-tertiary); line-height: 1.6;
}

/* ── Callout Boxes ── */
.callout {
  border-radius: var(--radius-md); padding: 20px 24px;
  margin: 24px 0; border-left: 4px solid var(--accent);
  background: var(--accent-light);
}
.callout__title {
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
  color: var(--text-primary);
}
.callout__body {
  font-size: 14px; line-height: 1.7; color: var(--text-secondary);
}
.callout__body ul { padding-left: 20px; margin-top: 8px; }
.callout__body li { margin-bottom: 4px; }

.callout--tip { border-left-color: var(--green-500); background: rgba(34,197,94,0.08); }
.callout--warning { border-left-color: var(--amber-500); background: rgba(245,158,11,0.08); }
.callout--danger { border-left-color: var(--red-500); background: rgba(239,68,68,0.08); }
.callout--purple { border-left-color: var(--purple-500); background: var(--accent-purple-light); }
.callout--note { border-left-color: var(--blue-500); background: rgba(59,130,246,0.08); }

/* ── Code Blocks ── */
.code-block {
  border-radius: var(--radius-md); overflow: hidden;
  margin: 20px 0; border: 1px solid var(--border-color);
}
.code-block__header {
  background: var(--navy-800); padding: 10px 16px;
  font-size: 12px; font-weight: 600; color: var(--slate-400);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-block__body {
  background: var(--bg-code); padding: 20px; overflow-x: auto;
}
.code-block__body pre {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  line-height: 1.7; color: var(--slate-300); margin: 0;
  white-space: pre; tab-size: 2;
}
.code-copy {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: var(--slate-400); padding: 4px 10px; border-radius: 6px;
  font-size: 11px; cursor: pointer; transition: all 0.2s;
}
.code-copy:hover { background: rgba(255,255,255,0.15); color: #fff; }
.code-copy.copied { background: rgba(34,197,94,0.2); color: var(--green-500); }

/* ── Comparison Tables ── */
.comparison-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 24px 0; border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border-color);
  font-size: 14px;
}
.comparison-table thead th {
  background: var(--navy-800); color: #fff;
  padding: 14px 18px; font-weight: 600; text-align: left;
  font-size: 13px;
}
[data-theme="dark"] .comparison-table thead th {
  background: #1a2744;
}
.comparison-table tbody td {
  padding: 12px 18px; border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary); vertical-align: top;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) { background: var(--bg-secondary); }
.comparison-table tbody tr:hover { background: var(--accent-light); }
.comparison-table td strong { color: var(--text-primary); }

/* ── Checklist ── */
.checklist {
  margin: 20px 0; padding: 20px 24px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.checklist__title {
  font-size: 14px; font-weight: 700; margin-bottom: 14px;
  color: var(--text-primary);
}
.checklist__item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
}
.checklist__icon {
  width: 22px; height: 22px; min-width: 22px;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 2px;
  background: rgba(34,197,94,0.15); color: var(--green-500);
}

/* ── Stepper ── */
.stepper { margin: 24px 0; }
.stepper__item { display: flex; gap: 16px; }
.stepper__line {
  display: flex; flex-direction: column; align-items: center;
}
.stepper__dot {
  width: 32px; height: 32px; min-height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), var(--purple-500));
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.stepper__connector {
  width: 2px; flex: 1; min-height: 20px;
  background: linear-gradient(180deg, var(--cyan-500), var(--border-color));
  margin: 4px 0;
}
.stepper__content { padding-bottom: 24px; flex: 1; }
.stepper__title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.stepper__desc { font-size: 13.5px; color: var(--text-tertiary); line-height: 1.6; }

/* ── Accordion ── */
.accordion { margin: 20px 0; }
.accordion__item {
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  margin-bottom: 8px; overflow: hidden; background: var(--bg-card);
  transition: border-color 0.2s;
}
.accordion__item.open { border-color: var(--accent); }
.accordion__trigger {
  width: 100%; padding: 16px 20px; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-size: 14.5px; font-weight: 600;
  color: var(--text-primary); text-align: left;
  transition: color 0.2s;
}
.accordion__trigger:hover { color: var(--accent); }
.accordion__icon {
  font-size: 18px; transition: transform 0.3s; color: var(--text-tertiary);
}
.accordion__item.open .accordion__icon { transform: rotate(180deg); }
.accordion__content {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.accordion__body {
  padding: 0 20px 20px; font-size: 14px; line-height: 1.7;
  color: var(--text-secondary);
}
.accordion__body ul { padding-left: 20px; margin-top: 8px; }
.accordion__body li { margin-bottom: 6px; }
.accordion__body p { margin-bottom: 10px; }

/* ── Tabs ── */
.tabs { margin: 24px 0; }
.tabs__nav {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border-color);
  padding-bottom: 0; margin-bottom: 0; overflow-x: auto;
}
.tabs__btn {
  padding: 10px 20px; border: none; background: none;
  font-size: 13.5px; font-weight: 600; color: var(--text-tertiary);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s; white-space: nowrap;
}
.tabs__btn:hover { color: var(--text-primary); }
.tabs__btn.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
.tabs__panel {
  display: none; padding: 24px 0;
}
.tabs__panel.active { display: block; }

/* ── Architecture Diagrams (CSS-based) ── */
.arch-box {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 32px;
  margin: 24px 0; overflow-x: auto;
}
.arch-box__title {
  text-align: center; font-size: 14px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-color);
}
.arch-flow {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.arch-flow--horizontal {
  flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.arch-flow__node {
  padding: 12px 24px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; text-align: center;
  min-width: 180px; transition: transform 0.2s;
}
.arch-flow__node:hover { transform: scale(1.03); }
.arch-flow__node--primary {
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(6,182,212,0.05));
  border: 1px solid rgba(6,182,212,0.3); color: var(--accent);
}
.arch-flow__node--secondary {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05));
  border: 1px solid rgba(139,92,246,0.3); color: var(--accent-purple);
}
.arch-flow__node--tertiary {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05));
  border: 1px solid rgba(59,130,246,0.3); color: var(--blue-500);
}
.arch-flow__node--success {
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.3); color: var(--green-500);
}
.arch-flow__node--warning {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  border: 1px solid rgba(245,158,11,0.3); color: var(--amber-500);
}
.arch-flow__node--danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05));
  border: 1px solid rgba(239,68,68,0.3); color: var(--red-500);
}
.arch-flow__arrow {
  font-size: 20px; color: var(--text-tertiary); line-height: 1;
}
.arch-flow__label {
  font-size: 11px; color: var(--text-tertiary); text-align: center;
  font-weight: 500;
}

/* ── Blockquote ── */
.blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 24px; margin: 24px 0;
  background: var(--accent-light); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px; font-style: italic; color: var(--text-secondary);
  line-height: 1.7;
}
.blockquote cite {
  display: block; margin-top: 10px; font-size: 13px;
  font-style: normal; font-weight: 600; color: var(--accent);
}

/* ── Remember Box ── */
.remember-box {
  border-radius: var(--radius-md); padding: 24px;
  margin: 32px 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(6,182,212,0.2);
}
.remember-box__title {
  font-size: 14px; font-weight: 700; color: var(--accent);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.remember-box__body {
  font-size: 14px; line-height: 1.7; color: var(--text-secondary);
}
.remember-box__body ul { padding-left: 20px; margin-top: 8px; }
.remember-box__body li { margin-bottom: 4px; }

/* ── Use Case Box ── */
.usecase-box {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px; margin: 20px 0;
}
.usecase-box__title {
  font-size: 15px; font-weight: 700; color: var(--accent-purple);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.usecase-box__label {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  background: var(--accent-purple-light); color: var(--accent-purple);
  font-size: 11px; font-weight: 600;
}
.usecase-box__body {
  font-size: 14px; line-height: 1.7; color: var(--text-secondary);
}
.usecase-box__body strong { color: var(--text-primary); }
.usecase-box__body ul { padding-left: 20px; margin-top: 8px; }
.usecase-box__body li { margin-bottom: 4px; }

/* ── Paths Grid ── */
.paths-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin: 24px 0;
}
.path-card {
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-card); transition: all 0.25s;
}
.path-card:hover { box-shadow: var(--shadow-lg); }
.path-card__header {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(6,182,212,0.02));
  border-bottom: 1px solid var(--border-color);
}
.path-card__header--b {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(139,92,246,0.02));
}
.path-card__header--c {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(59,130,246,0.02));
}
.path-card__label { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.path-card__title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.path-card__body { padding: 24px; }

/* ── CTA Section ── */
.cta-section {
  padding: 80px 40px; text-align: center;
  background: var(--bg-hero); position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
}
.cta-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: #fff; margin-bottom: 16px; position: relative; z-index: 1;
}
.cta-section__desc {
  font-size: 15px; color: var(--slate-300); max-width: 600px;
  margin: 0 auto 32px; line-height: 1.7; position: relative; z-index: 1;
}
.cta-section__buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ── Footer ── */
.footer {
  background: var(--navy-900); padding: 48px 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
}
.footer__brand-name {
  font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.footer__brand-desc {
  font-size: 13px; color: var(--slate-400); line-height: 1.6;
}
.footer__heading {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--slate-400); margin-bottom: 16px;
}
.footer__link {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--slate-300); padding: 4px 0;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--cyan-400); }

.footer__bottom {
  max-width: 900px; margin: 36px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center; font-size: 12.5px; color: var(--slate-500);
}

/* ── Update Log Section ── */
.update-log {
  margin: 24px 0;
}
.update-log__item {
  display: flex; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.update-log__date {
  min-width: 100px; font-size: 12px; font-weight: 600;
  color: var(--accent); padding-top: 2px;
}
.update-log__text {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}

/* ── Comparison Box (Foreman vs Ansible) ── */
.vs-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-md); overflow: hidden;
  margin: 24px 0; border: 1px solid var(--border-color);
}
.vs-box__side {
  padding: 24px;
}
.vs-box__side--left {
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(6,182,212,0.02));
  border-right: 1px solid var(--border-color);
}
.vs-box__side--right {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02));
}
.vs-box__title {
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.vs-box__side--left .vs-box__title { color: var(--cyan-500); }
.vs-box__side--right .vs-box__title { color: var(--red-500); }
.vs-box__body {
  font-size: 13.5px; line-height: 1.7; color: var(--text-secondary);
}
.vs-box__body ul { padding-left: 18px; margin: 0; }
.vs-box__body li { margin-bottom: 4px; }

/* ── Reveal Animation ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__description { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { display: none; }
  .hero { padding: 60px 24px 80px; }

  .section { padding: 48px 20px; }
  .paths-grid { grid-template-columns: 1fr; }
  .vs-box { grid-template-columns: 1fr; }
  .vs-box__side--left { border-right: none; border-bottom: 1px solid var(--border-color); }

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

  .comparison-table { font-size: 12.5px; }
  .comparison-table thead th { padding: 10px 12px; }
  .comparison-table tbody td { padding: 8px 12px; }

  .cta-section { padding: 60px 20px; }
  .footer { padding: 40px 20px 20px; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero__heading { font-size: 1.75rem; }
  .btn--lg { padding: 12px 20px; font-size: 14px; }
}