:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    /* Prevent scrolling initially, but allow it on mobile if content overflows */
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
    width: 100vw;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 600;
}

a:hover {
    opacity: 0.7;
}

.presentation {
    position: relative;
    height: 100vh;
    width: 100vw;
}

/* Slide Management */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    padding: 4rem;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    /* Fixed compatibility */
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: #f43f5e;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 700px;
}

.slide-num {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Components */
.content {
    width: 100%;
    max-width: 1100px;
    z-index: 2;
}

.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: var(--border);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    display: inline-block;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.feature-pills span {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #efedff;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.feature-pills span:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

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

.glass-card.featured {
    border: 1px solid var(--accent);
    background: rgba(139, 92, 246, 0.1);
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Background Effects */
.bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.2;
    border-radius: 50%;
}

.blob-1 {
    top: -100px;
    right: -100px;
    animation: float 20s infinite alternate;
}

.blob-2 {
    bottom: -100px;
    left: -100px;
    background: #d946ef;
    animation: float 25s infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 50px);
    }
}

/* Specific Slides Visuals */
.problem-list {
    list-style: none;
}

.problem-list li {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.problem-list strong {
    color: var(--text-primary);
}

.stat-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.mockup-frame {
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mockup-content {
    background: #09090b;
    padding: 1.5rem;
    border-radius: 8px;
}

.skeleton-line {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    margin-bottom: 10px;
}

.skeleton-line.full {
    width: 100%;
}

.skeleton-line.mid {
    width: 60%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.skeleton-grid div {
    height: 60px;
    background: var(--bg-card);
    border-radius: 6px;
}

.market-circles {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: -40px;
    margin-top: 4rem;
}

.circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    background: rgba(139, 92, 246, 0.05);
    transition: all 0.3s ease;
}

.circle:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: scale(1.05);
}

.tam {
    width: 400px;
    height: 400px;
    font-size: 1.5rem;
}

.sam {
    width: 250px;
    height: 250px;
    font-size: 1.1rem;
    margin-left: -50px;
    border-color: #d946ef;
}

.som {
    width: 140px;
    height: 140px;
    font-size: 0.9rem;
    margin-left: -30px;
    border-color: #ffffff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
}

/* Dash & Feature Visuals */
.alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-preview {
    margin-top: 1.5rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    margin-bottom: 1rem;
}

.bar-chart div {
    flex: 1;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
}

.small-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.magic-point {
    margin-bottom: 2rem;
}

.magic-point h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Forecasting Graph */
.forecasting-card {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forecast-graph {
    width: 100%;
    stroke-width: 3;
    stroke-linecap: round;
}

.main-line {
    stroke: var(--accent);
}

.dashed-line {
    stroke: #ffffff;
    stroke-dasharray: 6;
}

.prediction-text {
    margin-top: 2rem;
    font-weight: 600;
    color: #4ade80;
    /* Green highlight */
}

.max-600 {
    max-width: 600px;
    margin: 1.5rem auto;
}

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

    .slide {
        padding: 5rem 1.5rem 6rem;
        /* Space for progress and nav */
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        position: relative;
        /* Change from absolute for flow */
        display: none;
        /* Hide by default */
    }

    .slide.active {
        display: flex;
        /* Show active as flex */
        position: absolute;
        /* Keep absolute for transitions but combined with height auto */
        top: 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .grid-2,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .viz-side {
        order: -1;
        /* Move images/charts to top on mobile */
    }

    .market-circles {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .circle {
        margin: 0 !important;
        width: 200px !important;
        height: 200px !important;
    }

    .nav-controls {
        width: calc(100% - 2rem);
        bottom: 1rem;
        right: 1rem;
        justify-content: space-between;
    }

    .forecasting-card {
        height: 200px;
    }
}

.presenter-info {
    margin: 2rem 0;
}

.affiliation {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Nav & Progress */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 100;
}

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

.nav-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    gap: 1.5rem;
    z-index: 10;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

#slideIndicator {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: center;
}