:root {
    --bg-color: #0a0a0a;
    --slide-bg: #111;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent: #deff9a;
    --accent-dim: rgba(222, 255, 154, 0.1);
    --border: #333;
    --transition-speed: 0.5s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Urbanist', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- UI CONTROLS --- */
.app-header {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.9);
    z-index: 100;
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls {
    display: flex;
    gap: 10px;
}

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

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- MAIN STAGE --- */
.stage {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

/* --- SLIDE CONTAINER --- */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    transform: scale(0.95) translateY(20px);
    background: radial-gradient(circle at top right, var(--accent-dim) 0%, transparent 40%);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    z-index: 10;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

h1 span {
    color: var(--accent);
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    display: inline-block;
}

h2 span {
    color: var(--accent);
}

h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

p,
li {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

li {
    padding-left: 1.5rem;
    position: relative;
}

li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 4px;
}

/* --- LAYOUTS --- */
.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    height: 100%;
    align-items: center;
}

.layout-tiled {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    height: auto;
    align-items: stretch;
}

.tile {
    background: #151515;
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.tile:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.tile i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.tile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tile-header i {
    margin-bottom: 0;
}

.tile-header h3 {
    margin-bottom: 0;
}

.image-container {
    width: 100%;
    height: 100%;
    max-height: 60vh;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* Hide broken images if any remain */
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--border);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
    opacity: 0.5;
}

.placeholder-image span {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent);
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    background: var(--bg-color);
    padding: 0 1rem;
    width: 30%;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px var(--accent-dim);
}

blockquote {
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
}

cite {
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-size: 1.5rem;
    font-style: normal;
    color: white;
}

cite span {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- FOOTER / NAV --- */
.app-footer {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid var(--border);
    z-index: 100;
}

.progress-container {
    flex-grow: 1;
    margin: 0 2rem;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.nav-controls button {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.2s;
}

.nav-controls button:hover {
    transform: scale(1.05);
    background: white;
}

.nav-controls button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* AI Glitch Effect for Easter Egg Hint */
.nav-controls button.ai-glitch {
    position: relative;
    color: #fff;
    background: #0a0a0a;
    border-color: #ff00ff;
    box-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
    text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
    animation: ai-glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    z-index: 100;
}

.nav-controls button.ai-glitch::before {
    content: "Prev";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    color: #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transform: translate(-2px, 0);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: ai-glitch-anim-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.nav-controls button.ai-glitch::after {
    content: "Prev";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    color: #ff00ff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transform: translate(2px, 0);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: ai-glitch-anim-3 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes ai-glitch-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes ai-glitch-anim-2 {
    0% {
        clip-path: polygon(0 20%, 100% 20%, 100% 30%, 0 30%);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: polygon(0 40%, 100% 40%, 100% 50%, 0 50%);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: polygon(0 10%, 100% 10%, 100% 15%, 0 15%);
        transform: translate(-2px, 0);
    }

    100% {
        clip-path: polygon(0 50%, 100% 50%, 100% 60%, 0 60%);
        transform: translate(2px, 0);
    }
}

@keyframes ai-glitch-anim-3 {
    0% {
        clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: polygon(0 90%, 100% 90%, 100% 95%, 0 95%);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: polygon(0 30%, 100% 30%, 100% 40%, 0 40%);
        transform: translate(-2px, 0);
    }

    80% {
        clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
        transform: translate(2px, 0);
    }

    100% {
        clip-path: polygon(0 80%, 100% 80%, 100% 90%, 0 90%);
        transform: translate(-2px, 0);
    }
}

/* --- MODAL SYSTEM --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid var(--accent);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(222, 255, 154, 0.15);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.modal-body p {
    font-size: 1.1rem;
    color: #d0d0d0;
}

.modal-body ul {
    margin-bottom: 1.5rem;
}

.modal-body li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

/* Deep Dive Button */
.btn-deep-dive {
    background: rgba(222, 255, 154, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-deep-dive:hover {
    background: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-dim);
}

.btn-deep-dive i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- GLOSSARY TOOLTIPS --- */
.glossary-term {
    text-decoration: none;
    transition: color 0.2s;
}

body.glossary-enabled .glossary-term {
    border-bottom: 1px dashed var(--accent-dim);
    text-underline-offset: 4px;
    cursor: help;
}

body.glossary-enabled .glossary-term:hover {
    color: var(--accent);
}

.tooltip-popup {
    position: fixed;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--accent);
    padding: 15px 20px;
    border-radius: 8px;
    width: 320px;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transform: translateY(10px);
}

.tooltip-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-title {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .slide {
        padding: 40px;
    }

    .layout-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-container {
        max-height: 30vh;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
    }
}

/* --- GRAPHICS --- */

/* Slide 3: UI Mockup */
.graphic-ui-mockup {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ui-card {
    width: 80%;
    height: 70%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ui-header {
    height: 20px;
    width: 40%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 10px;
}

.ui-bubble {
    height: 40px;
    width: 100%;
    background: rgba(222, 255, 154, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}

.ui-bubble.right {
    align-self: flex-end;
    width: 80%;
    background: rgba(255, 255, 255, 0.05);
    border-left: none;
    border-right: 3px solid #fff;
}

/* Slide 4: App Building */
.graphic-app-building {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    /* Gap handled by lines */
    padding-top: 20px;
}

.tier-card {
    width: 400px;
    /* Scaled up from 280px */
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 2;
}

.tier-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.tier-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.tier-content {
    display: flex;
    flex-direction: column;
}

.tier-content strong {
    font-size: 1.2rem;
    color: #fff;
}

.tier-content span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Tier Specifics */
.tier-pro {
    border-color: #a371f7;
    /* GitHub Purple */
    box-shadow: 0 0 20px rgba(163, 113, 247, 0.15);
}

.tier-pro .tier-icon {
    color: #a371f7;
}

.tier-expert {
    border-color: #39f;
    /* Copilot Blue */
    box-shadow: 0 0 20px rgba(51, 153, 255, 0.15);
}

.tier-expert .tier-icon {
    color: #39f;
}

.tier-maker {
    border-color: var(--accent);
    /* Brand Green */
    box-shadow: 0 0 20px var(--accent-dim);
}

.tier-maker .tier-icon {
    color: var(--accent);
}

.tier-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    z-index: 1;
}

.tier-foundation {
    width: 450px;
    height: 40px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tier-foundation span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Slide 5: Security Grid */
.graphic-security-grid {
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 4px;
    padding: 20px;
}

.grid-cell {
    background: rgba(222, 255, 154, 0.05);
    border-radius: 2px;
    transition: background 0.3s;
}

.grid-cell:hover {
    background: var(--accent);
}

.grid-cell.alert {
    background: rgba(255, 100, 100, 0.2);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        background: rgba(255, 100, 100, 0.2);
    }

    50% {
        background: rgba(255, 100, 100, 0.5);
    }

    100% {
        background: rgba(255, 100, 100, 0.2);
    }
}

/* Slide 7: Server Room (Image) */
.graphic-server-room {
    width: 100%;
    height: 100%;
}

.graphic-server-room img {
    display: block !important;
    /* Override default hidden state */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide 9: Network Constellation */
.graphic-network {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.net-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.net-line {
    position: absolute;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: left center;
}

/* Slide 9: Comprehensive Workflow */
.governance-envelope {
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 15px;
    /* Reduced from 20px */
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 107, 107, 0.01) 100%);
    max-width: 1400px;
    width: 100%;
    /* Force full width to prevent jumping */
    /* Increased from 1200px */
    margin: 0 auto;
    position: relative;
}

.governance-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
}

.governance-label i {
    font-size: 1.5rem;
    color: #ff6b6b;
}

.governance-label strong {
    font-size: 1.1rem;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.governance-label span {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* Interactive Layout (Side-by-Side) */
.interactive-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 10px;
    /* Reduced from 20px */
    width: 100%;
    /* Ensure layout takes full width */
}

/* Sidebar Tabs */
.scenario-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 260px;
    flex-shrink: 0;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.tab-btn.active {
    background: linear-gradient(90deg, rgba(0, 120, 212, 0.2) 0%, rgba(0, 120, 212, 0) 100%);
    border-color: var(--accent);
    color: #fff;
    box-shadow: none;
    border-left: 4px solid var(--accent);
}

.tab-icon {
    font-size: 1.5rem;
    color: var(--accent);
    width: 30px;
    text-align: center;
}

.tab-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tab-info strong {
    font-size: 1rem;
    display: block;
}

.tab-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.tab-btn.active .tab-info span {
    color: rgba(255, 255, 255, 0.7);
}

/* Content Area */
.scenario-content-area {
    flex-grow: 1;
    /* min-height removed to allow natural growth, padding added for spacing */
    padding-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.workflow-scenario {
    display: none;
    animation: fadeIn 0.4s ease;
    width: 100%;
    /* Removed absolute positioning to fix overflow */
}

.workflow-scenario.active {
    display: block;
}

.scenario-context {
    background: rgba(0, 120, 212, 0.1);
    border: 1px solid rgba(0, 120, 212, 0.3);
    padding: 8px 12px;
    /* Reduced from 12px 16px */
    border-radius: 6px;
    margin-bottom: 10px;
    /* Reduced from 20px */
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.scenario-context strong {
    color: var(--accent);
    white-space: nowrap;
}

.scenario-context span {
    color: var(--text-main);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.workflow-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    /* Fill governance envelope */
    margin: 0 auto;
    font-size: 0.9rem;
    /* Slightly smaller base font */
}

.workflow-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    /* Reduced from 12px 16px */
    /* Reduced from 20px */
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    /* Reduced from 10px */
    padding-bottom: 4px;
    /* Reduced from 8px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-header i {
    font-size: 1.2rem;
    /* Reduced from 1.5rem */
    color: var(--accent);
}

.workflow-header strong {
    font-size: 1rem;
    /* Reduced from 1.2rem */
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.workflow-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 6px 10px;
    /* Reduced from 8px 12px */
    /* Reduced from 12px 16px */
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* Reduced from 5px */
    transition: all 0.3s;
}

.workflow-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.workflow-label {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
}

.workflow-desc {
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
    color: var(--text-muted);
    line-height: 1.3;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    /* Reduced from 12px */
}

.workflow-arrow {
    text-align: center;
    padding: 2px 0;
    /* Reduced from 4px 0 */
    /* Reduced from 8px */
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    /* Reduced from 1.2rem */
}

/* Infrastructure highlights */
.highlight-azure {
    border-left: 3px solid #0078d4;
}

.highlight-private {
    border-left: 3px solid #ff6b6b;
}

.highlight-fiber {
    border-left: 3px solid var(--accent);
}

@media (max-width: 1024px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}