/* ============================================================
   NotebookLM Workshop Module - Scoped CSS
   All selectors prefixed with .nlm-module to avoid conflicts
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Variables
   ------------------------------------------------------------ */
.nlm-module {
    --bg-primary: #000000;
    --bg-elevated: #0a0f14;
    --bg-surface: #111820;
    --bg-card: rgba(10, 15, 20, 0.95);
    --bg-card-hover: rgba(15, 22, 30, 0.9);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(255, 255, 255, 0.15);
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-glow: rgba(34, 197, 94, 0.3);
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.3);
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.3);
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-glow: rgba(251, 191, 36, 0.35);
    --success: #22c55e;
    --success-muted: rgba(34, 197, 94, 0.15);
    --warning: #facc15;
    --warning-muted: rgba(250, 204, 21, 0.15);
    --error: #ef4444;
    --error-muted: rgba(239, 68, 68, 0.15);
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ambient-opacity: 1;
    --grid-color: rgba(255, 255, 255, 0.03);

    /* Module container - sits below main site header (72px) */
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    overflow-y: auto;
}

/* ------------------------------------------------------------
   2. Light Mode
   ------------------------------------------------------------ */
.nlm-module[data-theme="light"] {
    --bg-primary: #F9FAFB;
    --bg-elevated: #FFFFFF;
    --bg-surface: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-subtle: #F3F4F6;
    --border-default: #E5E7EB;
    --border-accent: #D1D5DB;
    --green-glow: rgba(34, 197, 94, 0.15);
    --purple-glow: rgba(139, 92, 246, 0.15);
    --blue-glow: rgba(59, 130, 246, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --ambient-opacity: 0.15;
    --grid-color: rgba(0, 0, 0, 0.02);
}

.nlm-module[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nlm-module[data-theme="light"] .header-progress { background: #E5E7EB; }
.nlm-module[data-theme="light"] .header-progress-bar { background: linear-gradient(90deg, #312e81, #4338ca, #6366f1) !important; box-shadow: 0 0 8px rgba(99, 102, 241, 0.5) !important; }

.nlm-module[data-theme="light"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #F9FAFB;
    z-index: -1;
}

.nlm-module[data-theme="light"] .landing-bg { opacity: var(--ambient-opacity); }
.nlm-module[data-theme="light"] .landing-grid { background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px); }
.nlm-module[data-theme="light"] .landing-orb { opacity: 0.2; }

.nlm-module[data-theme="light"] .glass-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0 10px 15px rgba(2, 6, 23, 0.06);
    backdrop-filter: none;
}
.nlm-module[data-theme="light"] .glass-card:hover { background: #FFFFFF; transform: translateY(-1px); border-color: rgba(59, 130, 246, 0.15); box-shadow: 0 6px 15px rgba(2, 6, 23, 0.08); }
.nlm-module[data-theme="light"] .glass-card--highlight { background: #FFFFFF; border-color: #E5E7EB; }

.nlm-module[data-theme="light"] .controls { background: rgba(255, 255, 255, 0.9); border-color: #E5E7EB; }
.nlm-module[data-theme="light"] .control-btn { border-color: #D1D5DB; color: #6B7280; }
.nlm-module[data-theme="light"] .control-btn:hover:not(:disabled) { background: rgba(99, 102, 241, 0.1); border-color: #6366f1; color: #6366f1; }
.nlm-module[data-theme="light"] .controls-dot { background: #D1D5DB; }
.nlm-module[data-theme="light"] .controls-dot.active { background: #4338ca; box-shadow: 0 0 10px rgba(67, 56, 202, 0.4); }
.nlm-module[data-theme="light"] .controls-dot.completed { background: rgba(34, 197, 94, 0.7); }
.nlm-module[data-theme="light"] .controls-counter { color: #6B7280; }

.nlm-module[data-theme="light"] .btn--shiny {
    background: radial-gradient(ellipse 80% 50% at 50% 120%, rgba(139, 92, 246, 0.4) 0%, transparent 50%), linear-gradient(135deg, #312e81, #4338ca, #6366f1);
    border: none;
    color: #FFFFFF;
    box-shadow: 0 8px 25px -8px rgba(79, 70, 229, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: none;
}
.nlm-module[data-theme="light"] .btn--shiny::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%); }

.nlm-module[data-theme="light"] .theme-toggle .sun-icon { display: none; }
.nlm-module[data-theme="light"] .theme-toggle .moon-icon { display: block; }

.nlm-module[data-theme="light"] .nlm-showcase-media { border-color: #E5E7EB; background: #F9FAFB; }
.nlm-module[data-theme="light"] .nlm-showcase-media:hover { border-color: #D1D5DB; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); }
.nlm-module[data-theme="light"] .nlm-showcase-row[data-color="green"] .nlm-showcase-media:hover { border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 0 15px rgba(34, 197, 94, 0.1); }
.nlm-module[data-theme="light"] .nlm-showcase-row[data-color="purple"] .nlm-showcase-media:hover { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 0 15px rgba(168, 85, 247, 0.1); }
.nlm-module[data-theme="light"] .nlm-showcase-row[data-color="blue"] .nlm-showcase-media:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 0 15px rgba(59, 130, 246, 0.1); }
.nlm-module[data-theme="light"] .nlm-showcase-row[data-color="amber"] .nlm-showcase-media:hover { border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 0 15px rgba(251, 191, 36, 0.1); }

.nlm-module[data-theme="light"] .nlm-tool-card { background: #FFFFFF; border-color: #E5E7EB; }
.nlm-module[data-theme="light"] .nlm-tool-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
.nlm-module[data-theme="light"] .nlm-tool-card--highlight { background: rgba(34, 197, 94, 0.03); border-color: rgba(34, 197, 94, 0.25); }
.nlm-module[data-theme="light"] .nlm-tool-card--highlight::before { background: radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.05), transparent 60%); }
.nlm-module[data-theme="light"] .nlm-scenario { background: #FFFFFF; border-color: #E5E7EB; }
.nlm-module[data-theme="light"] .nlm-scenario:hover { background: #F9FAFB; }

/* ------------------------------------------------------------
   3. Header
   ------------------------------------------------------------ */
.nlm-module .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
}
.nlm-module .logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.nlm-module .logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--text-primary); letter-spacing: -0.01em; }
.nlm-module .logo-divider { width: 1px; height: 24px; background: var(--border-default); }
.nlm-module .logo-subtitle { font-size: 1.125rem; font-weight: 300; color: var(--text-muted); }
.nlm-module .header-right { display: flex; align-items: center; gap: 12px; }
.nlm-module .slide-counter { font-size: 1rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.nlm-module .header-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, 0.1); }
.nlm-module .header-progress-bar { height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-400)); width: 0%; transition: width 0.4s var(--ease-out); box-shadow: 0 0 8px var(--green-glow); }
.nlm-module .theme-toggle { position: relative; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 10px; padding: 10px; cursor: pointer; color: var(--text-primary); backdrop-filter: blur(12px); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; margin-left: 16px; }
.nlm-module .theme-toggle:hover { border-color: var(--border-accent); transform: scale(1.05); background: var(--bg-card-hover); }
.nlm-module .theme-toggle svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.nlm-module .theme-toggle:hover svg { transform: rotate(15deg); }
.nlm-module .theme-toggle .sun-icon { display: block; }
.nlm-module .theme-toggle .moon-icon { display: none; }

/* ------------------------------------------------------------
   4. Controls (Bottom Nav)
   ------------------------------------------------------------ */
.nlm-module .controls { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; z-index: 1000; background: rgba(0, 0, 0, 0.6); padding: 12px 24px; border-radius: 50px; border: 1px solid rgba(34, 197, 94, 0.3); backdrop-filter: blur(10px); }
.nlm-module .control-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(34, 197, 94, 0.6); background: transparent; color: rgba(34, 197, 94, 0.9); font-size: 1.25rem; cursor: pointer; transition: all 0.3s var(--ease-out); display: flex; align-items: center; justify-content: center; }
.nlm-module .control-btn:hover:not(:disabled) { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.9); transform: scale(1.05); }
.nlm-module .control-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.nlm-module .controls-counter { font-size: 1.1rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); min-width: 40px; text-align: center; }
.nlm-module .controls-dots { display: flex; align-items: center; gap: 8px; }
.nlm-module .controls-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: all 0.2s ease; cursor: pointer; position: relative; }
.nlm-module .controls-dot::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.nlm-module .controls-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.7); transform: scale(1.8); }
.nlm-module .controls-dot.active { width: 24px; border-radius: 10px; background: #ffffff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.nlm-module .controls-dot.completed { background: rgba(34, 197, 94, 0.8); }
.nlm-module .dot-group { display: flex; align-items: center; gap: 8px; }
.nlm-module .dot-group-intro { padding: 4px 8px; background: rgba(34, 197, 94, 0.1); border-radius: 20px; border: 1px solid rgba(34, 197, 94, 0.2); }
.nlm-module .dot-separator { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.2); margin: 0 4px; }

/* ------------------------------------------------------------
   5. Slide Layout
   ------------------------------------------------------------ */
.nlm-module .slide-container { position: relative; width: 100%; min-height: 100%; z-index: 1; text-align: left; }
.nlm-module .slide { display: none; width: 100%; min-height: 100%; padding: 40px 60px 80px; max-width: 85vw; margin: 0 auto; }
.nlm-module .slide.active { display: block; animation: nlm-slideIn 0.5s var(--ease-out); }
.nlm-module .slide.active.nlm-slide-centered { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
@keyframes nlm-slideIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------------
   6. Glass Cards
   ------------------------------------------------------------ */
.nlm-module .glass-card { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(34, 197, 94, 0.2); border-radius: var(--radius-xl); padding: 36px; backdrop-filter: blur(12px); transition: all 0.3s var(--ease-out); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(34, 197, 94, 0.02); }
.nlm-module .glass-card:hover { background: rgba(0, 0, 0, 0.5); border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(34, 197, 94, 0.15), inset 0 0 30px rgba(34, 197, 94, 0.03); }
.nlm-module .glass-card--highlight { border-color: rgba(34, 197, 94, 0.3); background: rgba(0, 0, 0, 0.85); }
.nlm-module .glass-card--highlight:hover { background: rgba(0, 0, 0, 0.9); border-color: rgba(34, 197, 94, 0.5); }

/* ------------------------------------------------------------
   7. Typography
   ------------------------------------------------------------ */
.nlm-module .text-label { font-size: 1rem; font-weight: 500; color: var(--green-400); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.nlm-module .text-display { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; line-height: 1.1; margin-bottom: 20px; color: var(--text-primary); }
.nlm-module .text-display .accent { background: linear-gradient(135deg, #4ade80 0%, #86efac 25%, #a78bfa 50%, #c4b5fd 75%, #4ade80 100%); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: nlm-gradient-text-shift 15s ease-in-out infinite; }
@keyframes nlm-gradient-text-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.nlm-module .text-section { font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 300; margin-bottom: 24px; color: var(--text-primary); }
.nlm-module .text-section .accent,
.nlm-module .accent { background: linear-gradient(135deg, #4ade80 0%, #86efac 25%, #a78bfa 50%, #c4b5fd 75%, #4ade80 100%); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: nlm-gradient-text-shift 15s ease-in-out infinite; }
.nlm-module .text-body { font-size: 1.25rem; line-height: 1.7; color: var(--text-secondary); max-width: 900px; }
.nlm-module .text-body-lg { font-size: 1.5rem; line-height: 1.7; color: var(--text-secondary); max-width: 1000px; }
.nlm-module .text-muted { color: var(--text-muted); }

/* ------------------------------------------------------------
   8. Form Elements
   ------------------------------------------------------------ */
.nlm-module .form-group { margin-bottom: 28px; width: 100%; }
.nlm-module .form-label { display: block; font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 10px; font-weight: 500; }
.nlm-module .form-input,
.nlm-module .form-select,
.nlm-module .form-textarea { width: 100%; padding: 18px 22px; font-size: 1.125rem; font-family: var(--font-body); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-default); border-radius: var(--radius-lg); color: var(--text-primary); transition: all 0.3s var(--ease-out); box-sizing: border-box; }
.nlm-module .form-input:focus,
.nlm-module .form-select:focus,
.nlm-module .form-textarea:focus { outline: none; border-color: var(--green-400); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15), 0 0 20px rgba(34, 197, 94, 0.1); }
.nlm-module .form-input::placeholder,
.nlm-module .form-textarea::placeholder { color: var(--text-muted); }
.nlm-module .form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 44px; }
.nlm-module .form-select option { background: var(--bg-elevated); color: var(--text-primary); }
.nlm-module .form-textarea { min-height: 100px; resize: none; overflow: hidden; field-sizing: content; }

/* ------------------------------------------------------------
   9. Buttons
   ------------------------------------------------------------ */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.nlm-module .btn--shiny { position: relative; overflow: hidden; border-radius: 9999px; padding: 1.25rem 2.75rem; font-size: 1.25rem; font-weight: 500; color: #ffffff; background: linear-gradient(#000000, #000000) padding-box, conic-gradient(from var(--gradient-angle), transparent 0%, var(--green-500) 10%, var(--green-400) 20%, var(--purple-400) 30%, var(--green-500) 40%, transparent 50%) border-box; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); cursor: pointer; isolation: isolate; animation: nlm-shiny-border-spin 3s linear infinite; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-body); }
@keyframes nlm-shiny-border-spin { to { --gradient-angle: 360deg; } }
.nlm-module .btn--shiny:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 30px rgba(34, 197, 94, 0.4); }
.nlm-module .btn--shiny:active { transform: translateY(1px); }
.nlm-module .btn--shiny::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(34, 197, 94, 0.08), transparent 40%); pointer-events: none; }
.nlm-module .btn--shiny span,
.nlm-module .btn--shiny i,
.nlm-module .btn--shiny svg { position: relative; z-index: 2; }
.nlm-module .btn--shiny.copied { background: linear-gradient(rgba(10, 15, 20, 0.95), rgba(10, 15, 20, 0.95)) padding-box, conic-gradient(from var(--gradient-angle), transparent 0%, #22c55e 10%, #4ade80 20%, #22c55e 30%, transparent 40%) border-box; box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
.nlm-module .btn--shiny-pink { background: linear-gradient(#000000, #000000) padding-box, conic-gradient(from var(--gradient-angle), transparent 0%, #ec4899 10%, #f472b6 20%, #a855f7 30%, #ec4899 40%, transparent 50%) border-box; }
.nlm-module .btn--shiny-pink:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 30px rgba(236, 72, 153, 0.4); }
.nlm-module .btn--shiny-pink::before { background: radial-gradient(circle at 50% 120%, rgba(236, 72, 153, 0.15), transparent 60%); }
.nlm-module .btn.btn-warning { background: rgba(250, 204, 21, 0.1); border: 1px solid rgba(250, 204, 21, 0.3); color: var(--warning); padding: 12px 24px; border-radius: var(--radius-lg); cursor: pointer; font-size: 1rem; font-family: var(--font-body); display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.nlm-module .btn.btn-warning:hover { background: rgba(250, 204, 21, 0.2); }

/* ------------------------------------------------------------
   10. Card Grid & Card Title
   ------------------------------------------------------------ */
.nlm-module .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 28px; margin-top: 32px; }
.nlm-module .card-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }

/* ------------------------------------------------------------
   11. Step List
   ------------------------------------------------------------ */
.nlm-module .step-list { list-style: none; padding: 0; margin: 0; }
.nlm-module .step-item { display: flex; align-items: flex-start; gap: 20px; padding: 28px; background: rgba(0, 0, 0, 0.85); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); margin-bottom: 16px; transition: all 0.3s var(--ease-out); }
.nlm-module .step-item.completed { background: var(--success-muted); border-color: rgba(34, 197, 94, 0.3); }
.nlm-module .step-checkbox { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(34, 197, 94, 0.5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all 0.3s var(--ease-out); animation: nlm-checkboxPulse 2s ease-in-out infinite; }
@keyframes nlm-checkboxPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); border-color: rgba(34, 197, 94, 0.5); } 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.8); } }
.nlm-module .step-checkbox:not(.checked)::before { content: '\2713'; font-size: 14px; color: var(--text-muted); opacity: 0; transition: opacity 0.2s ease; }
.nlm-module .step-checkbox:hover { border-color: var(--green-400); background: rgba(34, 197, 94, 0.1); transform: scale(1.1); }
.nlm-module .step-checkbox:not(.checked):hover::before { opacity: 0.6; }
.nlm-module .step-checkbox.checked { background: var(--success); border-color: var(--success); animation: none; }
.nlm-module .step-checkbox.checked::before { display: none; }
.nlm-module .step-checkbox.checked::after { content: ''; width: 12px; height: 8px; border: 2px solid white; border-top: none; border-right: none; transform: rotate(-45deg); }
.nlm-module .step-item.locked { opacity: 0.5; pointer-events: none; }
.nlm-module .step-item.locked .step-checkbox { animation: none; border-color: var(--border-subtle); cursor: not-allowed; }
.nlm-module .step-item.current { border-color: rgba(34, 197, 94, 0.4); background: rgba(10, 20, 25, 0.95); margin-top: -2px; box-shadow: 0 0 20px rgba(34, 197, 94, 0.15); }
.nlm-module .step-content { flex: 1; text-align: left; }
.nlm-module .step-title { font-weight: 500; font-size: 1.25rem; margin-bottom: 8px; color: var(--text-primary); }
.nlm-module .step-desc { font-size: 1.125rem; color: var(--text-primary); line-height: 1.6; }

/* ------------------------------------------------------------
   14. Rating & Status
   ------------------------------------------------------------ */
.nlm-module .rating-container { display: flex; gap: 10px; margin: 16px 0; }
.nlm-module .rating-btn { width: 48px; height: 48px; border-radius: var(--radius-lg); border: 1px solid var(--border-default); background: rgba(255, 255, 255, 0.02); color: var(--text-muted); font-size: 1.125rem; font-family: var(--font-body); cursor: pointer; transition: all 0.3s var(--ease-out); }
.nlm-module .rating-btn:hover,
.nlm-module .rating-btn.selected { background: rgba(34, 197, 94, 0.15); border-color: var(--green-400); color: var(--green-400); }
.nlm-module .status-message { padding: 14px 18px; border-radius: var(--radius-lg); margin: 20px 0; display: none; font-size: 0.9375rem; }
.nlm-module .status-message.success { display: block; background: var(--success-muted); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success); }
.nlm-module .status-message.error { display: block; background: var(--error-muted); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--error); }

/* ------------------------------------------------------------
   15. Quote Box
   ------------------------------------------------------------ */
.nlm-module .quote-box { background: rgba(34, 197, 94, 0.05); border-left: 4px solid var(--green-400); padding: 28px 32px; margin: 40px 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.nlm-module .quote-box p { color: var(--text-secondary); font-size: 1.25rem; line-height: 1.7; margin: 0; }
.nlm-module .quote-box strong { color: var(--text-primary); }

/* ------------------------------------------------------------
   16. Background Effects
   ------------------------------------------------------------ */
.nlm-module .landing-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.nlm-module .landing-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 60px 60px; }
.nlm-module .landing-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.nlm-module .landing-orb--purple { width: 1000px; height: 1000px; background: radial-gradient(circle, var(--purple-400) 0%, rgba(168, 85, 247, 0.2) 30%, transparent 60%); opacity: 0.35; top: -300px; right: -200px; }
.nlm-module .landing-orb--blue { width: 900px; height: 900px; background: radial-gradient(circle, var(--blue-400) 0%, rgba(59, 130, 246, 0.2) 30%, transparent 60%); opacity: 0.4; bottom: -200px; left: -150px; }
.nlm-module .landing-orb--green { width: 800px; height: 800px; background: radial-gradient(circle, var(--green-400) 0%, rgba(34, 197, 94, 0.2) 30%, transparent 60%); opacity: 0.25; top: 30%; left: 40%; }
.nlm-module .landing-particles { position: absolute; inset: 0; }
.nlm-module .landing-particles canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ------------------------------------------------------------
   17. Video Elements
   ------------------------------------------------------------ */
.nlm-module .video-preview { width: 180px; height: 100px; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; position: relative; border: 2px solid var(--border-default); transition: all 0.3s var(--ease-out); flex-shrink: 0; }
.nlm-module .video-preview:hover { border-color: var(--green-400); transform: scale(1.02); box-shadow: 0 0 20px var(--green-glow); }
.nlm-module .video-preview video { width: 100%; height: 100%; object-fit: cover; }
.nlm-module .video-preview .expand-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: rgba(0, 0, 0, 0.7); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.nlm-module .video-preview:hover .expand-icon { opacity: 1; }
.nlm-module .video-preview--large { width: 60vw; max-width: 700px; height: auto; aspect-ratio: 16 / 9; margin: 0 auto 16px auto; }
.nlm-module .video-preview--large .expand-icon { width: 56px; height: 56px; }
.nlm-module .video-preview--inline { width: 80px; height: 45px; border-radius: var(--radius-sm); }
.nlm-module .video-preview--inline .expand-icon { display: none; }
.nlm-module .helper-video-btn { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-default); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s ease; color: var(--text-secondary); font-size: 0.9rem; }
.nlm-module .helper-video-btn:hover { background: rgba(34, 197, 94, 0.1); border-color: var(--green-400); color: var(--green-400); }
.nlm-module .video-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 48px; }
.nlm-module .video-modal.active { display: flex; animation: nlm-fadeIn 0.3s var(--ease-out); }
@keyframes nlm-fadeIn { from { opacity: 0; } to { opacity: 1; } }
.nlm-module .video-modal-content { position: relative; width: 80vw; max-height: 80vh; animation: nlm-scaleIn 0.3s var(--ease-spring); }
@keyframes nlm-scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.nlm-module .video-modal video { width: 100%; max-height: 80vh; border-radius: var(--radius-lg); box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.nlm-module .video-modal-close { position: absolute; top: 12px; right: 12px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; backdrop-filter: blur(4px); }
.nlm-module .video-modal-close:hover { background: rgba(239, 68, 68, 0.6); border-color: var(--error); color: #fff; }

/* ------------------------------------------------------------
   18. Unstuck Panel
   ------------------------------------------------------------ */
.nlm-module .unstuck-panel { background: var(--warning-muted); border: 1px solid rgba(250, 204, 21, 0.3); border-radius: var(--radius-xl); padding: 24px; margin-top: 32px; display: none; }
.nlm-module .unstuck-panel.visible { display: block; animation: nlm-slideIn 0.3s var(--ease-out); }
.nlm-module .unstuck-panel h3 { color: var(--warning); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.nlm-module .code-block { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 16px; font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-secondary); white-space: pre-wrap; margin: 12px 0; }

/* ------------------------------------------------------------
   20. Build Section Stack, Inspiration Cards, Featured Card
   ------------------------------------------------------------ */
.nlm-module .build-section-stack { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 32px; }

/* Featured Card */
@property --featured-gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes nlm-featured-border-spin {
    to { --featured-gradient-angle: 360deg; }
}

.nlm-module .featured-card { position: relative; }
.nlm-module .featured-card-inner { background: linear-gradient(#0a0f14, #0a0f14) padding-box, conic-gradient(from var(--featured-gradient-angle), transparent 0%, var(--green-500) 10%, var(--green-400) 20%, var(--purple-400) 30%, var(--green-500) 40%, transparent 50%) border-box; border: 2px solid transparent; border-radius: var(--radius-xl); padding: 36px; position: relative; overflow: hidden; animation: nlm-featured-border-spin 4s linear infinite; }
.nlm-module .featured-card-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.08), transparent 50%); pointer-events: none; }
.nlm-module .featured-card-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); border-radius: 9999px; font-size: 0.875rem; color: var(--green-400); margin-bottom: 20px; font-weight: 500; }
.nlm-module .featured-card-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.nlm-module .featured-card-desc { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; max-width: 600px; }
.nlm-module .featured-card-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.nlm-module .featured-card-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--text-muted); }

/* Inspiration Cards */
.nlm-module .inspiration-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 28px; transition: all 0.3s var(--ease-out); cursor: pointer; position: relative; overflow: hidden; }
.nlm-module .inspiration-card:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nlm-module .inspiration-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green-500), var(--purple-400)); opacity: 0; transition: opacity 0.3s ease; }
.nlm-module .inspiration-card:hover::before { opacity: 1; }
.nlm-module .inspiration-card-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.nlm-module .inspiration-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.nlm-module .inspiration-card-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.nlm-module .inspiration-card-tag { display: inline-block; padding: 4px 10px; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); border-radius: 9999px; font-size: 0.8rem; color: var(--green-400); }

/* ------------------------------------------------------------
   19. NLM Flow (Slide 2)
   ------------------------------------------------------------ */
.nlm-module .nlm-flow-container { width: 100%; max-width: none; margin: 16px 0 8px 0; padding: 20px 24px; }
.nlm-module .nlm-flow { display: flex; flex-direction: row; gap: 16px; justify-content: center; align-items: stretch; }
.nlm-module .nlm-flow-step { flex: 1; max-width: 280px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 14px; background: rgba(0, 0, 0, 0.4); border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.06); transition: all 0.4s var(--ease-out); position: relative; opacity: 0; transform: translateY(30px); }
.nlm-module .nlm-flow-step:hover { background: rgba(0, 0, 0, 0.6); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); }
.nlm-module .slide.active .nlm-flow-step:nth-child(1) { animation: nlm-flowStepIn 0.6s var(--ease-out) 0.2s forwards; }
.nlm-module .slide.active .nlm-flow-step:nth-child(2) { animation: nlm-flowStepIn 0.6s var(--ease-out) 0.45s forwards; }
.nlm-module .slide.active .nlm-flow-step:nth-child(3) { animation: nlm-flowStepIn 0.6s var(--ease-out) 0.7s forwards; }
.nlm-module .slide.active .nlm-flow-step:nth-child(4) { animation: nlm-flowStepIn 0.6s var(--ease-out) 0.95s forwards; }
@keyframes nlm-flowStepIn { to { opacity: 1; transform: translateY(0); } }

.nlm-module .nlm-flow-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid; margin-bottom: 12px; position: relative; z-index: 2; transition: all 0.3s ease; }
.nlm-module .nlm-flow-icon i { width: 28px !important; height: 28px !important; }
.nlm-module .nlm-flow-icon:hover { transform: scale(1.1); }

/* Icon pulse animations */
.nlm-module .slide.active .nlm-flow-step:nth-child(1) .nlm-flow-icon { animation: nlm-iconPulseGreen 3s ease-in-out infinite 0.8s; }
.nlm-module .slide.active .nlm-flow-step:nth-child(2) .nlm-flow-icon { animation: nlm-iconPulsePurple 3s ease-in-out infinite 1.1s; }
.nlm-module .slide.active .nlm-flow-step:nth-child(3) .nlm-flow-icon { animation: nlm-iconPulseBlue 3s ease-in-out infinite 1.4s; }
.nlm-module .slide.active .nlm-flow-step:nth-child(4) .nlm-flow-icon { animation: nlm-iconPulseAmber 3s ease-in-out infinite 1.7s; }
@keyframes nlm-iconPulseGreen { 0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); } 50% { box-shadow: 0 0 50px rgba(34, 197, 94, 0.6), 0 0 80px rgba(34, 197, 94, 0.3); } }
@keyframes nlm-iconPulsePurple { 0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); } 50% { box-shadow: 0 0 50px rgba(168, 85, 247, 0.6), 0 0 80px rgba(168, 85, 247, 0.3); } }
@keyframes nlm-iconPulseBlue { 0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); } 50% { box-shadow: 0 0 50px rgba(59, 130, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.3); } }
@keyframes nlm-iconPulseAmber { 0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.3); } 50% { box-shadow: 0 0 50px rgba(251, 191, 36, 0.6), 0 0 80px rgba(251, 191, 36, 0.3); } }

/* Arrows between steps */
.nlm-module .nlm-flow-arrow { position: absolute; right: -22px; top: 42px; z-index: 10; opacity: 0; }
.nlm-module .slide.active .nlm-flow-step:nth-child(1) .nlm-flow-arrow { animation: nlm-arrowFadeIn 0.4s ease-out 0.9s forwards, nlm-arrowBounce 2s ease-in-out 1.3s infinite; }
.nlm-module .slide.active .nlm-flow-step:nth-child(2) .nlm-flow-arrow { animation: nlm-arrowFadeIn 0.4s ease-out 1.15s forwards, nlm-arrowBounce 2s ease-in-out 1.55s infinite; }
.nlm-module .slide.active .nlm-flow-step:nth-child(3) .nlm-flow-arrow { animation: nlm-arrowFadeIn 0.4s ease-out 1.4s forwards, nlm-arrowBounce 2s ease-in-out 1.8s infinite; }
@keyframes nlm-arrowFadeIn { to { opacity: 1; } }
@keyframes nlm-arrowBounce { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.nlm-module .nlm-flow-arrow i { color: var(--green-400); filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3)); width: 20px !important; height: 20px !important; }

.nlm-module .nlm-flow-content { flex: 1; display: flex; flex-direction: column; }
.nlm-module .nlm-flow-label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; text-shadow: 0 0 20px currentColor; }
.nlm-module .nlm-flow-label i { width: 16px !important; height: 16px !important; }
.nlm-module .nlm-flow-desc { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 12px; line-height: 1.4; opacity: 0.7; }

/* Flow mockup areas */
.nlm-module .nlm-flow-mockup { margin-top: auto; padding: 10px 12px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(34, 197, 94, 0.2); border-radius: 8px; min-height: 70px; text-align: left; }
.nlm-module .nlm-flow-mockup-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.75rem; color: var(--text-secondary); }
.nlm-module .nlm-flow-mockup-item i { width: 14px !important; height: 14px !important; flex-shrink: 0; }
.nlm-module .nlm-flow-mockup-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 500; }

/* Chat mockup for Ask step */
.nlm-module .nlm-chat-thread { display: flex; flex-direction: column; gap: 6px; }
.nlm-module .nlm-chat-bubble { padding: 6px 10px; border-radius: 8px; font-size: 0.75rem; line-height: 1.3; max-width: 90%; }
.nlm-module .nlm-chat-bubble--user { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.25); align-self: flex-end; color: var(--text-primary); }
.nlm-module .nlm-chat-bubble--ai { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.25); align-self: flex-start; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 6px; }
.nlm-module .nlm-chat-citation { font-size: 0.6rem; color: var(--green-400); font-style: italic; margin-top: 4px; }

/* Audio waveform mockup */
.nlm-module .nlm-waveform { display: flex; align-items: center; gap: 3px; height: 30px; padding: 4px 0; }
.nlm-module .nlm-waveform-bar { width: 4px; border-radius: 2px; background: var(--amber-400); opacity: 0.6; }
.nlm-module .slide.active .nlm-waveform-bar { animation: nlm-waveformPulse 1.5s ease-in-out infinite; }
.nlm-module .nlm-waveform-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.nlm-module .nlm-waveform-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.nlm-module .nlm-waveform-bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.nlm-module .nlm-waveform-bar:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.nlm-module .nlm-waveform-bar:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.nlm-module .nlm-waveform-bar:nth-child(6) { height: 80%; animation-delay: 0.15s; }
.nlm-module .nlm-waveform-bar:nth-child(7) { height: 45%; animation-delay: 0.25s; }
.nlm-module .nlm-waveform-bar:nth-child(8) { height: 65%; animation-delay: 0.35s; }
@keyframes nlm-waveformPulse { 0%, 100% { transform: scaleY(1); opacity: 0.6; } 50% { transform: scaleY(1.5); opacity: 1; } }

.nlm-module .nlm-flow-example { margin-top: auto; padding: 10px 12px; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.25); border-radius: 8px; font-size: 0.85rem; color: var(--text-primary); font-style: italic; line-height: 1.4; text-align: left; width: 100%; }
.nlm-module .nlm-flow-step:nth-child(2) .nlm-flow-example { background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.25); }
.nlm-module .nlm-flow-step:nth-child(3) .nlm-flow-example { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.25); }
.nlm-module .nlm-flow-step:nth-child(4) .nlm-flow-example { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.25); }

/* Compact slide 2 typography */
.nlm-module #nlm-slide-2 .text-label { margin-bottom: 8px; }
.nlm-module #nlm-slide-2 .text-section { margin-bottom: 12px; }
.nlm-module #nlm-slide-2 .text-body-lg { margin-bottom: 16px; font-size: 1.15rem; }

/* Tool comparison grid (Slide 2) */
.nlm-module .nlm-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.nlm-module .nlm-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.nlm-module .nlm-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
}
/* Stagger cards when parent [data-animate] becomes visible (timeline scroll) */
.nlm-module .nlm-tool-grid.visible .nlm-tool-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.nlm-module .nlm-tool-grid.visible .nlm-tool-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.nlm-module .nlm-tool-grid.visible .nlm-tool-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
/* Also support slide.active context (if used outside timeline) */
.nlm-module .slide.active .nlm-tool-card:nth-child(1) { animation: nlm-flowStepIn 0.5s var(--ease-out) 0.15s forwards; }
.nlm-module .slide.active .nlm-tool-card:nth-child(2) { animation: nlm-flowStepIn 0.5s var(--ease-out) 0.3s forwards; }
.nlm-module .slide.active .nlm-tool-card:nth-child(3) { animation: nlm-flowStepIn 0.5s var(--ease-out) 0.45s forwards; }

.nlm-module .nlm-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.nlm-module .nlm-tool-card[data-tool="gemini"]:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1); }
.nlm-module .nlm-tool-card[data-tool="gem"]:hover { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 8px 24px rgba(168, 85, 247, 0.1); }
.nlm-module .nlm-tool-card[data-tool="notebooklm"]:hover { border-color: rgba(34, 197, 94, 0.5); box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15); }

/* NotebookLM card highlight treatment */
.nlm-module .nlm-tool-card--highlight {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.04);
}
.nlm-module .nlm-tool-card--highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.08), transparent 60%);
    pointer-events: none;
}

.nlm-module .nlm-tool-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nlm-module .nlm-tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nlm-module .nlm-tool-traits {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
}
.nlm-module .nlm-tool-traits li {
    padding: 3px 0;
    padding-left: 20px;
    position: relative;
}
.nlm-module .nlm-tool-traits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}
.nlm-module .nlm-tool-card[data-tool="gemini"] .nlm-tool-traits li::before { background: var(--blue-400); opacity: 0.6; }
.nlm-module .nlm-tool-card[data-tool="gem"] .nlm-tool-traits li::before { background: var(--purple-400); opacity: 0.6; }
.nlm-module .nlm-tool-card[data-tool="notebooklm"] .nlm-tool-traits li::before { background: var(--green-400); opacity: 0.6; }

.nlm-module .nlm-tool-best {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
}
.nlm-module .nlm-tool-best strong {
    color: var(--text-secondary);
}

/* ---- Hero Flow Diagram (Upload → Analyze → Ask → Listen) ---- */
@property --nlm-hero-flow-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@keyframes nlm-heroFlowSpin { to { --nlm-hero-flow-angle: 360deg; } }

.nlm-module .nlm-hero-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 32px 24px;
}
.nlm-module .nlm-hero-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 180px;
}
.nlm-module .nlm-hero-flow-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    border: 3px solid transparent;
    animation: nlm-heroFlowSpin 6s linear infinite;
}
.nlm-module .nlm-hero-flow-icon--green {
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                conic-gradient(from var(--nlm-hero-flow-angle), var(--green-400), var(--green-300), var(--green-400)) border-box;
    color: var(--green-400);
    box-shadow: 0 0 30px var(--green-glow), 0 0 60px rgba(34, 197, 94, 0.15);
}
.nlm-module .nlm-hero-flow-icon--purple {
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                conic-gradient(from var(--nlm-hero-flow-angle), var(--purple-400), var(--purple-500), var(--purple-400)) border-box;
    color: var(--purple-400);
    box-shadow: 0 0 30px var(--purple-glow), 0 0 60px rgba(168, 85, 247, 0.15);
    animation-delay: -1.5s;
}
.nlm-module .nlm-hero-flow-icon--blue {
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                conic-gradient(from var(--nlm-hero-flow-angle), var(--blue-400), var(--blue-500), var(--blue-400)) border-box;
    color: var(--blue-400);
    box-shadow: 0 0 30px var(--blue-glow), 0 0 60px rgba(59, 130, 246, 0.15);
    animation-delay: -3s;
}
.nlm-module .nlm-hero-flow-icon--amber {
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                conic-gradient(from var(--nlm-hero-flow-angle), var(--amber-400), var(--amber-300), var(--amber-400)) border-box;
    color: var(--amber-400);
    box-shadow: 0 0 30px var(--amber-glow), 0 0 60px rgba(251, 191, 36, 0.15);
    animation-delay: -4.5s;
}
.nlm-module .nlm-hero-flow-label {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.nlm-module .nlm-hero-flow-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.nlm-module .nlm-hero-flow-arrow {
    color: var(--text-muted);
    opacity: 0.5;
    flex-shrink: 0;
    margin-top: 26px;
}

/* ---- Compare section title bump ---- */
.nlm-module .nlm-compare-title {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
}
.nlm-module .nlm-compare-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    max-width: 750px;
    margin: 0 0 32px;
}

/* ---- Larger Tool Grid variant ---- */
.nlm-module .nlm-tool-grid--lg {
    gap: 24px;
    margin-bottom: 32px;
}
.nlm-module .nlm-tool-grid--lg .nlm-tool-card {
    padding: 28px 24px 24px;
}
.nlm-module .nlm-tool-grid--lg .nlm-tool-name {
    font-size: 1.3rem;
    margin-bottom: 18px;
    gap: 12px;
}
.nlm-module .nlm-tool-grid--lg .nlm-tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}
.nlm-module .nlm-tool-grid--lg .nlm-tool-traits {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}
.nlm-module .nlm-tool-grid--lg .nlm-tool-best {
    font-size: 0.9rem;
    padding-top: 14px;
}

/* ---- Shiny spinning border for NotebookLM card (::before mask overlay) ---- */
@property --nlm-tool-shiny-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@keyframes nlm-toolShinySpin { to { --nlm-tool-shiny-angle: 360deg; } }

.nlm-module .nlm-tool-card--shiny {
    background: rgba(34, 197, 94, 0.04);
    border-color: transparent;
    overflow: hidden;
}
.nlm-module .nlm-tool-card--shiny::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--nlm-tool-shiny-angle),
        transparent 0%,
        var(--green-500) 10%,
        var(--green-400) 20%,
        var(--green-300) 30%,
        var(--green-500) 40%,
        transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: nlm-toolShinySpin 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.nlm-module .nlm-tool-card--shiny::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.nlm-module .nlm-tool-card--shiny:hover {
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2);
}

/* Scenario rows */
.nlm-module .nlm-scenarios {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nlm-module .nlm-scenario {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
    opacity: 0;
    transform: translateY(15px);
}
/* Stagger scenarios when parent [data-animate] becomes visible (timeline scroll) */
.nlm-module .nlm-scenarios.visible .nlm-scenario:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.nlm-module .nlm-scenarios.visible .nlm-scenario:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.nlm-module .nlm-scenarios.visible .nlm-scenario:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.nlm-module .nlm-scenarios.visible .nlm-scenario:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
/* Also support slide.active context */
.nlm-module .slide.active .nlm-scenario:nth-child(1) { animation: nlm-flowStepIn 0.5s var(--ease-out) 0.55s forwards; }
.nlm-module .slide.active .nlm-scenario:nth-child(2) { animation: nlm-flowStepIn 0.5s var(--ease-out) 0.65s forwards; }
.nlm-module .slide.active .nlm-scenario:nth-child(3) { animation: nlm-flowStepIn 0.5s var(--ease-out) 0.75s forwards; }
.nlm-module .slide.active .nlm-scenario:nth-child(4) { animation: nlm-flowStepIn 0.5s var(--ease-out) 0.85s forwards; }

.nlm-module .nlm-scenario:hover { background: rgba(255, 255, 255, 0.04); }

.nlm-module .nlm-scenario-role {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}
.nlm-module .nlm-scenario-role--admin { background: rgba(251, 191, 36, 0.12); color: var(--amber-400); }
.nlm-module .nlm-scenario-role--teacher { background: rgba(59, 130, 246, 0.12); color: var(--blue-400); }
.nlm-module .nlm-scenario-role--support { background: rgba(168, 85, 247, 0.12); color: var(--purple-400); }
.nlm-module .nlm-scenario-role--student { background: rgba(34, 197, 94, 0.12); color: var(--green-400); }

.nlm-module .nlm-scenario-need {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

.nlm-module .nlm-scenario-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0.5;
}

.nlm-module .nlm-scenario-tool {
    font-weight: 600;
    flex-shrink: 0;
    min-width: 100px;
    text-align: right;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------
   20. Video Showcase (Slide 3)
   ------------------------------------------------------------ */
.nlm-module .nlm-showcase { display: flex; flex-direction: column; gap: 72px; margin: 32px auto 0; max-width: 1100px; width: 100%; }
.nlm-module .nlm-showcase-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; position: relative; opacity: 0; transform: translateY(30px); }
.nlm-module .slide.active .nlm-showcase-row:nth-child(1) { animation: nlm-showcaseRowIn 0.7s var(--ease-out) 0.15s forwards; }
.nlm-module .slide.active .nlm-showcase-row:nth-child(2) { animation: nlm-showcaseRowIn 0.7s var(--ease-out) 0.35s forwards; }
.nlm-module .slide.active .nlm-showcase-row:nth-child(3) { animation: nlm-showcaseRowIn 0.7s var(--ease-out) 0.55s forwards; }
.nlm-module .slide.active .nlm-showcase-row:nth-child(4) { animation: nlm-showcaseRowIn 0.7s var(--ease-out) 0.75s forwards; }
@keyframes nlm-showcaseRowIn { to { opacity: 1; transform: translateY(0); } }

/* Text column */
.nlm-module .nlm-showcase-text { display: flex; flex-direction: column; gap: 12px; }
.nlm-module .nlm-showcase-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid; margin-bottom: 4px; transition: all 0.3s ease; }
.nlm-module .nlm-showcase-icon i { width: 24px !important; height: 24px !important; }
.nlm-module .nlm-showcase-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.nlm-module .nlm-showcase-desc { font-size: 1.1rem; line-height: 1.6; color: var(--text-secondary); max-width: 420px; }

/* Media column */
.nlm-module .nlm-showcase-media { position: relative; border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--border-default); background: rgba(0, 0, 0, 0.3); aspect-ratio: 16 / 9; cursor: pointer; transition: all 0.4s var(--ease-out); }
.nlm-module .nlm-showcase-media:hover { transform: scale(1.015); }
.nlm-module .nlm-showcase-media video, .nlm-module .nlm-showcase-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Expand overlay */
.nlm-module .nlm-showcase-expand { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.nlm-module .nlm-showcase-media:hover .nlm-showcase-expand { opacity: 1; }
.nlm-module .nlm-showcase-expand i { color: #ffffff; width: 24px !important; height: 24px !important; }

/* Per-row accent glow on hover */
.nlm-module .nlm-showcase-row[data-color="green"] .nlm-showcase-media:hover { border-color: rgba(34, 197, 94, 0.5); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(34, 197, 94, 0.15); }
.nlm-module .nlm-showcase-row[data-color="purple"] .nlm-showcase-media:hover { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(168, 85, 247, 0.15); }
.nlm-module .nlm-showcase-row[data-color="blue"] .nlm-showcase-media:hover { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.15); }
.nlm-module .nlm-showcase-row[data-color="amber"] .nlm-showcase-media:hover { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(251, 191, 36, 0.15); }

/* Static image row (no video) */
.nlm-module .nlm-showcase-media--static { cursor: default; }
.nlm-module .nlm-showcase-media--static:hover { transform: none; }
.nlm-module .nlm-showcase-media--static .nlm-showcase-expand { display: none; }

/* Separator between rows */
.nlm-module .nlm-showcase-row:not(:last-child)::after { content: ''; position: absolute; bottom: -36px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-subtle), transparent); }

/* ------------------------------------------------------------
   21. Utility Classes
   ------------------------------------------------------------ */
.nlm-module .mb-sm { margin-bottom: 12px; }
.nlm-module .mb-md { margin-bottom: 20px; }
.nlm-module .mb-lg { margin-bottom: 32px; }
.nlm-module .mb-xl { margin-bottom: 48px; }
.nlm-module .mt-lg { margin-top: 32px; }
.nlm-module .mt-xl { margin-top: 48px; }
.nlm-module .text-center { text-align: center; }
.nlm-module .max-w-sm { max-width: 600px; }
.nlm-module .max-w-md { max-width: 800px; }
.nlm-module .max-w-lg { max-width: 1000px; }

/* ------------------------------------------------------------
   22. Empty State, Refresh Button, Spinner
   ------------------------------------------------------------ */
.nlm-module .empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.nlm-module .empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.3; }
.nlm-module .refresh-btn { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--green-400); padding: 10px 18px; border-radius: var(--radius-md); cursor: pointer; font-size: 0.9375rem; font-family: var(--font-body); transition: all 0.3s var(--ease-out); display: inline-flex; align-items: center; gap: 8px; }
.nlm-module .refresh-btn:hover { background: rgba(34, 197, 94, 0.2); }
.nlm-module .spinner { width: 20px; height: 20px; border: 2px solid rgba(34, 197, 94, 0.2); border-top-color: var(--green-400); border-radius: 50%; animation: nlm-spin 0.8s linear infinite; display: inline-block; }
@keyframes nlm-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------
   25. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .nlm-module .slide { max-width: 92vw; padding: 80px 30px 80px; }
    .nlm-module .card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
    .nlm-module .nlm-flow { flex-direction: column; align-items: center; gap: 24px; }
    .nlm-module .nlm-flow-step { max-width: 100%; width: 100%; }
    .nlm-module .nlm-flow-arrow { display: none; }
    .nlm-module .nlm-tool-grid { grid-template-columns: 1fr; gap: 12px; }
    .nlm-module .nlm-hero-flow { flex-direction: column; gap: 24px; }
    .nlm-module .nlm-hero-flow-arrow { transform: rotate(90deg); }
    .nlm-module .nlm-hero-flow-step { max-width: 100%; }
    .nlm-module .nlm-scenario { flex-wrap: wrap; gap: 8px; }
    .nlm-module .nlm-scenario-role { min-width: auto; }
    .nlm-module .nlm-scenario-arrow { display: none; }
    .nlm-module .nlm-scenario-tool { text-align: left; min-width: auto; }
    .nlm-module .nlm-showcase-row { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .nlm-module .nlm-showcase-text { align-items: center; }
    .nlm-module .nlm-showcase-desc { max-width: 600px; margin: 0 auto; }
    .nlm-module .nlm-showcase { gap: 56px; }
}
@media (max-width: 768px) {
    .nlm-module .header { padding: 16px 20px; }
    .nlm-module .logo-subtitle { display: none; }
    .nlm-module .slide { padding: 70px 20px 80px; max-width: 95vw; }
    .nlm-module .controls { bottom: 20px; padding: 10px 16px; gap: 12px; }
    .nlm-module .controls-dots { display: none; }
    .nlm-module .text-display { font-size: clamp(2rem, 6vw, 3rem); }
    .nlm-module .text-section { font-size: clamp(1.5rem, 4vw, 2rem); }
    .nlm-module .glass-card { padding: 24px; }
    .nlm-module .nlm-showcase { gap: 48px; }
    .nlm-module .nlm-showcase-title { font-size: 1.25rem; }
    .nlm-module .nlm-showcase-desc { font-size: 1rem; }
    .nlm-module .nlm-tour-info-card.visible { flex-direction: column; gap: 12px; }
}

/* ------------------------------------------------------------
   23. Interface Tour Hover Popups (Slide 4)
   ------------------------------------------------------------ */

/* Custom property for per-panel gradient angle */
@property --nlm-tour-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes nlm-tour-border-spin {
    to { --nlm-tour-angle: 360deg; }
}

/* Panel hover zones */
.nlm-module .nlm-tour-panel {
    transition: opacity 0.3s var(--ease-out), background 0.3s var(--ease-out);
    cursor: pointer;
    position: relative;
}

.nlm-module .nlm-tour-panel--dimmed {
    opacity: 0.35;
}

/* Shiny spinning border overlay via ::before pseudo-element */
.nlm-module .nlm-tour-panel--active::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: var(--radius-lg);
    padding: 2px;
    pointer-events: none;
    z-index: 10;
    animation: nlm-tour-border-spin 3s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Prevent flicker on dividers between panels */
.nlm-module .nlm-tour-mockup > div:not(.nlm-tour-panel) {
    pointer-events: none;
}

/* Sources — green spinning border */
.nlm-module .nlm-tour-panel--active[data-panel="sources"]::before {
    background: conic-gradient(from var(--nlm-tour-angle), transparent 0%, var(--green-500) 10%, var(--green-400) 20%, var(--green-300) 30%, var(--green-500) 40%, transparent 50%);
}
.nlm-module .nlm-tour-panel--active[data-panel="sources"] {
    background: rgba(34, 197, 94, 0.04);
}

/* Chat — blue spinning border */
.nlm-module .nlm-tour-panel--active[data-panel="chat"]::before {
    background: conic-gradient(from var(--nlm-tour-angle), transparent 0%, var(--blue-500) 10%, var(--blue-400) 20%, #93c5fd 30%, var(--blue-500) 40%, transparent 50%);
}
.nlm-module .nlm-tour-panel--active[data-panel="chat"] {
    background: rgba(59, 130, 246, 0.04);
}

/* Studio — purple spinning border */
.nlm-module .nlm-tour-panel--active[data-panel="studio"]::before {
    background: conic-gradient(from var(--nlm-tour-angle), transparent 0%, var(--purple-500) 10%, var(--purple-400) 20%, #d8b4fe 30%, var(--purple-500) 40%, transparent 50%);
}
.nlm-module .nlm-tour-panel--active[data-panel="studio"] {
    background: rgba(168, 85, 247, 0.04);
}

/* Info area above mockup */
.nlm-module .nlm-tour-info {
    padding: 20px 28px;
    min-height: 72px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

/* Hint text (default state) */
.nlm-module .nlm-tour-info-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: nlm-hintPulse 2.5s ease-in-out infinite;
}

@keyframes nlm-hintPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.nlm-module .nlm-tour-info-hint.hidden { display: none; }

/* Info card (shown on hover) */
.nlm-module .nlm-tour-info-card {
    display: none;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
}

.nlm-module .nlm-tour-info-card.visible {
    display: flex;
    animation: nlm-tourCardIn 0.3s var(--ease-out) forwards;
}

@keyframes nlm-tourCardIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Icon bubble */
.nlm-module .nlm-tour-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid;
}

.nlm-module .nlm-tour-info-card[data-active-panel="sources"] .nlm-tour-info-icon {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--green-400);
    color: var(--green-400);
}

.nlm-module .nlm-tour-info-card[data-active-panel="chat"] .nlm-tour-info-icon {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--blue-400);
    color: var(--blue-400);
}

.nlm-module .nlm-tour-info-card[data-active-panel="studio"] .nlm-tour-info-icon {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--purple-400);
    color: var(--purple-400);
}

/* Text content */
.nlm-module .nlm-tour-info-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.nlm-module .nlm-tour-info-desc {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.nlm-module .nlm-tour-info-analogy {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Light mode overrides */
.nlm-module[data-theme="light"] .nlm-tour-panel--active[data-panel="sources"] {
    background: rgba(34, 197, 94, 0.06);
}
.nlm-module[data-theme="light"] .nlm-tour-panel--active[data-panel="chat"] {
    background: rgba(59, 130, 246, 0.06);
}
.nlm-module[data-theme="light"] .nlm-tour-panel--active[data-panel="studio"] {
    background: rgba(168, 85, 247, 0.06);
}

/* ------------------------------------------------------------
   24. Scrolling Timeline (Slide 3 — See It In Action)
   Reuses tl-* class pattern from vibe-timeline.html
   ------------------------------------------------------------ */

/* Timeline Line (left side) */
.nlm-module .timeline-line { position: fixed; left: 40px; top: 72px; bottom: 0; width: 2px; background: rgba(255,255,255,0.06); z-index: 5; pointer-events: none; }
.nlm-module .timeline-line-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(180deg, var(--green-400), var(--purple-400), var(--blue-400), var(--amber-400)); box-shadow: 0 0 8px var(--green-glow); }

/* Nav Dots (right side) */
.nlm-module .year-nav { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 100; display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.nlm-module .year-nav-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.18); cursor: pointer; transition: all 0.3s var(--ease-out); position: relative; text-decoration: none; }
.nlm-module .year-nav-dot.active { background: var(--dot-color, var(--green-400)); border-color: var(--dot-color, var(--green-400)); box-shadow: 0 0 12px var(--dot-glow, var(--green-glow)); transform: scale(1.4); }
.nlm-module .year-nav-dot:hover { background: rgba(255,255,255,0.25); transform: scale(1.2); }
.nlm-module .year-nav-dot.active:hover { transform: scale(1.4); }
.nlm-module .year-nav-label { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; font-weight: 600; font-family: var(--font-mono); color: var(--text-muted); white-space: nowrap; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.nlm-module .year-nav-dot:hover .year-nav-label, .nlm-module .year-nav-dot.active .year-nav-label { opacity: 1; }

/* Override default slide padding/max-width for the timeline slide */
.nlm-module #nlm-slide-3 { padding: 0; max-width: 100%; }

/* Main Content */
.nlm-module .tl-main { position: relative; z-index: 1; }
.nlm-module .tl-section { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 48px 60px 40px 90px; }
.nlm-module .tl-section--hero { text-align: center; padding-left: 40px; padding-right: 40px; }
.nlm-module .tl-section--hero .tl-section-inner { display: flex; flex-direction: column; align-items: center; }
.nlm-module .tl-section-inner { max-width: 920px; width: 100%; }

/* Section Dividers */
.nlm-module .section-divider { display: flex; flex-direction: column; align-items: center; padding: 20px 0; position: relative; z-index: 1; }
.nlm-module .section-divider-line { width: 2px; height: 80px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.nlm-module .section-divider-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, transparent, var(--divider-color, var(--green-400)), transparent); opacity: 0; }
.nlm-module .section-divider.visible .section-divider-line::after { animation: nlm-dividerPulse 1.5s ease-out forwards; }
.nlm-module .section-divider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); margin: 8px 0; opacity: 0; transform: scale(0); }
.nlm-module .section-divider.visible .section-divider-dot { animation: nlm-dotPop 0.4s var(--ease-spring) 0.6s forwards; }
.nlm-module .section-divider-year-label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); opacity: 0; transform: translateY(8px); }
.nlm-module .section-divider.visible .section-divider-year-label { animation: nlm-fadeSlideUp 0.5s var(--ease-out) 0.8s forwards; }

@keyframes nlm-dividerPulse { 0% { top: -100%; opacity: 0; } 30% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes nlm-dotPop { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes nlm-fadeSlideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Year Markers (icon circles) */
.nlm-module .tl-year-marker { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.nlm-module .tl-year-marker--green { background: rgba(34,197,94,0.12); border: 2px solid var(--green-400); color: var(--green-400); box-shadow: 0 0 24px var(--green-glow); }
.nlm-module .tl-year-marker--purple { background: rgba(168,85,247,0.12); border: 2px solid var(--purple-400); color: var(--purple-400); box-shadow: 0 0 24px var(--purple-glow); }
.nlm-module .tl-year-marker--blue { background: rgba(59,130,246,0.12); border: 2px solid var(--blue-400); color: var(--blue-400); box-shadow: 0 0 24px var(--blue-glow); }
.nlm-module .tl-year-marker--amber { background: rgba(251,191,36,0.12); border: 2px solid var(--amber-400); color: var(--amber-400); box-shadow: 0 0 24px var(--amber-glow); }

/* Year Titles (gradient text) */
.nlm-module .tl-year-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1.15; margin-bottom: 8px; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nlm-module .tl-year-title--green { background-image: linear-gradient(135deg, var(--green-300), var(--green-500)); }
.nlm-module .tl-year-title--purple { background-image: linear-gradient(135deg, var(--purple-400), var(--purple-500)); }
.nlm-module .tl-year-title--blue { background-image: linear-gradient(135deg, var(--blue-400), var(--blue-500)); }
.nlm-module .tl-year-title--amber { background-image: linear-gradient(135deg, var(--amber-300), var(--amber-500)); }
.nlm-module .tl-era-subtitle { font-family: var(--font-body); font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.7; max-width: 700px; }

/* Scroll Animations */
.nlm-module #nlm-slide-3 [data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.nlm-module #nlm-slide-3 [data-animate].visible { opacity: 1; transform: translateY(0); }
.nlm-module #nlm-slide-3 [data-animate="spring"] { opacity: 0; transform: scale(0.3); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-spring); }
.nlm-module #nlm-slide-3 [data-animate="spring"].visible { opacity: 1; transform: scale(1); }
.nlm-module #nlm-slide-3 [data-animate="fade-up"] { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.nlm-module #nlm-slide-3 [data-animate="fade-up"].visible { opacity: 1; transform: translateY(0); }
.nlm-module #nlm-slide-3 [data-animate="scale"] { opacity: 0; transform: scale(0.92); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.nlm-module #nlm-slide-3 [data-animate="scale"].visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.nlm-module .tl-section-inner > [data-animate]:nth-child(1) { transition-delay: 0ms; }
.nlm-module .tl-section-inner > [data-animate]:nth-child(2) { transition-delay: 150ms; }
.nlm-module .tl-section-inner > [data-animate]:nth-child(3) { transition-delay: 280ms; }
.nlm-module .tl-section-inner > [data-animate]:nth-child(4) { transition-delay: 400ms; }

/* Scroll Cue */
.nlm-module .scroll-cue { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; animation: nlm-bounceDown 2s ease-in-out infinite; }
@keyframes nlm-bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Media Containers */
.nlm-module .nlm-tl-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-accent); cursor: pointer; margin-top: 8px; max-width: 720px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.nlm-module .nlm-tl-media:hover { border-color: rgba(255,255,255,0.25); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.nlm-module .nlm-tl-media video, .nlm-module .nlm-tl-media img { width: 100%; display: block; }
.nlm-module .nlm-tl-media--static { cursor: default; }
.nlm-module .nlm-tl-media--static:hover { border-color: var(--border-accent); box-shadow: none; }

/* Tip Cards */
.nlm-module .tl-cards { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 768px) { .nlm-module .tl-cards { grid-template-columns: repeat(2, 1fr); } }
.nlm-module .tl-event { padding: 28px 32px; transition: all 0.3s var(--ease-out); }
.nlm-module .tl-event--green { border-color: rgba(34,197,94,0.15); }
.nlm-module .tl-event--green:hover { border-color: rgba(34,197,94,0.4); box-shadow: 0 8px 30px rgba(34,197,94,0.12); }
.nlm-module .tl-event--purple { border-color: rgba(168,85,247,0.15); }
.nlm-module .tl-event--purple:hover { border-color: rgba(168,85,247,0.4); box-shadow: 0 8px 30px rgba(168,85,247,0.12); }
.nlm-module .tl-event--blue { border-color: rgba(59,130,246,0.15); }
.nlm-module .tl-event--blue:hover { border-color: rgba(59,130,246,0.4); box-shadow: 0 8px 30px rgba(59,130,246,0.12); }
.nlm-module .tl-event--amber { border-color: rgba(251,191,36,0.15); }
.nlm-module .tl-event--amber:hover { border-color: rgba(251,191,36,0.4); box-shadow: 0 8px 30px rgba(251,191,36,0.12); }
.nlm-module .tl-event-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.nlm-module .tl-event-icon { width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nlm-module .tl-event-icon--green { background: rgba(34,197,94,0.15); color: var(--green-400); }
.nlm-module .tl-event-icon--purple { background: rgba(168,85,247,0.15); color: var(--purple-400); }
.nlm-module .tl-event-icon--blue { background: rgba(59,130,246,0.15); color: var(--blue-400); }
.nlm-module .tl-event-icon--amber { background: rgba(251,191,36,0.15); color: var(--amber-400); }
.nlm-module .tl-event-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text-primary); }
.nlm-module .tl-event-body { font-size: 1.0625rem; line-height: 1.7; color: var(--text-secondary); }
.nlm-module .tl-event-body strong { color: var(--text-primary); font-weight: 600; }

/* Stagger tip cards */
.nlm-module .tl-cards [data-animate]:nth-child(1) { transition-delay: 0ms; }
.nlm-module .tl-cards [data-animate]:nth-child(2) { transition-delay: 150ms; }

/* Light Mode Overrides */
.nlm-module[data-theme="light"] .tl-event { background: rgba(255,255,255,0.65); border-color: rgba(2,6,23,0.08); }
.nlm-module[data-theme="light"] .timeline-line { background: rgba(2,6,23,0.08); }
.nlm-module[data-theme="light"] .year-nav-dot { background: rgba(2,6,23,0.1); border-color: rgba(2,6,23,0.15); }
.nlm-module[data-theme="light"] .year-nav-label { color: var(--text-secondary); }
.nlm-module[data-theme="light"] .tl-era-subtitle { color: var(--text-secondary); }
.nlm-module[data-theme="light"] .tl-year-title { -webkit-text-fill-color: initial; background: none; }
.nlm-module[data-theme="light"] .tl-year-title--green { color: var(--green-600); }
.nlm-module[data-theme="light"] .tl-year-title--purple { color: var(--purple-500); }
.nlm-module[data-theme="light"] .tl-year-title--blue { color: var(--blue-500); }
.nlm-module[data-theme="light"] .tl-year-title--amber { color: var(--amber-500); }
.nlm-module[data-theme="light"] .section-divider-line { background: rgba(2,6,23,0.06); }
.nlm-module[data-theme="light"] .section-divider-dot { background: rgba(2,6,23,0.12); border-color: rgba(2,6,23,0.08); }
.nlm-module[data-theme="light"] .scroll-cue { color: var(--text-secondary); }

/* Responsive */
@media (max-width: 768px) {
    .nlm-module .tl-section { padding: 100px 20px 40px 20px; min-height: auto; }
    .nlm-module .tl-section--hero { min-height: 100vh; }
    .nlm-module .timeline-line { left: 16px; }
    .nlm-module .year-nav { display: none; }
    .nlm-module .tl-year-marker { width: 64px; height: 64px; }
    .nlm-module .section-divider-line { height: 50px; }
}
