/* ── Variables ── */
:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface2: #22223a;
  --accent: #6c63ff;
  --accent2: #ff6584;
  --accent3: #43e97b;
  --accent4: #f8d800;
  --text: #e8e8f0;
  --text-dim: #9999b3;
  --border: #2a2a45;
  --glow: rgba(108,99,255,0.25);
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg: #f5f5fa;
  --surface: #ffffff;
  --surface2: #eeeef5;
  --text: #1a1a2e;
  --text-dim: #5a5a7a;
  --border: #d0d0e0;
  --glow: rgba(108,99,255,0.15);
}

/* ── Reset ── */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #8b85ff; }

/* ── NAV ── */
nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(15,15,26,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}
nav .logo { font-size:1.25rem; font-weight:700; }
nav .logo span { color: var(--accent); }
nav ul { list-style:none; display:flex; gap:1.5rem; }
nav ul li a { color:var(--text-dim); font-size:.9rem; transition:color .2s; }
nav ul li a:hover, nav ul li a.active { color:var(--accent); }
.hamburger { display:none; cursor:pointer; font-size:1.4rem; color:var(--text); }
[data-theme="light"] nav { background: rgba(245,245,250,.92); }

/* ── Theme toggle ── */
.theme-toggle {
  background:none; border:1px solid var(--border); border-radius:10px;
  width:36px; height:36px; cursor:pointer; font-size:1.1rem;
  display:grid; place-content:center; color:var(--text);
  transition: background .2s, border-color .2s;
}
.theme-toggle:hover { background:var(--surface2); border-color:var(--accent); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display:flex; align-items:center; justify-content:center;
  text-align:center; padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(108,99,255,.15) 0%, transparent 60%);
  position: relative;
}
.hero h1 { font-size: clamp(2.2rem,5vw,4rem); font-weight:800; margin-bottom:1rem; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.hero p { font-size:1.15rem; color:var(--text-dim); max-width:640px; margin:0 auto 2rem; }
.hero-btn {
  display:inline-block; padding:.85rem 2.2rem; border-radius:50px;
  background: linear-gradient(135deg, var(--accent), #8b85ff);
  color:#fff; font-weight:600; font-size:1rem;
  box-shadow: 0 4px 24px var(--glow); transition: transform .2s, box-shadow .2s;
}
.hero-btn:hover { transform:translateY(-2px); box-shadow: 0 8px 32px var(--glow); color:#fff; }
.scroll-hint {
  position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
  animation: bounce 2s infinite; color:var(--text-dim); font-size:1.4rem;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── SECTION ── */
section { padding: 5rem 2rem; max-width:1200px; margin:0 auto; }
.section-title {
  font-size:2rem; font-weight:700; text-align:center; margin-bottom:.5rem;
}
.section-subtitle {
  text-align:center; color:var(--text-dim); margin-bottom:3rem; font-size:1rem;
}

/* ── Sub-page header (for standalone pages) ── */
.page-header {
  padding-top: 80px;
  text-align: center;
}

/* ── OVERVIEW ── */
.overview-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:1.5rem;
}
.overview-card {
  background: var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:1.8rem; text-align:center; transition: transform .25s, border-color .25s;
}
.overview-card:hover { transform:translateY(-4px); border-color:var(--accent); }
.overview-card .icon { font-size:2.2rem; margin-bottom:.8rem; }
.overview-card h3 { font-size:1.05rem; margin-bottom:.4rem; }
.overview-card p { font-size:.85rem; color:var(--text-dim); }

/* ── ROADMAP TIMELINE ── */
.roadmap { position:relative; }
.roadmap::before {
  content:''; position:absolute; left:50%; top:0; bottom:0;
  width:3px; background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--accent3));
  transform:translateX(-50%); border-radius:2px;
}
.phase {
  position:relative; width:46%; margin-bottom:3rem;
  padding:1.8rem; border-radius:16px;
  background: var(--surface); border:1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}
.phase:hover { border-color:var(--accent); box-shadow: 0 0 30px var(--glow); }
.phase:nth-child(odd) { margin-left:4%; }
.phase:nth-child(even) { margin-left:50%; }
.phase .dot {
  position:absolute; top:2rem; width:18px; height:18px;
  border-radius:50%; border:3px solid var(--accent);
  background: var(--bg);
}
.phase:nth-child(odd) .dot { right:-9px; transform:translateX(50%); }
.phase:nth-child(even) .dot { left:-9px; transform:translateX(-50%); }
.phase .phase-num {
  display:inline-block; padding:.2rem .7rem; border-radius:20px;
  font-size:.75rem; font-weight:700; margin-bottom:.6rem;
}
.phase h3 { font-size:1.15rem; margin-bottom:.5rem; }
.phase .duration { font-size:.8rem; color:var(--text-dim); margin-bottom:.8rem; }
.phase ul { padding-left:1.2rem; }
.phase li { font-size:.9rem; margin-bottom:.35rem; color:var(--text-dim); }
.phase li strong { color:var(--text); }
.phase .tag-row { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.8rem; }
.tag {
  display:inline-block; padding:.15rem .55rem; border-radius:12px;
  font-size:.72rem; font-weight:600; background: rgba(108,99,255,.15); color:var(--accent);
}
.phase-links {
  display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1rem;
  padding-top:.8rem; border-top:1px solid var(--border);
}
.phase-links a {
  display:inline-flex; align-items:center; gap:.25rem;
  padding:.25rem .6rem; border-radius:8px; font-size:.75rem; font-weight:600;
  background:rgba(108,99,255,.08); color:var(--accent); border:1px solid rgba(108,99,255,.15);
  transition: all .2s;
}
.phase-links a:hover { background:var(--accent); color:#fff; border-color:var(--accent); }

/* phase colors */
.phase-1 .phase-num { background: rgba(108,99,255,.2); color: var(--accent); }
.phase-2 .phase-num { background: rgba(67,233,123,.2); color: var(--accent3); }
.phase-3 .phase-num { background: rgba(255,101,132,.2); color: var(--accent2); }
.phase-4 .phase-num { background: rgba(248,216,0,.2); color: var(--accent4); }
.phase-5 .phase-num { background: rgba(108,99,255,.2); color: #a78bfa; }
.phase-6 .phase-num { background: rgba(67,233,123,.2); color: #34d399; }

/* ── RESOURCES ── */
.res-tabs { display:flex; justify-content:center; gap:.6rem; flex-wrap:wrap; margin-bottom:2rem; }
.res-tab {
  padding:.5rem 1.2rem; border-radius:30px; cursor:pointer;
  background:var(--surface); border:1px solid var(--border);
  font-size:.88rem; color:var(--text-dim); transition: all .25s;
}
.res-tab:hover, .res-tab.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.res-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.2rem; }
.res-card {
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:1.4rem; transition: transform .25s, border-color .25s;
}
.res-card:hover { transform:translateY(-3px); border-color:var(--accent); }
.res-card .res-type {
  display:inline-block; padding:.15rem .5rem; border-radius:8px;
  font-size:.7rem; font-weight:700; text-transform:uppercase; margin-bottom:.6rem;
}
.res-card h4 { font-size:1rem; margin-bottom:.3rem; }
.res-card .res-author { font-size:.82rem; color:var(--text-dim); margin-bottom:.5rem; }
.res-card .res-desc { font-size:.85rem; color:var(--text-dim); margin-bottom:.7rem; }
.res-card .res-link { font-size:.85rem; font-weight:600; }
.type-book .res-type { background:rgba(108,99,255,.15); color:var(--accent); }
.type-course .res-type { background:rgba(67,233,123,.15); color:var(--accent3); }
.type-paper .res-type { background:rgba(255,101,132,.15); color:var(--accent2); }
.type-tool .res-type { background:rgba(248,216,0,.15); color:var(--accent4); }
.type-community .res-type { background:rgba(167,139,250,.15); color:#a78bfa; }
.hidden { display:none !important; }

/* ── SKILLS MATRIX ── */
.skills-table-wrap { overflow-x:auto; }
.skills-table {
  width:100%; border-collapse:collapse; background:var(--surface);
  border-radius:14px; overflow:hidden;
}
.skills-table th, .skills-table td { padding:.9rem 1.1rem; text-align:left; font-size:.88rem; }
.skills-table th { background:var(--surface2); color:var(--text-dim); font-weight:600; text-transform:uppercase; font-size:.75rem; letter-spacing:.5px; }
.skills-table tr { border-bottom:1px solid var(--border); }
.skills-table tr:last-child { border-bottom:none; }
.skills-table td:first-child { font-weight:600; }
.bar-cell { width:180px; }
.bar-bg { background:var(--surface2); border-radius:6px; height:10px; position:relative; overflow:hidden; }
.bar-fill { height:100%; border-radius:6px; transition:width 1s ease; }

/* ── PROJECTS ── */
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.2rem; }
.project-card {
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:1.5rem; transition: transform .25s, border-color .25s;
}
.project-card:hover { transform:translateY(-3px); border-color:var(--accent); }
.project-card .difficulty {
  display:inline-block; padding:.15rem .55rem; border-radius:8px;
  font-size:.72rem; font-weight:700; text-transform:uppercase; margin-bottom:.6rem;
}
.diff-beginner { background:rgba(67,233,123,.15); color:var(--accent3); }
.diff-intermediate { background:rgba(248,216,0,.15); color:var(--accent4); }
.diff-advanced { background:rgba(255,101,132,.15); color:var(--accent2); }
.diff-expert { background:rgba(167,139,250,.15); color:#a78bfa; }
.project-card h4 { margin-bottom:.4rem; }
.project-card p { font-size:.85rem; color:var(--text-dim); margin-bottom:.7rem; }
.project-links { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.2rem; }
.project-links a {
  display:inline-flex; align-items:center; gap:.3rem;
  padding:.3rem .7rem; border-radius:8px; font-size:.78rem; font-weight:600;
  background:rgba(108,99,255,.1); color:var(--accent); border:1px solid rgba(108,99,255,.2);
  transition: all .2s;
}
.project-links a:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
.project-card .project-phase { font-size:.78rem; color:var(--text-dim); margin-bottom:.5rem; font-style:italic; }

/* ── TOOLBOX ── */
.tool-categories { display:flex; flex-wrap:wrap; gap:1.5rem; }
.tool-cat {
  flex:1; min-width:280px; background:var(--surface); border:1px solid var(--border);
  border-radius:14px; padding:1.5rem;
}
.tool-cat h4 { margin-bottom:.8rem; display:flex; align-items:center; gap:.5rem; }
.tool-list { list-style:none; }
.tool-list li {
  padding:.45rem 0; border-bottom:1px solid var(--border);
  font-size:.88rem; display:flex; justify-content:space-between; align-items:center;
}
.tool-list li:last-child { border-bottom:none; }
.tool-list li a { color:var(--text); transition:color .2s; }
.tool-list li a:hover { color:var(--accent); }
.tool-list .tool-tag {
  font-size:.7rem; padding:.1rem .45rem; border-radius:8px;
  background:rgba(108,99,255,.12); color:var(--accent);
}
.skills-table td a {
  color:var(--accent); font-size:.78rem; text-decoration:none;
}
.skills-table td a:hover { text-decoration:underline; }

/* ── PROGRESS TRACKER ── */
.progress-section { background:var(--surface); border-radius:18px; padding:2.5rem; border:1px solid var(--border); }
.progress-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem; flex-wrap:wrap; gap:1rem; }
.progress-header h3 { font-size:1.3rem; }
.progress-overall { display:flex; align-items:center; gap:1rem; }
.progress-ring { width:64px; height:64px; }
.progress-ring circle { fill:none; stroke-width:6; }
.progress-ring .bg { stroke:var(--surface2); }
.progress-ring .fg { stroke:var(--accent); stroke-linecap:round; transition: stroke-dashoffset .8s ease; transform:rotate(-90deg); transform-origin:50% 50%; }
.progress-pct { font-size:1.6rem; font-weight:700; }
.checklist { list-style:none; }
.checklist li {
  padding:.65rem .8rem; border-radius:10px; margin-bottom:.5rem;
  display:flex; align-items:center; gap:.7rem; cursor:pointer;
  transition: background .2s; font-size:.92rem;
}
.checklist li:hover { background:var(--surface2); }
.checklist input[type=checkbox] {
  appearance:none; width:20px; height:20px; border:2px solid var(--border);
  border-radius:5px; cursor:pointer; flex-shrink:0; transition: all .2s;
  display:grid; place-content:center;
}
.checklist input[type=checkbox]:checked {
  background:var(--accent); border-color:var(--accent);
}
.checklist input[type=checkbox]:checked::before {
  content:'✓'; color:#fff; font-size:.75rem; font-weight:700;
}
.checklist li.done span { text-decoration:line-through; color:var(--text-dim); }

/* ── FOOTER ── */
footer {
  text-align:center; padding:3rem 2rem; color:var(--text-dim);
  font-size:.85rem; border-top:1px solid var(--border);
}

/* ── back-to-top ── */
.back-top {
  position:fixed; bottom:2rem; right:2rem; width:44px; height:44px;
  border-radius:50%; background:var(--accent); color:#fff;
  display:none; place-content:center; font-size:1.2rem;
  cursor:pointer; box-shadow:0 4px 16px var(--glow); z-index:90;
  border:none; transition: transform .2s;
}
.back-top:hover { transform:scale(1.1); }
.back-top.show { display:grid; }

/* ── MINDMAP ── */
.mindmap-wrap {
  position:relative; width:100%; overflow:hidden;
  background: var(--surface); border:1px solid var(--border); border-radius:18px;
  cursor:grab; user-select:none;
}
.mindmap-wrap:active { cursor:grabbing; }
.mindmap-canvas { display:block; width:100%; }
.mindmap-controls {
  position:absolute; top:1rem; right:1rem; display:flex; flex-direction:column; gap:.4rem; z-index:5;
}
.mindmap-controls button {
  width:36px; height:36px; border-radius:10px; border:1px solid var(--border);
  background:var(--surface2); color:var(--text); font-size:1.1rem; cursor:pointer;
  display:grid; place-content:center; transition: background .2s;
}
.mindmap-controls button:hover { background:var(--accent); color:#fff; }
.mindmap-legend {
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; margin-top:1.2rem;
}
.mindmap-legend span {
  display:flex; align-items:center; gap:.4rem; font-size:.82rem; color:var(--text-dim);
}
.mindmap-legend .dot-legend {
  width:12px; height:12px; border-radius:50%; display:inline-block;
}

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  nav ul { display:none; position:absolute; top:60px; left:0; right:0; background:var(--surface); flex-direction:column; padding:1rem 2rem; gap:1rem; border-bottom:1px solid var(--border); }
  nav ul.open, nav ul.show { display:flex; }
  .hamburger { display:block; }
  .roadmap::before { left:1.2rem; }
  .phase { width:calc(100% - 3rem); margin-left:2.5rem !important; }
  .phase .dot { left:-1.3rem !important; right:auto !important; transform:translateX(-50%) !important; }
  .res-grid { grid-template-columns:1fr; }
  .project-grid { grid-template-columns:1fr; }
  .tool-categories { flex-direction:column; }
}

/* ── SEARCH OVERLAY ── */
.search-overlay {
  display:none; position:fixed; inset:0; z-index:200;
  background:rgba(0,0,0,.6); backdrop-filter:blur(6px);
  justify-content:center; align-items:flex-start; padding-top:12vh;
}
.search-overlay.open { display:flex; }
.search-box {
  width:90%; max-width:600px; background:var(--surface); border:1px solid var(--border);
  border-radius:16px; padding:1rem; position:relative;
}
.search-box input {
  width:100%; padding:.75rem 2.5rem .75rem 1rem; border:none; border-radius:10px;
  background:var(--surface2); color:var(--text); font-size:1rem; outline:none;
}
.search-close {
  position:absolute; top:1.1rem; right:1.2rem; background:none; border:none;
  color:var(--text-dim); font-size:1.2rem; cursor:pointer;
}
.search-results {
  list-style:none; max-height:50vh; overflow-y:auto; margin-top:.5rem;
}
.search-results li {
  padding:.6rem .8rem; border-radius:8px; cursor:pointer; font-size:.9rem; color:var(--text);
}
.search-results li:hover { background:var(--surface2); }
.search-results li .sr-cat { font-size:.7rem; color:var(--accent); font-weight:600; text-transform:uppercase; margin-right:.5rem; }
.search-results li.no-results { color:var(--text-dim); cursor:default; }
.search-results li.no-results:hover { background:transparent; }

.hero-search-btn {
  display:inline-block; margin-left:.8rem; padding:.85rem 1.8rem; border-radius:50px;
  background:var(--surface); border:1px solid var(--border); color:var(--text-dim);
  font-size:.95rem; cursor:pointer; transition: border-color .2s, color .2s;
}
.hero-search-btn:hover { border-color:var(--accent); color:var(--text); }

/* ── PHASE PROGRESS BAR ── */
.phase-progress-bar {
  height:4px; background:var(--surface2); border-radius:2px; margin-bottom:.8rem; overflow:hidden;
}
.phase-progress-fill { height:100%; border-radius:2px; background:var(--accent); width:0; transition:width .8s ease; }

/* ── COLLAPSIBLE PHASES ── */
.phase-title {
  cursor:pointer; user-select:none; display:flex; align-items:center; justify-content:space-between;
  font-size:1.15rem; margin-bottom:.5rem;
}
.phase-title:hover { color:var(--accent); }
.collapse-icon {
  font-size:1rem; transition:transform .3s ease; color:var(--text-dim); margin-left:.5rem;
}
.phase.collapsed .collapse-icon { transform:rotate(-90deg); }
.phase-body {
  max-height:2000px; overflow:hidden; transition: max-height .4s ease, opacity .3s ease; opacity:1;
}
.phase.collapsed .phase-body {
  max-height:0; opacity:0; margin:0; padding:0;
}

/* ── RELATED RESOURCES ── */
.related-resources {
  margin-top:1rem; padding-top:.8rem; border-top:1px dashed var(--border);
}
.related-resources h4 {
  font-size:.82rem; color:var(--text-dim); margin-bottom:.5rem; font-weight:600;
}
.related-resources a {
  display:inline-flex; align-items:center; gap:.25rem;
  padding:.2rem .6rem; border-radius:8px; font-size:.75rem; font-weight:600;
  background:rgba(167,139,250,.08); color:#a78bfa; border:1px solid rgba(167,139,250,.15);
  margin:.2rem .3rem .2rem 0; transition:all .2s;
}
.related-resources a:hover { background:#a78bfa; color:#fff; border-color:#a78bfa; }

/* ── STUDY NOTES ── */
.phase-notes { margin-top:1rem; }
.notes-toggle {
  background:none; border:1px solid var(--border); padding:.3rem .8rem; border-radius:8px;
  color:var(--text-dim); font-size:.8rem; cursor:pointer; transition: color .2s, border-color .2s;
}
.notes-toggle:hover { border-color:var(--accent); color:var(--text); }
.notes-area {
  width:100%; min-height:80px; margin-top:.5rem; padding:.7rem; border-radius:10px;
  background:var(--surface2); border:1px solid var(--border); color:var(--text);
  font-family:inherit; font-size:.88rem; resize:vertical;
}

/* ── PROGRESS ACTIONS (export/import/next) ── */
.progress-actions { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.2rem; }
.btn-sm {
  padding:.4rem 1rem; border-radius:8px; border:1px solid var(--border);
  background:var(--surface2); color:var(--text); font-size:.82rem; cursor:pointer;
  transition: all .2s;
}
.btn-sm:hover { border-color:var(--accent); color:var(--accent); }

/* ── TIME TRACKER ── */
.time-tracker { margin-top:2rem; padding-top:1.5rem; border-top:1px solid var(--border); }
.time-tracker h4 { margin-bottom:1rem; }
.time-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:.6rem; }
.time-item {
  display:flex; align-items:center; gap:.6rem; padding:.5rem .8rem;
  background:var(--surface2); border-radius:10px; font-size:.88rem;
}
.time-item span:first-child { font-weight:600; min-width:55px; }
.time-val { flex:1; color:var(--accent); font-family:monospace; }
.btn-timer {
  width:28px; height:28px; border-radius:50%; border:1px solid var(--border);
  background:none; color:var(--text); cursor:pointer; font-size:.8rem;
  display:grid; place-content:center; transition:all .2s;
}
.btn-timer:hover { border-color:var(--accent); color:var(--accent); }
.btn-timer.running { background:var(--accent2); border-color:var(--accent2); color:#fff; }

/* ── RESOURCE BOOKMARKS ── */
.bookmark-btn {
  position:absolute; top:.8rem; right:.8rem; background:none; border:none;
  font-size:1.2rem; cursor:pointer; opacity:.4; transition:opacity .2s;
}
.bookmark-btn:hover, .bookmark-btn.active { opacity:1; }
.res-card { position:relative; }

/* ── KEYBOARD SHORTCUTS OVERLAY ── */
.kbd-overlay {
  position:fixed; inset:0; z-index:300; background:rgba(0,0,0,.6);
  backdrop-filter:blur(6px); display:flex; justify-content:center; align-items:center;
}
.kbd-overlay.hidden { display:none; }
.kbd-box {
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:2rem; min-width:320px; max-width:420px;
}
.kbd-box h3 { margin-bottom:1rem; }
.kbd-box ul { list-style:none; }
.kbd-box li { padding:.4rem 0; font-size:.92rem; color:var(--text-dim); }
.kbd-box kbd {
  display:inline-block; padding:.15rem .5rem; border-radius:5px; font-size:.82rem;
  background:var(--surface2); border:1px solid var(--border); color:var(--text);
  font-family:monospace; margin-right:.3rem;
}
.kbd-box .btn-sm { margin-top:1rem; }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity:0; transform:translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity:1; transform:translateY(0);
}
/* stagger children */
.fade-in:nth-child(2) { transition-delay:.1s; }
.fade-in:nth-child(3) { transition-delay:.2s; }
.fade-in:nth-child(4) { transition-delay:.3s; }
.fade-in:nth-child(5) { transition-delay:.4s; }
.fade-in:nth-child(6) { transition-delay:.5s; }

/* ── PRINT ── */
@media print {
  nav, .hero, .mindmap-wrap, .mindmap-legend, .mindmap-controls,
  .back-top, .theme-toggle, .hamburger, .search-overlay,
  .kbd-overlay, .phase-notes, .progress-actions, .time-tracker,
  .scroll-hint, .hero-search-btn, .btn-timer { display:none !important; }
  body { background:#fff; color:#000; }
  section { padding:1.5rem 0; page-break-inside:avoid; }
  .phase { width:100% !important; margin-left:0 !important; border:1px solid #ccc; page-break-inside:avoid; }
  .roadmap::before { display:none; }
  .phase .dot { display:none; }
  .overview-card, .res-card, .project-card { border:1px solid #ccc; box-shadow:none; }
  a { color:#333; text-decoration:underline; }
  .checklist input[type=checkbox] { appearance:auto; }
}

/* ── What's Next highlight ── */
.checklist li.next-item {
  background:rgba(108,99,255,.15); border:1px solid var(--accent);
  border-radius:10px; animation:pulse-next 2s ease infinite;
}
@keyframes pulse-next {
  0%,100% { box-shadow:0 0 0 0 rgba(108,99,255,.3); }
  50% { box-shadow:0 0 12px 4px rgba(108,99,255,.15); }
}
