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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0A0E27;
    overflow: hidden;
    color: #E8EAED;
}

.presentation {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1A1F3A 0%, #0F1229 100%);
    border-radius: 0;
    box-shadow: none;
    padding: 60px 120px 80px 120px;
    display: none;
    position: relative;
    overflow: hidden;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00D9FF 0%, #7B61FF 50%, #FF006B 100%);
}

.slide.active {
    display: block;
    animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-number {
    position: absolute;
    bottom: 20px;
    right: 120px;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

h1 {
    background: linear-gradient(135deg, #00D9FF 0%, #7B61FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 56px;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

h2 {
    background: linear-gradient(135deg, #00D9FF 0%, #7B61FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 40px;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

h3 {
    color: #00D9FF;
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
    font-weight: 400;
}

.subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    margin-bottom: 48px;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 1000;
}

button {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    font-family: 'Inter', sans-serif;
    opacity: 0.7;
}

button:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 1;
    color: rgba(255,255,255,0.9);
}

button:active {
    transform: translateY(0);
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    position: relative;
    padding: 0 20px;
    gap: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: linear-gradient(90deg, #00D9FF 0%, #7B61FF 50%, #FF006B 100%);
}

.phase {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.phase-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00D9FF 0%, #7B61FF 100%);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.3), 0 0 0 4px rgba(0, 217, 255, 0.1);
}

.phase h4 {
    color: #00D9FF;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.phase p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.benefit-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.1);
}

.benefit-card h4 {
    color: #00D9FF;
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.architecture-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 16px;
}

.arch-box {
    flex: 1;
    background: rgba(0, 217, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: #E8EAED;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.1);
}

.arrow {
    font-size: 24px;
    color: #00D9FF;
    font-weight: bold;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.metric-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0, 217, 255, 0.3);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.metric-card:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.5);
    transform: translateY(-4px);
}

.metric-value {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, #00D9FF 0%, #7B61FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.metric-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.feature-list {
    margin-top: 24px;
}

.feature-item {
    display: flex;
    align-items: start;
    margin-bottom: 14px;
    padding: 18px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border-left: 3px solid #00D9FF;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(0, 217, 255, 0.05);
    transform: translateX(4px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00D9FF 0%, #7B61FF 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 16px;
    flex-shrink: 0;
}

.feature-text h4 {
    color: #00D9FF;
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

.feature-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}

.dashboard-mockup {
    margin-top: 24px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.dash-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00D9FF;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dash-card {
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.dash-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-value {
    font-size: 24px;
    font-weight: 700;
    color: #00D9FF;
}

.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
}

.workflow-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.workflow-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00D9FF 0%, #7B61FF 100%);
    border-radius: 16px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.3);
}

.workflow-step p {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.workflow-arrow {
    font-size: 24px;
    color: #00D9FF;
    margin: 0 8px;
}

ul {
    margin-top: 20px;
    margin-left: 24px;
}

li {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.highlight {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.1) 0%, rgba(255, 0, 107, 0.1) 100%);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 106, 0, 0.3);
    margin-top: 20px;
}

.highlight p {
    margin: 0;
    color: #FFB84D;
    font-weight: 600;
    font-size: 15px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 80px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #00D9FF 0%, #7B61FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.5px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    font-weight: 500;
}

.glass-box {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
}

/* Fix slide 9 glass-box to prevent overlap on desktop */
.slide div[style*="display: flex; gap: 24px"] {
    align-items: flex-start;
}

.slide div[style*="display: flex"] > div[style*="flex: 1"] {
    align-self: flex-start;
}

.slide div[style*="display: flex"] > div[style*="flex: 1"] .glass-box[style*="height: 100%"] {
    height: auto !important;
    padding-bottom: 16px !important;
}

.slide div[style*="display: flex; gap: 24px"] + div[style*="margin-top"] {
    clear: both;
    margin-top: 40px !important;
}

strong {
    color: #00D9FF;
    font-weight: 600;
}

/* Slide 12 specific adjustments to fit content above nav buttons */
.slide:last-of-type h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.slide:last-of-type > p {
    margin-bottom: 20px !important;
}

.slide:last-of-type .metrics-grid {
    margin-top: 16px;
    gap: 12px;
}

.slide:last-of-type .metric-card {
    padding: 16px;
}

.slide:last-of-type .metric-value {
    font-size: 32px;
}

.slide:last-of-type p {
    margin-bottom: 6px;
    font-size: 13px;
}

.slide:last-of-type > div[style*="margin-top: 32px"] {
    margin-top: 16px !important;
}

.slide:last-of-type div[style*="padding: 28px"] {
    padding: 16px !important;
}

.slide:last-of-type h4 {
    font-size: 14px !important;
    margin-bottom: 10px !important;
}

.slide:last-of-type .highlight {
    margin-top: 16px !important;
    padding: 12px !important;
    margin-bottom: 100px;
}

.slide:last-of-type .highlight p {
    font-size: 13px !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .presentation {
        display: block;
        height: auto;
    }

    .slide {
        padding: 80px 20px 100px 20px;
        height: auto;
        min-height: 100vh;
        width: 100vw;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
    }

    .slide.active {
        display: flex !important;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    h2 {
        font-size: 26px;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .controls {
        display: none;
    }

    .slide-number {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
        font-size: 12px;
        background: rgba(10, 14, 39, 0.8);
        padding: 8px;
        border-radius: 8px;
    }

    /* Stack timeline phases vertically */
    .timeline {
        flex-direction: column;
        gap: 40px;
        padding: 0;
        margin-top: 24px;
    }

    .timeline::before {
        display: none;
    }

    .phase-circle {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* Stack benefits grid */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    .benefit-card {
        padding: 16px;
    }

    .benefit-card h4 {
        font-size: 15px;
    }

    .benefit-card p {
        font-size: 13px;
    }

    /* Stack metrics grid to 2 columns on mobile */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }

    .metric-card {
        padding: 16px;
    }

    .metric-value {
        font-size: 32px;
    }

    .metric-label {
        font-size: 13px;
    }

    /* Stack feature items */
    .feature-list {
        margin-top: 16px;
    }

    .feature-item {
        padding: 12px;
        margin-bottom: 10px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-right: 12px;
    }

    .feature-text h4 {
        font-size: 14px;
    }

    .feature-text p {
        font-size: 13px;
    }

    /* Dashboard adjustments */
    .dashboard-mockup {
        padding: 16px;
        margin-top: 16px;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dash-card {
        padding: 12px;
    }

    /* Workflow diagram - stack vertically */
    .workflow-diagram {
        flex-direction: column;
        margin-top: 24px;
    }

    .workflow-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .workflow-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .workflow-step p {
        font-size: 13px;
    }

    /* Architecture diagram adjustments */
    .arch-box {
        font-size: 13px;
        padding: 12px;
    }

    .arrow {
        font-size: 20px;
    }

    /* Hero stats - stack or reduce size */
    .hero-stats {
        gap: 20px;
        margin-top: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-value {
        font-size: 36px;
    }

    .stat-label {
        font-size: 13px;
    }

    /* Glass box adjustments */
    .glass-box {
        padding: 16px;
    }

    /* Highlight box */
    .highlight {
        padding: 16px;
        margin-top: 16px;
    }

    .highlight p {
        font-size: 13px;
    }

    /* List adjustments */
    ul {
        margin-left: 16px;
        margin-top: 12px;
    }

    li {
        font-size: 13px;
        margin-bottom: 8px;
    }

    /* Override inline grid styles on slides 7, 8, 9, 12 */
    .slide div[style*="display: grid"],
    .slide div[style*="display:grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .slide div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Stack any flex containers with display:flex inline styles */
    .slide div[style*="display: flex"][style*="gap:"],
    .slide div[style*="display:flex"][style*="gap:"] {
        flex-direction: column !important;
    }

    /* Fix height: 100% causing overlap issues on slide 9 */
    .slide .glass-box[style*="height: 100%"],
    .slide .glass-box[style*="height:100%"] {
        height: auto !important;
        min-height: auto !important;
    }

    /* Remove flex: 1 that causes elements to expand on mobile */
    .slide div[style*="flex: 1"],
    .slide div[style*="flex:1"] {
        flex: none !important;
        width: 100% !important;
    }

    /* Ensure proper spacing between stacked sections */
    .slide > div[style*="margin-top"],
    .slide > div > div[style*="margin-top"] {
        margin-top: 24px !important;
    }

    /* Add clear separation for nested flex containers */
    .slide div[style*="display: flex"] > div {
        margin-bottom: 16px;
    }

    .slide div[style*="display: flex"] > div:last-child {
        margin-bottom: 0;
    }

    /* Specific fix for slide 9 - target parent container */
    .slide div[style*="display: flex; gap: 24px"],
    .slide div[style*="display: flex;gap: 24px"],
    .slide div[style*="display:flex; gap: 24px"],
    .slide div[style*="display:flex;gap: 24px"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Force all child divs inside flex containers to not expand */
    .slide div[style*="display: flex"] > div[style*="flex: 1"],
    .slide div[style*="display: flex"] > div[style*="flex:1"] {
        flex: none !important;
        width: 100% !important;
        max-height: none !important;
    }

    /* Override any height constraints on nested elements */
    .slide div[style*="flex: 1"] .glass-box,
    .slide div[style*="flex:1"] .glass-box {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
