:root {
    --bg: #f8fafc;
    --sidebar-bg: #ffffff;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-bright: #cbd5e1;
    --text: #0f172a;
    --text-dim: #64748b;
    --accent: #2563eb;
    --accent-dim: rgba(37, 99, 235, 0.08);
    --green: #059669;
    --green-dim: rgba(5, 150, 105, 0.08);
    --amber: #d97706;
    --amber-dim: rgba(217, 119, 6, 0.08);
    --red: #dc2626;
    --red-dim: rgba(220, 38, 38, 0.08);
    --glass-blur: blur(0px);
    
    --font-serif: 'Instrument Serif', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
}

/* PRESENTATION TOP BAR */
.presentation-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-content h1 {
    font-size: 0.95rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-content p {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slide-link {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.25s;
    font-weight: 600;
}

.slide-link:hover {
    color: var(--text);
    border-color: var(--border-bright);
}

.fullscreen-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fullscreen-btn:hover {
    color: var(--text);
    border-color: var(--border-bright);
}

/* DECK SCROLL CONTAINER */
.deck {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.slide {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 2rem 2rem 2rem;
    background-color: var(--bg);
    overflow: hidden;
}

.slide__container {
    max-width: 1060px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Background gradients for interest */
.slide--title {
    background: radial-gradient(circle at center, #eff6ff 0%, var(--bg) 70%);
}

.slide--content {
    background: radial-gradient(ellipse at bottom left, rgba(37, 99, 235, 0.04) 0%, var(--bg) 60%);
}

.slide--table {
    background: radial-gradient(ellipse at top right, rgba(5, 150, 105, 0.04) 0%, var(--bg) 60%);
}

/* Typography styles */
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: var(--accent-dim);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

.slide__display {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #0f172a 60%, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.slide__heading {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
    display: block;
}

.slide__body {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 750px;
    margin-bottom: 1.5rem;
}

/* Grid & Card layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.glass-card {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.3s;
}

.glass-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.glass-card.highlight {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(to bottom right, #ffffff, #f0f7ff);
}

.card-num-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Bullet list in slide */
.slide__bullets {
    list-style: none;
    margin-top: 0.5rem;
}

.slide__bullets li {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.slide__bullets li::before {
    content: '▪';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    top: -2px;
}

.slide__bullets li strong {
    color: var(--text);
}

/* Split content layouts */
.slide__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Tables inside slides */
.slide-table-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.slide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.slide-table th {
    background: #f1f5f9;
    color: var(--text);
    padding: 0.85rem 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    vertical-align: middle;
}

.slide-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

.slide-table tr:last-child td {
    border-bottom: none;
}

/* Tag & Chip styles */
.chip {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid var(--border);
}

.chip-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.chip-green {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.chip-amber {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

/* Bottom Navigation Controls */
.bottom-controls {
    position: fixed;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.slide-counter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    padding: 0 0.5rem;
}

.ctrl-btn {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
}

.ctrl-btn:hover {
    background: #f1f5f9;
    color: var(--accent);
}

/* INFOGRAPHIC FLOW */
.infographic-flow {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.info-step-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.25s;
}

.info-step-card.card-blue {
    border-top: 4px solid #2563eb;
    background: linear-gradient(to bottom, #ffffff 60%, #f0f7ff);
}

.info-step-card.card-green {
    border-top: 4px solid #059669;
    background: linear-gradient(to bottom, #ffffff 60%, #f0fdf4);
}

.info-step-card.card-amber {
    border-top: 4px solid #d97706;
    background: linear-gradient(to bottom, #ffffff 60%, #fffbeb);
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-step-icon {
    font-size: 1.75rem;
}

.info-badge-role {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
}

.role-blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.role-green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.role-amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }

.info-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.info-card-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.info-tag-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: auto;
}

.info-tag-item {
    font-size: 0.72rem;
    color: #334155;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
}

.info-arrow-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-dim);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 48px;
    flex-shrink: 0;
    text-align: center;
}

.info-arrow-col span.arrow-icon {
    font-size: 1.25rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .slide__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .infographic-flow {
        flex-direction: column;
    }
    .info-arrow-col {
        width: 100%;
        margin: 0.25rem 0;
    }
}
