
  :root {
    --navy: #0d1f35;
    --navy-mid: #1a3a5c;
    --blue: #2563eb;
    --blue-light: #dbeafe;
    --orange: #ea580c;
    --orange-light: #fff0e6;
    --green: #16a34a;
    --green-light: #dcfce7;
    --yellow-light: #fefce8;
    --cream: #faf9f7;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --text: #1e293b;
    --border: #e2e8f0;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
  }

  /* ── SIDEBAR NAV ── */
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    background: var(--navy);
    padding: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
  }

  .sidebar-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-logo .logo-badge {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 6px;
  }

  .sidebar-logo h2 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
  }

  .sidebar-logo p {
    font-size: 11.5px;
    color: rgba(255,255,255,0.45);
    margin-top: 5px;
    line-height: 1.4;
  }

  .sidebar-nav { padding: 16px 0; flex: 1; }

  .nav-section-label {
    font-family: 'Syne', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 12px 24px 6px;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px 9px 24px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.18s ease;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 400;
  }

  .nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }

  .nav-item.active {
    color: #fff;
    border-left-color: var(--orange);
    background: rgba(255,255,255,0.07);
    font-weight: 500;
  }

  .nav-item .num {
    width: 22px; height: 22px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
    color: rgba(255,255,255,0.6);
    transition: all 0.18s;
  }

  .nav-item.active .num, .nav-item:hover .num {
    background: var(--orange);
    color: #fff;
  }

  .progress-bar-wrap {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .progress-bar-wrap p {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .progress-track {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #f97316);
    border-radius: 99px;
    transition: width 0.5s ease;
    width: 0%;
  }

  .progress-text {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
    text-align: right;
  }

  /* ── MAIN CONTENT ── */
  .main {
    margin-left: 260px;
    min-height: 100vh;
  }

  /* ── HERO ── */
  .hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0f2744 55%, #1a3a5c 100%);
    padding: 80px 64px 72px;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero::after {
    content: '';
    position: absolute;
    left: 40%; bottom: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(234,88,12,0.12) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-kicker {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.6s 0.1s ease forwards;
  }

  .hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s ease forwards;
  }

  .hero h1 span { color: var(--orange); }

  .hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.6s 0.3s ease forwards;
  }

  .hero-pills {
    display: flex; flex-wrap: wrap; gap: 10px;
    opacity: 0;
    animation: fadeUp 0.6s 0.4s ease forwards;
    margin-bottom: 44px;
  }

  .pill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.65);
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 400;
    backdrop-filter: blur(4px);
  }

  .hero-stats {
    display: flex; gap: 40px; flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s ease forwards;
  }

  .stat { text-align: left; }
  .stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
  }
  .stat-num span { color: var(--orange); }
  .stat-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 4px; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── SECTIONS ── */
  .section {
    padding: 64px 64px 48px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .section.visible { opacity: 1; transform: none; }

  .section-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 36px;
  }

  .section-num {
    width: 44px; height: 44px;
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
  }

  .section-title-wrap h2 {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
  }

  .section-title-wrap .meta {
    font-size: 12.5px;
    color: var(--gray);
    margin-top: 3px;
  }

  .section-title-wrap .meta span {
    display: inline-block;
    background: var(--orange-light);
    color: var(--orange);
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 12px;
  }

  /* ── MODULE CARD ── */
  .module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .module-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  }

  .module-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-color: var(--blue);
    transform: translateY(-2px);
  }

  .module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--orange));
  }

  .card-module-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
  }

  .card-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .card-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.55;
  }

  /* ── LESSON DETAIL ── */
  .lesson-block {
    background: #fff;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  .lesson-header {
    background: var(--navy);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .lesson-header-left h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
  }

  .lesson-header-left .module-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10.5px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .duration-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
  }

  .lesson-body { padding: 0; }

  .lesson-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    border-bottom: 1px solid var(--border);
  }

  .lesson-row:last-child { border-bottom: none; }

  .lesson-label {
    background: var(--gray-light);
    padding: 20px 20px;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-mid);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    border-right: 1px solid var(--border);
  }

  .lesson-content {
    padding: 20px 24px;
    font-size: 14px;
    color: var(--text);
  }

  .lesson-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .lesson-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
  }

  .lesson-content ul li::before {
    content: '▸';
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 12px;
  }

  .prompt-item {
    background: var(--navy);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 12.5px;
    color: #93c5fd;
    line-height: 1.6;
    border-left: 3px solid var(--orange);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
  }

  .prompt-item:hover { background: #1a3a5c; }

  .prompt-item .copy-hint {
    position: absolute;
    top: 8px; right: 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    font-family: 'DM Sans', sans-serif;
    opacity: 0;
    transition: opacity 0.15s;
  }

  .prompt-item:hover .copy-hint { opacity: 1; }

  .outcome-row .lesson-label { background: var(--green-light); color: var(--green); }
  .outcome-row .lesson-content { background: #f0fdf4; color: var(--green); font-weight: 500; }

  .activity-row .lesson-label { background: var(--orange-light); color: var(--orange); }

  /* ── CALLOUT BOXES ── */
  .callout {
    border-radius: 14px;
    padding: 20px 24px;
    margin: 20px 0;
  }

  .callout.blue { background: var(--blue-light); border-left: 4px solid var(--blue); }
  .callout.orange { background: var(--orange-light); border-left: 4px solid var(--orange); }
  .callout.green { background: var(--green-light); border-left: 4px solid var(--green); }
  .callout.yellow { background: var(--yellow-light); border-left: 4px solid #ca8a04; }

  .callout-title {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 10px;
  }

  .callout.blue .callout-title { color: var(--blue); }
  .callout.orange .callout-title { color: var(--orange); }
  .callout.green .callout-title { color: var(--green); }
  .callout.yellow .callout-title { color: #92400e; }

  .callout ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }

  .callout ul li {
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
  }

  .callout ul li::before { content: '✓'; flex-shrink: 0; font-weight: 700; }
  .callout.orange ul li::before { content: '✗'; color: var(--orange); }
  .callout.blue ul li::before { color: var(--blue); }
  .callout.green ul li::before { color: var(--green); }
  .callout.yellow ul li::before { content: '★'; color: #92400e; }

  /* ── TABLE ── */
  .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13.5px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--border);
  }

  .data-table th {
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.5;
  }

  .data-table tr:nth-child(even) td { background: var(--gray-light); }
  .data-table tr:last-child td { border-bottom: none; }

  /* ── PROMPT FORMULA TABLE ── */
  .formula-grid {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    margin: 16px 0;
    font-size: 13.5px;
  }

  .formula-grid .fh {
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.1);
  }

  .formula-grid .fc {
    padding: 12px 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
  }

  .formula-grid .fc:nth-child(3n) { border-right: none; }
  .formula-grid .fc.elem { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; }
  .formula-grid .fc.example { font-family: 'DM Mono', monospace; font-size: 12.5px; color: var(--green); }
  .formula-grid .fc.even { background: var(--blue-light); }
  .formula-grid .fc.even.example { background: #e0f2fe; }

  /* ── CHECKLIST ── */
  .checklist-section {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
  }

  .checklist-header {
    background: var(--gray-light);
    padding: 14px 24px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
  }

  .checklist-header h4 {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
  }

  .check-items { padding: 8px 0; }

  .check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid var(--gray-light);
  }

  .check-item:last-child { border-bottom: none; }
  .check-item:hover { background: var(--gray-light); }

  .check-item input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .check-item label {
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
    line-height: 1.5;
    transition: color 0.12s;
  }

  .check-item.done label {
    text-decoration: line-through;
    color: var(--gray);
  }

  /* ── PROMPT LIBRARY ── */
  .prompt-lib-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .prompt-lib-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--border);
  }

  .plc-header {
    padding: 14px 20px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .plc-header.blue { background: var(--blue); }
  .plc-header.orange { background: var(--orange); }
  .plc-header.green { background: var(--green); }
  .plc-header.navy { background: var(--navy-mid); }

  .plc-body { background: #fff; padding: 16px; }

  .prompt-template {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .prompt-template:hover { background: var(--blue-light); border-color: var(--blue); }
  .prompt-template:last-child { margin-bottom: 0; }

  .pt-label {
    font-family: 'Syne', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 5px;
  }

  .pt-text {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--navy);
    line-height: 1.55;
  }

  /* ── DO/DONT ── */
  .do-dont {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
  }

  .do-card {
    background: var(--green-light);
    border: 1.5px solid #86efac;
    border-radius: 14px;
    padding: 20px 22px;
  }

  .dont-card {
    background: #fff1f2;
    border: 1.5px solid #fca5a5;
    border-radius: 14px;
    padding: 20px 22px;
  }

  .dd-title {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .do-card .dd-title { color: var(--green); }
  .dont-card .dd-title { color: #dc2626; }

  .dd-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

  .dd-list li {
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .do-card .dd-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
  .dont-card .dd-list li::before { content: '✗'; color: #dc2626; font-weight: 700; flex-shrink: 0; }

  /* ── JOURNEY TABLE ── */
  .journey-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    font-size: 13.5px;
    margin-top: 16px;
  }

  .journey-table th {
    background: var(--navy);
    color: rgba(255,255,255,0.5);
    padding: 10px 16px;
    text-align: left;
    font-size: 11px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .journey-table td {
    padding: 12px 16px;
    vertical-align: top;
    line-height: 1.55;
    border-bottom: 1px solid var(--border);
  }

  .journey-table tr:last-child td { border-bottom: none; }
  .journey-table tr:nth-child(even) td { background: #f8fafc; }
  .journey-table td:first-child { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--blue); font-weight: 500; white-space: nowrap; }
  .journey-table td:nth-child(2) { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; color: var(--navy); }

  /* ── QUOTE BANNER ── */
  .quote-banner {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
    border-radius: 20px;
    padding: 40px 48px;
    text-align: center;
    margin: 32px 0 0;
  }

  .quote-banner blockquote {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .quote-banner blockquote span { color: var(--orange); }

  .quote-banner p {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-style: italic;
  }

  /* ── TOAST ── */
  .toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid var(--orange);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.22s ease;
    pointer-events: none;
    z-index: 999;
  }

  .toast.show { opacity: 1; transform: none; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .sidebar { display: none; }
    .main { margin-left: 0; }
    .hero, .section { padding-left: 24px; padding-right: 24px; }
    .module-grid, .prompt-lib-grid, .do-dont { grid-template-columns: 1fr; }
    .formula-grid { grid-template-columns: 1fr 1fr; }
    .formula-grid .fh:nth-child(3), .formula-grid .fc:nth-child(3n) { display: none; }
    .lesson-row { grid-template-columns: 1fr; }
    .lesson-label { border-right: none; border-bottom: 1px solid var(--border); }
  }
