/* Reset & Base */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #7b61ff;
    /* Neonish Purple */
    --accent-secondary: #00f0ff;
    /* Neon Cyan */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);

    /* Typography System */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Hero Graphic - Sonic Waveform */
    .hero-graphic-container {
        position: absolute;
        bottom: -20px;
        /* Raised significantly to fill the void */
        right: -100px;
        width: 1100px;
        /* Slightly larger */
        height: 750px;
        z-index: 0;
        pointer-events: none;
        opacity: 0.7;
        /* More visible */
        mix-blend-mode: screen;
        transform: rotate(-5deg);
        /* Less rotation to feel more grounded */
    }

    .hero-graphic-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* SVG Internal Animation Hooks (if embedding inline or controlling via CSS) */
    /* Since we are using an IMG tag, the SVG's internal SMIL animations will run. 
   But we can add a global float to the whole container for extra life. */

    .hero-graphic-container {
        animation: heroFloat 6s ease-in-out infinite;
    }

    @keyframes heroFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-15px);
        }
    }

    --transition-speed: 0.4s;
    --sidebar-width: 250px;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-hint::after {
    content: "↓";
    display: block;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: var(--accent-secondary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow: hidden;
    /* Prevent scrolling, app-like feel */
    /* Use dynamic viewport units to avoid mobile chrome/address-bar clipping */
    height: 100dvh;
    width: 100dvw;
    max-width: 100%;
}

/* App Container */
.app-container {
    display: flex;
    /* prefer dynamic viewport height to avoid mobile clipping */
    height: 100dvh;
    /* Force viewport height */
    width: 100vw;
    overflow: hidden;
    /* Strict global clip */
    position: fixed;
    /* Lock it in place */
    top: 0;
    left: 0;

    /* Respect device safe-area (notches / status bars) */
    padding-top: env(safe-area-inset-top, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #000;
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    z-index: 10;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
    color: #fff;
}

.nav-dots {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* Wider gap for elegance */
    position: relative;
    padding-left: 20px;
    /* Space for the track */
}

/* The vertical guide track */
.nav-dots::before {
    content: "";
    position: absolute;
    left: 22px;
    /* Center alignment adjustment */
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1) 15%, rgba(255, 255, 255, 0.1) 85%, transparent);
    z-index: 0;
}

.nav-dot {
    width: 4px;
    height: 12px;
    border-radius: 4px;
    /* Soft rectangles */
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth physics */
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    /* Prevent jitter on border change */
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    height: 16px;
    /* Subtle growth */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-dot.active {
    height: 40px;
    /* Dramatic elongation */
    width: 6px;
    /* Slightly thicker */
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-color));
    box-shadow:
        0 0 15px var(--accent-color),
        0 0 30px rgba(0, 240, 255, 0.4);
    border-radius: 6px;
    transform: translateX(-1px);
    /* Optical centering for width change */
}

.slide-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.slide-controls button {
    background: none;
    border: 1px solid var(--card-border);
    color: inherit;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.slide-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Slide Container */
.slide-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* Ensure double wrapping of overflow */
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    opacity: 0;
    visibility: hidden;
    /* Added for safer hiding */
    transform: translateY(20px);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease, visibility var(--transition-speed);
    /* Add top inset so content isn't obscured by mobile notches/status bars */
    padding: calc(4rem + env(safe-area-inset-top, 0)) 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Fix: Use safe top alignment for overflow */
    pointer-events: none;
    overflow-y: auto;
    /* Allow scroll only if content overflows */
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Hide scrollbar for cleaner UI */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.slide::-webkit-scrollbar,
.slide-content::-webkit-scrollbar,
.slide-container::-webkit-scrollbar {
    display: none;
}

.slide-content,
.slide-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    /* Added for safer showing */
    transform: translateY(0);
    pointer-events: all;
    z-index: 1;
}

.center-content {
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    /* Reinforce flex behavior */
    flex-direction: column;
}

.center-content .slide-content {
    width: 100%;
    max-width: 1200px;
    /* Constrain max width for better readability on huge screens */
    /* Constrain max width for better readability on huge screens */
    margin: auto auto;
    /* Fix: Safe centering */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensure children are centered cross-axis */
}

/* Typography & Components */
h1,
h2,
h3,
h4,
h5 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 7rem);
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom right, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    opacity: 0.8;
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.divider {
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin: 2rem auto;
}

.tagline {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subline {
    font-size: 1rem;
    opacity: 0.7;
}

.meta {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.pill {
    background: rgba(123, 97, 255, 0.2);
    border: 1px solid var(--accent-color);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Slide Header */
.slide-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.slide-number {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 1.5rem;
}

.slide-header h3 {
    font-family: var(--font-mono);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    opacity: 0.6;
    color: var(--text-color);
}

/* Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 12px;
}

.card.glass {
    backdrop-filter: blur(10px);
}

.card h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.card ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.alert {
    border-color: rgba(255, 87, 87, 0.3);
}

.alert h4 {
    color: #ff5757;
}

.bottom-text {
    margin-top: 3rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.bottom-text p {
    margin-bottom: 0.5rem;
}

.highlight-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(123, 97, 255, 0.1);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 4px 4px 0;
}

/* Specific Slide Styles */
.heading-lg {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.heading-md {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
}

.statement {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 600;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
}

.process-flow {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    font-family: var(--font-mono);
    flex-wrap: wrap;
    gap: 1rem;
}

.step {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow {
    color: var(--accent-secondary);
}

.analogy-box {
    text-align: center;
    font-size: 1.5rem;
    margin-top: auto;
}

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

.arch-col h4 {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.arch-col ul {
    list-style: none;
    font-size: 0.9rem;
    opacity: 0.9;
}

.arch-col ul li {
    margin-bottom: 0.5rem;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    font-size: 1.1rem;
}

.revenue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.revenue-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
}

.revenue-item .icon {
    font-size: 2rem;
}

.bottom-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    font-family: var(--font-mono);
    color: var(--accent-color);
}

.comparison-table {
    display: flex;
    gap: 2px;
    /* For border effect if needed */
    margin: 3rem 0;
}

.comp-col {
    flex: 1;
    padding: 2rem;
    border-radius: 12px;
}

.comp-col.others {
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.6;
}

.comp-col.us {
    background: rgba(123, 97, 255, 0.08);
    border: 1px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comp-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.roadmap {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.phase {
    flex: 1;
    background: var(--card-bg);
    padding: 2rem;
    border-top: 3px solid var(--accent-secondary);
}

.phase-num {
    font-family: var(--font-mono);
    opacity: 0.5;
    margin-bottom: 0.5rem;
    display: block;
}

.vision-grid {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
    justify-content: center;
}

.v-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.use-of-funds {
    margin: 3rem 0;
    text-align: center;
}

.fund-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.fund-grid span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 60px;
        flex-direction: row;
        align-items: center;
        padding: 0 1rem;
    }

    .nav-dots {
        display: none;
    }

    .slide {
        padding: 2rem;
        justify-content: flex-start;
        /* Fix: Prevent top clipping on overflow - include safe-area inset */
        padding-top: calc(8rem + env(safe-area-inset-top, 0));
        /* Clear the top bar */
    }

    /* Push the title slide further down on small screens */
    .slide.hero-cinematic {
        padding-top: calc(10rem + env(safe-area-inset-top, 0));
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .grid-2,
    .architecture-grid,
    .revenue-grid,
    .roadmap,
    .vision-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .slide-content {
        overflow-y: auto;
        padding-bottom: 4rem;
        /* space for scroll */
        height: 100%;
    }
}

/* ... existing styles ... */

/* Media Placeholders */
.media-placeholder {
    width: 100%;
    height: 300px;
    /* Default height */
    background: rgba(255, 255, 255, 0.05);
    /* Grey/White transparent */
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.media-placeholder:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.media-placeholder::after {
    content: "MEDIA INSERT";
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.media-placeholder.large {
    height: 450px;
}

.media-placeholder.small {
    height: 150px;
}

.media-placeholder.hero {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05));
    border: none;
    z-index: -1;
}

.media-placeholder.hero::after {
    content: "HERO VISUAL";
}

/* Pulsing Animation */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.media-placeholder {
    animation: pulse-border 3s infinite;
}

/* Existing style.css content is assumed to be here or we duplicate relevant parts if we were overwriting. 
   Since we want to APPEND/UPDATE, I'll write the new responsive stuff and image classes.
   Using append method with run_command after writing to a temp file is safer to avoid overwriting everything if I don't have the full content in context.
   actually, I can use replace_file_content to insert at the end or just overwrite if I trust I have all needed.
   Better yet, I will use `run_command` to append the new CSS to the end of style.css. 
*/

/* Systemic Visuals */
.visual-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.systemic-visual {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(123, 97, 255, 0.2));
}

.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.6;
    width: 80%;
    pointer-events: none;
}

.vision-core {
    width: 600px;
    max-width: 100%;
}

/* Responsive Design */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
    }

    .slide {
        padding: 3rem 4rem;
    }

    .heading-lg {
        font-size: 3rem;
    }

    .architecture-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 1rem;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        position: fixed;
        bottom: 0;
        top: auto;
        background: #000;
        z-index: 100;
        justify-content: space-between;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-dots {
        display: none;
        /* Hide dots on mobile */
    }

    .slide-controls {
        gap: 1rem;
    }

    .slide-container {
        margin-bottom: 60px;
        /* Space for bottom bar */
    }

    .slide {
        padding: 2rem 1.5rem;
        overflow-y: auto;
        /* Allow scrolling within slide if content is long */
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .heading-lg {
        font-size: 2rem;
    }

    .statement {
        font-size: 1.8rem;
    }

    .grid-2,
    .revenue-grid,
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
        justify-content: center;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .comparison-table {
        flex-direction: column;
    }

    .comp-col.us {
        transform: none;
        box-shadow: none;
        border: 1px solid var(--accent-color);
    }

    .media-placeholder.hero {
        position: relative;
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }

    .hero-visual {
        width: 100%;
        opacity: 0.3;
    }

    .roadmap {
        flex-direction: column;
    }
}

/* --- WORLD CLASS REDESIGN UTILITIES --- */

/* 1. Cinematic Hero (Slide 1) */
.hero-cinematic {
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* Fix: Prevent scrollbars from background effects */
}

.hero-cinematic .brand-title {
    font-size: clamp(3rem, 9vw, 8rem);
    /* Adjusted scaling to fit container */
    letter-spacing: -0.05em;
    line-height: 1;
    /* Richer metallic gradient */
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 40%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 60px rgba(255, 255, 255, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.5);
    /* Depth */
    margin-bottom: 2rem;
    transform: perspective(1000px) rotateX(2deg);
    /* Subtle 3D tilt */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    white-space: nowrap;
    /* Prevent wrapping at all costs */
}

.hero-cinematic .subtitle {
    font-family: var(--font-display);
    /* Switch to display font for cleaner look */
    font-size: clamp(1.2rem, 3vw, 2rem);
    /* Slightly smaller min */
    letter-spacing: -0.02em;
    color: #fff;
    opacity: 0.9;
    max-width: 1000px;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-cinematic .divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    margin: 0 auto 3rem auto;
    opacity: 0.7;
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-cinematic .tagline {
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    /* responsive font size */
    letter-spacing: 0.15em;
    /* Reduced from 0.2em */
    color: var(--accent-secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    white-space: normal;
    /* Allow text to wrap on smaller screens */
    max-width: 90vw;
    /* Safety constraint */
    text-align: center;
    line-height: 1.4;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    /* Cover more than 100% to ensure bleed, but parent hides overflow */
    height: 140%;
    /* Multi-layered complex gradient */
    background:
        radial-gradient(circle at 30% 30%, rgba(123, 97, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(123, 97, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulse-glow-complex 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow-complex {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.95);
        filter: hue-rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
        filter: hue-rotate(10deg);
    }
}

/* 2. Glass Warning Panels (Slide 2) */
.glass-warning {
    background: rgba(20, 5, 5, 0.6);
    border: 1px solid rgba(255, 87, 87, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-warning:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 87, 87, 0.5);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.glass-warning h4 {
    color: #ff5757;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.glass-warning li {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.glass-warning li::before {
    content: "×";
    color: #ff5757;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 3. Premium Glass Panels (Slide 3 & General) */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.5;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.glass-panel h4 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tech Pills (Slide 3) */
.tech-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-pill {
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.3);
    color: #cebfff;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-pill:hover {
    background: rgba(123, 97, 255, 0.25);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(123, 97, 255, 0.3);
}

/* 4. Holographic Data Blocks (Slide 9) */
.holo-block {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.holo-block::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    box-shadow: 0 -5px 10px var(--accent-cyan);
    opacity: 0.3;
}

.holo-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.holo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.neon-stat {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-secondary);
    border-radius: 4px;
    display: inline-block;
    text-shadow: 0 0 5px var(--accent-secondary);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

/* 5. Feature Matrix (Slide 10) */
.feature-matrix {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 3rem;
}

.matrix-col h4 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.matrix-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-left: 2px solid transparent;
}

.matrix-col.us .matrix-item {
    background: linear-gradient(90deg, rgba(123, 97, 255, 0.1), transparent);
    border-left-color: var(--accent-color);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 500;
}

.matrix-col.others .matrix-item {
    color: rgba(255, 255, 255, 0.4);
}

.moat-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.moat-item {
    font-family: var(--font-mono);
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.moat-item::before {
    content: "🛡️";
    font-size: 1.2rem;
    filter: grayscale(1);
}

/* 6. Connected Roadmap (Slide 11) */
.roadmap-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
}

.roadmap-timeline::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), var(--accent-color), rgba(255, 255, 255, 0.1));
    z-index: 0;
}

.roadmap-node {
    position: relative;
    z-index: 1;
    background: #050505;
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 12px;
    width: 30%;
    transition: 0.3s ease;
}

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

.roadmap-marker {
    width: 20px;
    height: 20px;
    background: #050505;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px var(--accent-color);
}

.roadmap-node h4 {
    text-align: center;
    color: #fff;
    margin-bottom: 1rem;
}

.roadmap-list li {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-secondary);
}

/* 7. Deal Terminal (Slide 13) */
.deal-terminal {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
}

.terminal-header {
    background: #222;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
}

.term-dot.red {
    background: #ff5f57;
}

.term-dot.yellow {
    background: #febc2e;
}

.term-dot.green {
    background: #28c840;
}

.fund-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.fund-item {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 1rem;
    text-align: center;
    color: var(--accent-secondary);
    transition: 0.3s;
}

.fund-item:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--accent-secondary);
    border-style: solid;
}

.contact-action {
    display: inline-block;
    margin-top: 2rem;
    background: #fff;
    color: #000;
    padding: 1rem 3rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.3s;
}

.contact-action:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 30px rgba(123, 97, 255, 0.5);
}

/* Shift Redesign (Slide 3) */
.shift-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    margin: auto 0;
    /* Fix: Safe Center */
}

.shift-card {
    flex: 1;
    padding: 3rem;
    border-radius: 16px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: all 0.5s ease;
}

/* Legacy Card Styling - "The Dying Monitor" */
.shift-card.legacy {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background:
        repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.4) 2px,
            rgba(0, 0, 0, 0.5) 3px);
    /* Scanlines */
    opacity: 0.8;
    /* Increased visibility */
    transform: perspective(1000px) rotateY(10deg);
    position: relative;
    overflow: hidden;
    animation: crt-flicker 4s infinite alternate;
    /* Instability */
}

/* CRT Flicker Animation */
@keyframes crt-flicker {
    0% {
        opacity: 0.8;
    }

    5% {
        opacity: 0.75;
    }

    10% {
        opacity: 0.8;
    }

    15% {
        opacity: 0.6;
    }

    /* Glitch */
    20% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.8;
    }
}

.shift-card.legacy::before {
    content: "NO SIGNAL";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 4rem;
    color: rgba(255, 0, 0, 0.05);
    /* Very watermark-like */
    font-weight: 900;
    pointer-events: none;
    white-space: nowrap;
}

.shift-card.legacy h4 {
    color: #888;
    font-size: 1.8rem;
    text-shadow: 2px 0px 0px rgba(255, 0, 0, 0.3), -2px 0px 0px rgba(0, 0, 255, 0.3);
    /* Chromatic aberration */
    margin-bottom: 2rem;
}

.shift-card.legacy .shift-list li {
    color: #666;
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.shift-card.legacy .icon {
    opacity: 0.5;
}

/* Future Card Styling - "The Living Hologram" */
.shift-card.future {
    border: 1px solid var(--accent-secondary);
    background: rgba(0, 20, 30, 0.4);
    /* Darker base for contrast */
    box-shadow:
        0 0 40px rgba(0, 240, 255, 0.1),
        inset 0 0 20px rgba(0, 240, 255, 0.05);
    transform: perspective(1000px) rotateY(-10deg) scale(1.05);
    z-index: 2;
    overflow: hidden;
    /* For scan sweep */
    position: relative;
    backdrop-filter: blur(10px);
}

/* Holographic Sweep */
.shift-card.future::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            transparent 40%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(0, 240, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 55%,
            transparent 60%);
    transform: rotate(30deg);
    animation: holog-sweep 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes holog-sweep {
    0% {
        transform: translateY(-100%) rotate(30deg);
    }

    100% {
        transform: translateY(100%) rotate(30deg);
    }
}

.shift-card.future h4 {
    color: #fff;
    font-size: 2.8rem;
    /* Larger */
    margin-bottom: 2rem;
    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 30px rgba(0, 240, 255, 0.4);
    position: relative;
    z-index: 2;
}

.shift-card.future .shift-list li {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shift-card.future .icon {
    color: var(--accent-secondary);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--accent-secondary));
}

/* Animated Arrow */
.shift-arrow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.8;
}

.arrow-shape {
    width: 20px;
    height: 20px;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-45deg);
    animation: arrow-pulse 1.5s infinite;
}

.arrow-shape.delay-1 {
    animation-delay: 0.2s;
    opacity: 0.7;
}

.arrow-shape.delay-2 {
    animation-delay: 0.4s;
    opacity: 0.4;
}

@keyframes arrow-pulse {
    0% {
        transform: rotate(-45deg) translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(-45deg) translate(10px, 10px);
        opacity: 0;
    }
}

.card-header-sm {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.1em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.red {
    background: #555;
}

.status-dot.green {
    background: #0f0;
    box-shadow: 0 0 5px #0f0;
}

@media (max-width: 1024px) {
    .shift-container {
        flex-direction: column;
        gap: 2rem;
    }

    .shift-arrow {
        transform: rotate(90deg);
    }

    .shift-card {
        width: 100%;
        transform: none !important;
        /* Remove 3D on mobile */
        height: auto;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {

    .glass-warning,
    .glass-panel,
    .holo-block {
        padding: 1.5rem;
    }

    .roadmap-timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .roadmap-timeline::before {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .roadmap-node {
        width: 100%;
        margin-left: 2rem;
    }

    .feature-matrix {
        grid-template-columns: 1fr;
    }
}

/* Slide 8: Market Opportunity - Tech Check List */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-secondary);
    font-weight: bold;
    font-family: var(--font-mono);
    background: rgba(0, 240, 255, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.check-list li:hover {
    color: #fff;
}

.check-list li:hover::before {
    background: var(--accent-secondary);
    color: #000;
    box-shadow: 0 0 10px var(--accent-secondary);
}

/* --- BUSINESS PLAN INTEGRATION STYLES --- */

/* Slide 2: Chain of Pain */
.chain-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    padding-left: 2rem;
    border-left: 2px dashed rgba(255, 87, 87, 0.3);
}

.chain-step {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 87, 87, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.chain-step::before {
    content: "●";
    color: #ff5757;
    position: absolute;
    left: -6px;
}

.pain-label {
    font-family: var(--font-mono);
    color: #ff5757;
    font-size: 0.8rem;
    text-transform: uppercase;
    background: rgba(255, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Slide 4: System vs System */
.sys-vs-sys {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.sys-card {
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
}

.sys-card.old {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.6;
}

.sys-card.new {
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(123, 97, 255, 0.1);
}

/* Slide 9: Unit Economics Hero */
/* Slide 9: Unit Economics Hero - "Obelisk vs Core" */
.unit-econ-hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6rem;
    height: 450px;
    margin: 3rem 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 30, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .unit-econ-hero {
        flex-direction: column !important;
        height: auto !important;
        gap: 2rem !important;
        padding: 2rem 1rem !important;
        align-items: center !important;
    }
}

/* Background grid for the chart */
.unit-econ-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.econ-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 200px;
    position: relative;
    z-index: 1;
}

.econ-bar {
    width: 100%;
    position: relative;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    /* Center text vertically */
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-display);
}

/* The "Obelisk" (Traditional) */
.econ-bar.traditional {
    height: 80%;
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 87, 87, 0.1),
            rgba(255, 87, 87, 0.1) 10px,
            rgba(255, 87, 87, 0.2) 10px,
            rgba(255, 87, 87, 0.2) 20px),
        linear-gradient(to top, rgba(50, 0, 0, 0.8), rgba(255, 87, 87, 0.4));
    border: 1px solid #ff5757;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.15);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* The "Core" (RecordStack) */
.econ-bar.agentic {
    height: auto;
    min-height: 60px;
    /* Specific height for the "Core" look */
    width: 100%;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-secondary);
    box-shadow:
        0 0 20px var(--accent-secondary),
        inset 0 0 20px rgba(0, 240, 255, 0.3);
    color: #fff;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* The internal "reactor" glow for agentic */
.econ-bar.agentic::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--accent-secondary);
}

.econ-val {
    position: absolute;
    font-size: 2.5rem;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.econ-bar.traditional .econ-val {
    top: -3.5rem;
    color: #ff5757;
}

.econ-bar.agentic .econ-val {
    position: relative;
    /* Inside the box */
    font-size: 2.5rem;
    color: #fff !important;
    text-shadow: 0 0 10px var(--accent-secondary);
    background: rgba(0, 0, 0, 0.5);
    padding: 0 0.5rem;
}

.econ-label {
    margin-top: 1.5rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
    opacity: 0.8;
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-transform: initial;
    color: #fff;
}

/* Slide 9: Mobile-specific fixes to improve stacking and readability */
@media (max-width: 480px) {
    .unit-econ-hero {
        padding: 1.25rem !important;
        gap: 1rem !important;
        margin: 2rem 0 !important;
        border-radius: 12px !important;
        align-items: center !important;
        text-align: center;
    }

    .unit-econ-hero>div:nth-child(2) {
        /* The "VS" element becomes smaller on narrow screens */
        font-size: 1.6rem !important;
        color: #fff !important;
        margin: 0.25rem 0;
    }

    .econ-bar-group {
        width: 92% !important;
        max-width: 360px !important;
        height: auto !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .econ-bar {
        width: 100% !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    /* Make the traditional obelisk visually constrained so it doesn't overflow */
    .econ-bar.traditional {
        height: 180px !important;
        min-height: 120px !important;
        max-height: 220px !important;
        box-shadow: 0 8px 30px rgba(255, 0, 0, 0.12);
    }

    .econ-bar.agentic {
        min-height: 56px !important;
        height: auto !important;
    }

    /* Move values into flow instead of absolutely positioned so they wrap nicely */
    .econ-val {
        position: static !important;
        font-size: 1.6rem !important;
        margin: 0.5rem 0 !important;
        z-index: 2 !important;
        text-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .econ-bar.traditional .econ-val {
        color: #ff8a8a !important;
    }

    .econ-bar.agentic .econ-val {
        color: var(--accent-secondary) !important;
    }

    /* Hide decorative thin glow line inside the agentic bar on very small screens */
    .econ-bar.agentic::after {
        display: none !important;
    }

    .econ-label {
        margin-top: 0.75rem !important;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
}

/* Additional safe-fit rules for very small devices to avoid vertical overflow */
@media (max-width: 480px) {

    /* Use a fixed hero height (viewport-based) so percent heights for bars work predictably */
    .unit-econ-hero {
        height: 48dvh !important;
        max-height: 48dvh !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        padding-top: 0.5rem !important;
    }

    .unit-econ-hero .econ-bar-group {
        height: 100% !important;
        width: 100% !important;
        padding-bottom: 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    /* Ensure the traditional (first) bar is visible and constrained */
    .unit-econ-hero .econ-bar-group:first-child {
        align-items: center !important;
    }

    /* Let the traditional bar use percentage height so it fills the chart area */
    .econ-bar.traditional {
        display: block !important;
        height: 80% !important;
        min-height: 120px !important;
        max-height: 90% !important;
        margin: 0.25rem 0 !important;
    }

    /* Reduce global slide padding so content has more room */
    .slide {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 1.25rem !important;
        padding-top: calc(6rem + env(safe-area-inset-top, 0)) !important;
    }

    /* Allow slide content to scroll within the slide without pushing past viewport */
    .slide-content {
        max-height: calc(100dvh - 6.5rem) !important;
        overflow-y: auto !important;
    }

    /* Ensure footer/navigation area stays visible (if present) */
    .slide-controls {
        flex-shrink: 0;
    }
}

/* Mobile: Fixes for Unit Economics bar rendering on narrow screens
   - disable clip-path which can cause rendering/painting issues on mobile browsers
   - give the traditional bar an explicit min-height so percent heights don't collapse
   - ensure overflow is visible on relevant containers so content isn't clipped
*/
@media (max-width: 480px) {
    .econ-bar.traditional {
        clip-path: none !important;
        height: auto !important;
        min-height: 140px !important;
        max-height: 220px !important;
        width: 100% !important;
        box-shadow: 0 8px 30px rgba(255, 0, 0, 0.12) !important;
        overflow: visible !important;
    }

    .unit-econ-hero,
    .unit-econ-hero .econ-bar-group {
        overflow: visible !important;
    }

    /* Keep slides scrollable */
    .slide {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .slide-content {
        overflow: visible;
    }

    /* Keep value text inline and visible inside the bar area */
    .econ-val {
        position: static !important;
        margin: 0.5rem 0 !important;
    }
}


/* --- HYPER-INDUSTRIAL REDESIGN --- */

/* 1. Global Texture & Aurora Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.15"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 0;
    opacity: 0.07;
}

body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(123, 97, 255, 0.08), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.05), transparent 40%);
    z-index: -1;
    animation: rotate-aurora 60s linear infinite;
}

@keyframes rotate-aurora {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 2. Industrial Interface Panels (Replacing 'Glass') */
.industrial-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    /* Sharper corners */
    padding: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.industrial-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.industrial-header::before {
    content: "/// SYSTEM_NODE_01";
    font-size: 0.7rem;
    opacity: 0.5;
}

.industrial-content {
    padding: 2.5rem;
}

/* 3. High-Contrast Typography */
.terminal-stat {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.9;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.terminal-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 2rem;
}

/* 4. Complex Grid for Slide 3 */
.split-terminal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Connected panels */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.terminal-pane {
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.terminal-pane.left {
    background: rgba(10, 10, 15, 0.8);
    border-right: 1px dashed rgba(255, 255, 255, 0.1);
}

.terminal-pane.right {
    background: radial-gradient(circle at top right, rgba(123, 97, 255, 0.15), rgba(0, 0, 0, 0));
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-dot.offline {
    background: #333;
    box-shadow: 0 0 0 2px #111;
}

.status-dot.online {
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
}

/* --- RESPONSIVENESS FIXES --- */

@media (max-width: 1100px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .split-terminal {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .terminal-pane {
        padding: 2rem;
        min-height: 300px;
    }


    .terminal-pane.left {
        border-right: none;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    }

    /* Insight Redesign (Slide 4) */
    .insight-grid {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
        width: 100%;
        max-width: 1100px;
        margin: auto auto;
        /* Fix: Safe Center */
    }

    .insight-card {
        border-radius: 12px;
        padding: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
        transition: all 0.3s ease;
    }

    .card-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .card-tag {
        font-family: var(--font-mono);
        font-size: 0.8rem;
        color: #888;
        margin-bottom: 2rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .card-list {
        list-style: none;
        padding: 0;
    }

    .card-list li {
        margin-bottom: 1rem;
        font-size: 1rem;
        opacity: 0.7;
        position: relative;
        padding-left: 1.5rem;
    }

    .card-list li::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #666;
    }

    /* Wrapper Card (Flat) */
    .insight-card.wrapper {
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.02);
    }

    .card-icon {
        font-family: var(--font-mono);
        font-size: 3rem;
        color: #444;
        margin-bottom: 2rem;
    }

    .cursor-blink {
        animation: blink 1s step-end infinite;
    }

    @keyframes blink {
        50% {
            opacity: 0;
        }
    }

    /* Workflow Card (Deep) */
    .insight-card.workflow {
        border: 1px solid var(--accent-color);
        background: radial-gradient(circle at 50% 0%, rgba(123, 97, 255, 0.15) 0%, rgba(0, 0, 0, 0.4) 80%);
        box-shadow: 0 0 30px rgba(123, 97, 255, 0.1);
        transform: scale(1.05);
    }

    .insight-card.workflow .card-title {
        color: #fff;
        text-shadow: 0 0 10px rgba(123, 97, 255, 0.5);
    }

    .insight-card.workflow .card-tag.highlight {
        color: var(--accent-secondary);
        text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
    }

    .insight-card.workflow .card-list li::before {
        color: var(--accent-secondary);
        content: "→";
    }

    /* Workflow Visual */
    .workflow-visual {
        height: 80px;
        margin-bottom: 2rem;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .node {
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
        position: absolute;
        box-shadow: 0 0 10px #fff;
    }

    .n1 {
        left: 20%;
        animation: node-pulse 2s infinite;
    }

    .n2 {
        left: 50%;
        top: 30%;
        animation: node-pulse 2s infinite 0.5s;
        background: var(--accent-secondary);
        box-shadow: 0 0 10px var(--accent-secondary);
    }

    .n3 {
        left: 80%;
        animation: node-pulse 2s infinite 1s;
    }

    .link {
        height: 2px;
        background: rgba(255, 255, 255, 0.2);
        position: absolute;
        top: 50%;
    }

    .l1 {
        left: 20%;
        width: 30%;
        transform: rotate(-20deg);
        transform-origin: left center;
    }

    .l2 {
        left: 50%;
        width: 30%;
        transform: rotate(20deg);
        transform-origin: left center;
    }

    @keyframes node-pulse {

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

        50% {
            transform: scale(1.5);
            opacity: 1;
        }
    }

    /* Engine Redesign (Slide 4) - World Class */
    .engine-grid {
        display: grid;
        grid-template-columns: 350px 1fr;
        gap: 0;
        width: 100%;
        max-width: 1200px;
        margin: auto auto;
        /* Fix: Safe Center */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        background: rgba(10, 10, 15, 0.5);
        overflow: hidden;
        height: 500px;
    }

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

    /* Global Responsive Scroll Fix */
    /* Allow scrolling on any slide if content overflows viewport height */
    .slide {
        overflow-y: auto;
        pointer-events: all;
        /* Ensure scrolling works */
    }

    .slide-content {
        min-height: 100%;
        /* Ensure full height */
        padding-bottom: 6rem;
        /* Space for scroll */
    }

}

/* Close @media (max-width: 1100px) */

/* ========================================
   AMBIENT AUDIO PLAYER
   ======================================== */

.audio-player {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.audio-player.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.audio-player:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* Visualizer */
.audio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
    padding: 0 0.25rem;
}

.viz-bar {
    width: 3px;
    height: 4px;
    background: linear-gradient(to top, var(--accent-secondary), var(--accent-color));
    border-radius: 2px;
    transition: height 0.1s ease;
}

.audio-player.playing .viz-bar {
    animation: none;
}

/* Play/Pause Toggle */
.audio-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    position: relative;
}

.audio-toggle:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.audio-toggle .play-icon,
.audio-toggle .pause-icon {
    position: absolute;
    transition: opacity 0.2s, transform 0.2s;
}

.audio-toggle .pause-icon {
    opacity: 0;
    transform: scale(0.8);
    font-size: 0.6rem;
    letter-spacing: 1px;
}

.audio-player.playing .audio-toggle .play-icon {
    opacity: 0;
    transform: scale(0.8);
}

.audio-player.playing .audio-toggle .pause-icon {
    opacity: 1;
    transform: scale(1);
}

/* Track Info */
.audio-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 60px;
}

.audio-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.track-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Track Navigation */
.audio-controls {
    display: flex;
    gap: 0.25rem;
}

.track-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.track-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Volume Slider */
.volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-secondary);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-secondary);
    cursor: pointer;
    border: none;
}

/* Autoplay Prompt */
.autoplay-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
}

.autoplay-prompt.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.prompt-content {
    text-align: center;
    padding: 3rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 320px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.autoplay-prompt.visible .prompt-content {
    transform: scale(1);
}

.prompt-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
    text-shadow: 0 0 20px var(--accent-secondary);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.prompt-content p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.prompt-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.prompt-btn:last-child {
    margin-bottom: 0;
}

.prompt-btn:not(.secondary) {
    background: var(--accent-secondary);
    color: #000;
}

.prompt-btn:not(.secondary):hover {
    background: #fff;
    box-shadow: 0 0 20px var(--accent-secondary);
}

.prompt-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.prompt-btn.secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Mobile Audio Player */
@media (max-width: 768px) {
    .audio-player {
        bottom: 80px; /* Above the mobile nav */
        right: 1rem;
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
        touch-action: manipulation;
    }

    .audio-info {
        display: none; /* Hide track info on mobile */
    }

    .volume-slider {
        width: 40px;
    }

    .audio-toggle {
        width: 32px;
        height: 32px;
    }

    /* Ensure slides remain scrollable */
    .slide {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .slide-content {
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8rem; /* Extra space for audio player */
    }
}

@media (max-width: 480px) {
    .audio-player {
        right: 0.75rem;
        bottom: 70px;
    }

    .audio-controls {
        display: none; /* Hide prev/next on very small screens */
    }

    .volume-slider {
        width: 30px;
    }

    .slide-content {
        padding-bottom: 10rem; /* More space on smaller screens */
    }
}

/* Fix for Mobile/Tablet Chart Rendering */
@media (max-width: 768px) {

    /* Ensure the traditional bar doesn't collapse when parent has height:auto */
    .econ-bar.traditional {
        height: auto !important;
        min-height: 150px !important;
        clip-path: none !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 8px 30px rgba(255, 0, 0, 0.12) !important;
    }

    /* Ensure the value is visible and responsive */
    .econ-bar.traditional .econ-val {
        position: static !important;
        margin: 0 !important;
        padding-bottom: 0.5rem;
        color: #ff8a8a !important;
    }

    .unit-econ-hero {
        align-items: center !important;
    }
}

/* Slide 7 (Proof of Concept) - add space for audio player clearance */
.slide[data-id="7"] .slide-content {
    padding-bottom: 8rem;
}

/* Hero slide (Slide 1) - better vertical centering at medium viewports */
@media (min-width: 769px) and (max-width: 1200px) {
    .slide.hero-cinematic {
        justify-content: center !important;
        padding-top: 2rem !important;
        padding-bottom: 6rem !important;
    }

    .slide.hero-cinematic .slide-content {
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-graphic-container {
        bottom: -50px;
        opacity: 0.5;
    }
}

/* Slide 13 (The Ask) - Very Small Screen Fixes */
@media (max-width: 480px) {
    /* Deal Terminal container - reduce padding and allow content to fit */
    .deal-terminal {
        padding: 0.75rem !important;
        max-width: 100% !important;
    }

    .deal-terminal .terminal-header {
        padding: 0.4rem 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    /* Reduce the SEED ROUND title size dramatically on small screens */
    .deal-terminal .brand-title {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.1 !important;
    }

    /* Reduce description text */
    .deal-terminal > p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    /* Use of Funds section - tighter spacing */
    .use-of-funds {
        margin: 1.5rem 0 !important;
    }

    .use-of-funds h4 {
        font-size: 0.75rem !important;
        padding-bottom: 0.4rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Fund grid - stack to single column on very small screens */
    .fund-grid-new {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        margin: 1rem 0 !important;
    }

    .fund-item {
        padding: 0.75rem !important;
        font-size: 0.85rem !important;
    }

    /* Invest button - smaller on mobile */
    .contact-action {
        margin-top: 1rem !important;
        padding: 0.75rem 2rem !important;
        font-size: 0.85rem !important;
    }

    /* Ensure slide 13 content can scroll if needed */
    .slide[data-id="13"] .slide-content {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6rem !important;
    }

    /* Slide 7 (Proof of Concept) - add space for audio player */
    .slide[data-id="7"] .slide-content {
        padding-bottom: 8rem !important;
    }
}