/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0f;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a24;
    --border: #2a2a3a;
    --text: #e4e4ef;
    --text-dim: #8888a0;
    --accent: #6c5ce7;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --green: #00b894;
    --red: #fd7272;
    --orange: #fdcb6e;
    --blue: #74b9ff;
    --cyan: #81ecec;
    --pink: #fd79a8;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --section-pad: 60px;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== SECTION BASE ===== */
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-pad) 40px;
    position: relative;
}

.content {
    max-width: 1000px;
    width: 100%;
}

.section-wide .content {
    max-width: 1200px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
}

/* ===== NAV DOTS ===== */
#nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    position: relative;
}

.nav-dot:hover { background: var(--text-dim); transform: scale(1.3); }
.nav-dot.active { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transform: scale(1.3); }

.nav-dot .nav-tooltip {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.nav-dot:hover .nav-tooltip { opacity: 1; }

/* Section Counter */
#section-counter {
    position: fixed;
    left: 20px;
    bottom: 20px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    z-index: 1000;
}

/* ===== HERO (Section 1) ===== */
.hero-content { text-align: center; }

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dim-text { color: var(--text-dim); }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.hero-meta {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.hero-meta .dot { margin: 0 8px; }

.hero-hint {
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

kbd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.8rem;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ===== TIMELINE (Section 2) ===== */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--cyan), var(--green));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
}

.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.3s; }
.timeline-item:nth-child(5) { animation-delay: 0.4s; }
.timeline-item:nth-child(6) { animation-delay: 0.5s; }
.timeline-item:nth-child(7) { animation-delay: 0.6s; }

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    z-index: 1;
}

.timeline-item[data-era="ml"] .timeline-dot { background: var(--blue); }
.timeline-item[data-era="dl"] .timeline-dot { background: var(--green); }
.timeline-item[data-era="nlp"] .timeline-dot { background: var(--orange); }
.timeline-item[data-era="transformer"] .timeline-dot { background: var(--pink); }
.timeline-item[data-era="llm"] .timeline-dot { background: var(--cyan); }

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: var(--radius);
    transition: transform 0.2s, border-color 0.2s;
}

.timeline-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.timeline-year {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.timeline-card h3 {
    font-size: 1.1rem;
    margin: 4px 0 6px;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ===== SPLIT VIEW (Section 3) ===== */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.split-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.split-card.bad { border-color: rgba(253, 114, 114, 0.3); }
.split-card.good { border-color: rgba(0, 184, 148, 0.3); }

.split-card h3 { margin-bottom: 16px; font-size: 1.2rem; }

.feature-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.feature-pill {
    background: rgba(253, 114, 114, 0.1);
    border: 1px solid rgba(253, 114, 114, 0.3);
    padding: 4px 10px;
    border-radius: 16px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--red);
}

.feature-pill.dim { opacity: 0.5; border-style: dashed; }

.card-note {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 12px;
    line-height: 1.5;
}

.neural-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

/* ===== DEEP LEARNING (Section 4) ===== */
.dl-visual { display: flex; justify-content: center; margin-bottom: 32px; }

.dl-explanation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.dl-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--accent); }
.dl-card p { font-size: 0.85rem; color: var(--text-dim); }

/* ===== GRADIENT DESCENT (Section 5) ===== */
.gd-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gd-container canvas {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.gd-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.gd-controls label {
    font-family: var(--mono);
    font-size: 0.85rem;
}

.gd-info {
    display: flex;
    gap: 32px;
    font-family: var(--mono);
    font-size: 0.9rem;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover { border-color: var(--text-dim); background: var(--bg-card-hover); }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-primary:hover { background: #5a4bd4; }

.btn-accent {
    background: var(--green);
    border-color: var(--green);
    color: var(--bg);
    font-weight: 600;
}

.btn-accent:hover { background: #00a381; }

/* ===== BACKPROP (Section 6) ===== */
.backprop-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.backprop-visual canvas {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.backprop-steps {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.backprop-explain { text-align: center; }

.bp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px 24px;
    border-radius: var(--radius);
    display: inline-block;
    max-width: 600px;
}

.bp-card p { font-size: 0.9rem; color: var(--text-dim); }

/* ===== NLP PROBLEM (Section 7) ===== */
.nlp-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nlp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.nlp-card h3 { margin-bottom: 16px; }

.highlight { color: var(--accent); font-weight: 700; }

.nlp-meanings { display: flex; flex-direction: column; gap: 10px; }

.meaning {
    padding: 10px;
    border-radius: 8px;
    background: rgba(108, 92, 231, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.meaning-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meaning-tag.physical { background: var(--green); color: var(--bg); }
.meaning-tag.business { background: var(--blue); color: var(--bg); }
.meaning-tag.tech { background: var(--orange); color: var(--bg); }

.meaning p { font-size: 0.9rem; margin-top: 6px; }

.nlp-comparison { display: flex; flex-direction: column; gap: 12px; }

.comp-item {
    padding: 12px;
    border-radius: 8px;
}

.bad-comp {
    background: rgba(253, 114, 114, 0.05);
    border: 1px solid rgba(253, 114, 114, 0.2);
}

.good-comp {
    background: rgba(0, 184, 148, 0.05);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.comp-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.comp-item p { font-size: 0.85rem; color: var(--text-dim); }
.comp-item code { font-family: var(--mono); font-size: 0.8rem; color: var(--orange); }
.comp-note { font-size: 0.8rem !important; font-style: italic; margin-top: 4px; }

/* ===== MYTHS (Section 8) ===== */
.myths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.myth-card {
    perspective: 600px;
    height: 200px;
    cursor: pointer;
}

.myth-front, .myth-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.6s;
}

.myth-front {
    background: var(--bg-card);
    border: 1px solid rgba(253, 114, 114, 0.3);
}

.myth-back {
    background: var(--bg-card);
    border: 1px solid rgba(0, 184, 148, 0.3);
    transform: rotateY(180deg);
}

.myth-card.flipped .myth-front { transform: rotateY(180deg); }
.myth-card.flipped .myth-back { transform: rotateY(0deg); }

.myth-card { position: relative; }

.myth-label {
    font-size: 0.7rem;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.reality-label {
    font-size: 0.7rem;
    color: var(--green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.myth-front p, .myth-back p { font-size: 0.9rem; line-height: 1.5; }

.myths-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ===== TOKENIZATION (Section 9) ===== */
.token-demo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.token-input-area { margin-bottom: 16px; }
.token-input-area label { font-size: 0.85rem; color: var(--text-dim); display: block; margin-bottom: 6px; }

textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px;
    font-family: var(--mono);
    font-size: 0.9rem;
    border-radius: 8px;
    resize: vertical;
    outline: none;
}

textarea:focus { border-color: var(--accent); }

.token-output {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 40px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 12px;
}

.token-chip {
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
}

.token-stats {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-family: var(--mono);
}

.token-stats strong { color: var(--text); }

.token-link {
    text-align: center;
    margin-bottom: 24px;
}

.external-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.external-link:hover { color: var(--cyan); }

.token-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
}

.fact-card h4 { font-size: 0.9rem; color: var(--accent); margin-bottom: 6px; }
.fact-card p { font-size: 0.85rem; color: var(--text-dim); }

/* ===== EMBEDDINGS (Section 10) ===== */
.embed-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.embed-container canvas {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.embed-equations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.eq-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.eq-card code {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--cyan);
    display: block;
    margin-bottom: 8px;
}

.eq-card p { font-size: 0.8rem; color: var(--text-dim); }

/* ===== ATTENTION (Section 11) ===== */
.attention-demo { max-width: 700px; margin: 0 auto; }

.attn-sentence-select {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.attn-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.attn-btn.active { border-color: var(--accent); background: rgba(108, 92, 231, 0.15); }
.attn-btn:hover { border-color: var(--text-dim); }

.attn-heatmap-container {
    margin-bottom: 24px;
    overflow-x: auto;
}

#attn-heatmap {
    display: inline-block;
    min-width: 100%;
}

.attn-row {
    display: flex;
    align-items: center;
}

.attn-label {
    width: 100px;
    text-align: right;
    padding-right: 10px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

.attn-label-top {
    width: 100px;
    flex-shrink: 0;
}

.attn-cell {
    width: 60px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.7rem;
    border-radius: 4px;
    margin: 1px;
    transition: all 0.3s;
}

.attn-header {
    width: 60px;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin: 1px;
    padding-bottom: 4px;
}

.attn-formula {
    text-align: center;
    margin-bottom: 20px;
}

.attn-formula code {
    font-family: var(--mono);
    font-size: 1.1rem;
    color: var(--cyan);
    background: var(--bg-card);
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.attn-explain {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.attn-explain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.attn-explain-card strong { color: var(--accent); }

/* ===== TRANSFORMER (Section 12) ===== */
.transformer-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
}

.tf-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px 32px;
    border-radius: var(--radius);
    text-align: center;
    width: 400px;
    max-width: 100%;
}

.tf-block h4 { color: var(--accent); margin-bottom: 4px; }
.tf-block p { font-size: 0.85rem; color: var(--text-dim); }

.tf-connector {
    font-size: 1.5rem;
    color: var(--text-dim);
    padding: 4px 0;
}

.tf-encoder { border-color: rgba(108, 92, 231, 0.5); }

.tf-sub {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.tf-component {
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tf-component.tf-add {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.2);
    font-size: 0.75rem;
    color: var(--green);
}

.tf-arrow { font-size: 1.2rem; margin: 6px 0; color: var(--text-dim); }

.tf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tf-stat {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
}

.tf-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--mono);
}

.tf-label { font-size: 0.8rem; color: var(--text-dim); }

.tf-link { text-align: center; }

/* ===== TRAINING (Section 13) ===== */
.training-demo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: center;
}

.training-prompt {
    font-family: var(--mono);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    display: inline-block;
}

.training-given { color: var(--text); }

.training-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.training-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.training-controls label {
    font-family: var(--mono);
    font-size: 0.85rem;
}

.prob-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 500px;
    margin: 0 auto;
}

.prob-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prob-label {
    width: 80px;
    text-align: right;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

.prob-fill-container {
    flex: 1;
    height: 24px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.prob-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 0.7rem;
    font-family: var(--mono);
    color: white;
    white-space: nowrap;
}

.training-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
}

.stage-card h3 { font-size: 1rem; color: var(--accent); margin-bottom: 8px; }
.stage-card p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; }

.stage-data {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.7;
}

/* ===== PLAYGROUND (Section 14) ===== */
.playground-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pg-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.pg-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    color: var(--text-dim);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.pg-tab:hover { color: var(--text); }
.pg-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.pg-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.pg-left {
    padding: 20px;
    border-right: 1px solid var(--border);
}

.pg-right { padding: 20px; }

.pg-technique-info {
    background: rgba(108, 92, 231, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.15);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.pg-system-prompt-area, .pg-prompt-area {
    margin-bottom: 12px;
}

.pg-system-prompt-area label, .pg-prompt-area label, .pg-right label {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 4px;
}

.pg-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pg-sliders {
    font-family: var(--mono);
    font-size: 0.8rem;
}

.pg-response {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.pg-placeholder { color: var(--text-dim); font-style: italic; }

.pg-loading {
    color: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

.pg-error { color: var(--red); }

/* ===== RECAP (Section 15) ===== */
.recap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.recap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.recap-card h3 { margin-bottom: 12px; }
.recap-card ul { list-style: none; padding: 0; }
.recap-card li { font-size: 0.9rem; color: var(--text-dim); padding: 4px 0; }
.recap-card li::before { content: "→ "; color: var(--accent); }
.recap-card a { color: var(--accent); text-decoration: none; }
.recap-card a:hover { text-decoration: underline; }

.recap-footer { text-align: center; padding: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
    .split-view, .nlp-examples, .myths-grid, .embed-equations,
    .token-facts, .dl-explanation, .tf-stats, .training-stages,
    .recap-grid, .attn-explain {
        grid-template-columns: 1fr;
    }

    .pg-body { grid-template-columns: 1fr; }
    .pg-left { border-right: none; border-bottom: 1px solid var(--border); }

    .section { padding: 40px 20px; }
    #nav-dots { display: none; }
}
