:root {
    --bg-color: #f3f4f6;
    /* Light grey/white */
    --accent-lime: #90EE90;
    --accent-pink: #FF6B6B;
    --accent-cyan: #058CD7;
    --accent-purple: #058CD7;
    --text-color: #000000;
    --border-thickness: 3px;
    --shadow-offset: 6px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow: hidden;
    /* Manage scroll via main */
    overflow-x: hidden;
    line-height: 1.45;
}

/* NAVIGATION */
/* NAVIGATION */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    border-bottom: var(--border-thickness) solid black;
    background: white;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1002;
    margin-right: 20px;
}

.progress-container {
    flex-grow: 1;
    margin: 0 20px;
    height: 10px;
    border: var(--border-thickness) solid black;
    background: white;
    max-width: 600px;
}

.progress-bar {
    height: 100%;
    background: var(--text-color);
    width: 20%;
    /* JS will update */
    transition: width 0.3s ease;
}

.slide-indicator {
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 20px;
    z-index: 1002;
}

/* MAIN CONTAINER (SCROLL SNAP) */
/* MAIN CONTAINER (SCROLL SNAP) */
.deck-container {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    padding-top: 0;
    /* Nav sits on top */
}

.slide {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    padding: 80px 40px 40px 40px;
    /* Added top padding for Nav */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: var(--border-thickness) solid black;
    position: relative;
    background: var(--bg-color);
    box-sizing: border-box;
}

.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.slide-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    background: black;
    color: white;
    display: inline-block;
    padding: 10px 20px;
    transform: rotate(-1deg);
    box-shadow: 4px 4px 0 var(--accent-lime);
}

/* SLIDE 1: INTRO */
.hero-header {
    text-align: center;
    margin-bottom: 60px;
}

.hero-header h1 {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 0.9;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px var(--accent-pink);
    margin-bottom: 10px;
}

.tagline {
    background: var(--accent-lime);
    display: inline-block;
    padding: 5px 15px;
    font-weight: bold;
    border: var(--border-thickness) solid black;
    box-shadow: 4px 4px 0 black;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.card {
    border: var(--border-thickness) solid black;
    padding: 30px;
    background: white;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 black;
}

.highlight-card {
    background: white;
    border: var(--border-thickness) solid black;
}

.highlight-card h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-decoration-color: var(--accent-cyan);
}

.lead-text,
.mini-card p,
.step-text,
.win-card p,
.legal-note,
.subtitle {
    overflow-wrap: anywhere;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.mini-card {
    border: var(--border-thickness) solid black;
    padding: 15px;
    background: white;
    transition: transform 0.2s;
}

.mini-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 black;
}

.red-shadow {
    box-shadow: 4px 4px 0 #FF6B6B;
}

.section-badge {
    background: black;
    color: white;
    display: inline-block;
    padding: 5px 10px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* SLIDE 2: SOLUTION */
.row-layout {
    display: flex;
    gap: 40px;
}

.column {
    flex: 1;
}

.brutalist-box {
    border: var(--border-thickness) solid black;
    padding: 30px;
    background: white;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 black;
}

.step-list {
    list-style: none;
    margin-top: 20px;
}

.step-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.step-num {
    background: black;
    color: white;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 40px;
    font-weight: bold;
    line-height: 1;
    margin-right: 15px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    /* Mix shape for contrast */
}

.win-card {
    border: var(--border-thickness) solid black;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 black;
}

.cyan-bg {
    background: var(--accent-cyan);
}

.lime-bg {
    background: var(--accent-lime);
}

.magenta-bg {
    background: var(--accent-pink);
}

.win-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* SLIDE 3: TRACTION */
.traffic-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.stats-marquee-container {
    width: 100%;
    background: black;
    color: var(--accent-lime);
    border-top: var(--border-thickness) solid black;
    border-bottom: var(--border-thickness) solid black;
    overflow: hidden;
    white-space: nowrap;
    white-space: nowrap;
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 2rem;
}

/* Animation setup needs to be duplicated content or JS, simple fallback */
/* Animation setup needs to be duplicated content or JS, simple fallback */
.stats-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

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

.roadmap-box {
    width: 100%;
    max-width: 800px;
    border: var(--border-thickness) solid black;
    background: white;
    background: white;
    padding: 15px;
    box-shadow: 6px 6px 0 var(--accent-purple);
}

.roadmap-list li {
    display: flex;
    align-items: center;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid black;
    font-size: 1.2rem;
}

.roadmap-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.roadmap-list li:last-child {
    border-bottom: none;
}

.status-icon {
    margin-right: 15px;
    font-weight: bold;
    font-size: 1.2rem;
}

.status-badge {
    margin-left: auto;
    font-size: 0.8rem;
    background: black;
    color: white;
    padding: 2px 8px;
}

.blink {
    animation: blinker 1s linear infinite;
    background: var(--accent-pink);
    color: black;
}

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

/* SLIDE 4: ROI */
.dividend-model-card {
    text-align: center;
    margin-bottom: 10px;
}

.revenue-flow {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: bold;
}

.flow-step {
    border: var(--border-thickness) solid black;
    padding: 10px 20px;
    background: white;
    box-shadow: 4px 4px 0 black;
}

.brutal-table {
    width: 100%;
    border-collapse: collapse;
    border: var(--border-thickness) solid black;
    background: white;
    font-family: var(--font-body);
}

.brutal-table th,
.brutal-table td {
    border: 2px solid black;
    padding: 10px;
    text-align: left;
}

.brutal-table th {
    background: black;
    color: white;
    text-transform: uppercase;
}

.highlight-cell {
    background: var(--accent-lime);
    font-weight: bold;
}

.summary-row {
    background: #eee;
    font-weight: bold;
    font-size: 1.2rem;
}

.final-row {
    background: var(--accent-pink);
    font-weight: bold;
    font-size: 1.4rem;
}



.slide-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-notes-col {
    text-align: left;
    max-width: 60%;
}

.legal-note {
    font-size: 0.8rem;
    margin: 5px 0;
    font-style: italic;
}

.calculator-btn {
    display: inline-block;
    padding: 10px 20px;
    background: black;
    color: white;
    font-family: var(--font-heading);
    font-weight: bold;
    text-decoration: none;
    border: 3px solid black;
    box-shadow: 4px 4px 0 var(--accent-lime);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.1s;
    line-height: normal;
    /* Fix alignment */
}

.calculator-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--accent-pink);
}

/* SLIDE 5: SUMMARY */
.center-focus {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.summary-box {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.summary-box h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
}

.dense td {
    padding: 10px;
}

.cta-block {
    margin-top: 20px;
    padding: 20px;
    border: var(--border-thickness) solid black;
    background: var(--accent-lime);
    box-shadow: 8px 8px 0 black;
}

.brutal-btn {
    background: black;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 15px 40px;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 4px 4px 0 white;
    /* Invert shadow on dark btn */
}

.brutal-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 white;
}

.cta-arrow {
    display: inline-block;
    margin-left: 0.3em;
    line-height: 1;
    font-family: var(--font-body);
}

/* UTILS */
.slide-footer {
    opacity: 0.5;
    font-size: 0.8rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

/* RESPONSIVE */
.glitch-text {
    position: relative;
    color: black;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    /* Matches text background */
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #FF6B6B;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #058CD7;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(11px, 9999px, 83px, 0);
    }

    10% {
        clip: rect(78px, 9999px, 56px, 0);
    }

    20% {
        clip: rect(4px, 9999px, 13px, 0);
    }

    30% {
        clip: rect(89px, 9999px, 24px, 0);
    }

    40% {
        clip: rect(9px, 9999px, 97px, 0);
    }

    50% {
        clip: rect(13px, 9999px, 34px, 0);
    }

    60% {
        clip: rect(69px, 9999px, 39px, 0);
    }

    70% {
        clip: rect(48px, 9999px, 78px, 0);
    }

    80% {
        clip: rect(87px, 9999px, 19px, 0);
    }

    90% {
        clip: rect(32px, 9999px, 63px, 0);
    }

    100% {
        clip: rect(12px, 9999px, 45px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 80px, 0);
    }
}

.validation-names {
    font-size: 1.5rem;
    font-weight: bold;
    border: var(--border-thickness) solid black;
    padding: 10px 20px;
    background: white;
    box-shadow: 4px 4px 0 black;
    transform: rotate(1deg);
    display: inline-block;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .slide {
        padding: 88px 24px 32px 24px;
        justify-content: flex-start;
    }

    .grid-layout,
    .row-layout {
        gap: 24px;
    }

    .hero-header {
        margin-bottom: 40px;
    }

    .hero-header h1 {
        font-size: 4.5rem;
    }

    .slide-header h2 {
        font-size: 2.3rem;
        margin-bottom: 28px;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        height: auto;
        min-height: 72px;
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        font-size: 1.15rem;
        margin-right: 0;
    }

    .progress-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .slide-indicator {
        margin-left: auto;
        font-size: 0.85rem;
    }

    .grid-layout,
    .row-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .step-list li {
        align-items: flex-start;
    }

    .step-num {
        align-self: flex-start;
    }

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

    .hero-header h1 {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }

    .slide {
        padding: 112px 16px 28px 16px;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        justify-content: flex-start;
    }

    .deck-container {
        scroll-snap-type: none;
        /* Disable snap on mobile if content overflows */
    }

    .slide-header h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
        padding: 8px 14px;
        box-shadow: 3px 3px 0 var(--accent-lime);
    }

    .tagline {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .highlight-card h2 {
        font-size: 1.8rem;
    }

    .card,
    .brutalist-box,
    .roadmap-box,
    .win-card,
    .cta-block {
        padding: 18px 16px;
        box-shadow: 4px 4px 0 black;
    }

    .stats-marquee-container {
        font-size: 1.1rem;
    }

    .validation-names {
        font-size: 1rem;
        padding: 10px 14px;
    }

    .roadmap-list li {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px;
        font-size: 1rem;
    }

    .status-badge {
        margin-left: 0;
    }

    .revenue-flow {
        justify-content: flex-start;
        gap: 10px;
        font-size: 1rem;
    }

    .brutal-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .brutal-table th,
    .brutal-table td {
        padding: 10px 12px;
    }

    .slide-footer-row {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-notes-col {
        max-width: none;
    }

    .calculator-btn,
    .brutal-btn {
        width: 100%;
    }

    .summary-box h2 {
        font-size: 2rem;
    }

    .center-focus {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        padding: 12px;
    }

    .logo {
        font-size: 1rem;
    }

    .slide-indicator {
        font-size: 0.75rem;
    }

    .slide {
        padding: 110px 12px 24px 12px;
    }

    .hero-header {
        margin-bottom: 28px;
    }

    .card,
    .brutalist-box,
    .roadmap-box,
    .win-card,
    .cta-block {
        padding: 16px 14px;
    }

    .summary-row {
        font-size: 1.05rem;
    }

    .final-row {
        font-size: 1.1rem;
    }

    .legal-note {
        font-size: 0.75rem;
    }

    .brutal-btn {
        font-size: 1.15rem;
        padding: 14px 24px;
    }
}

@media print {
    @page {
        size: landscape;
        margin: 0;
    }

    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .nav-bar,
    .calculator-btn,
    .brutal-btn {
        display: none !important;
    }

    /* Reset container scrolling/sizing for print */
    .deck-container {
        height: auto;
        overflow: visible;
        display: block;
    }

    /* Ensure each slide is a distinct page */
    .slide {
        height: 100vh;
        width: 100vw;
        break-after: always;
        page-break-after: always;
        border-bottom: none;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 40px;
    }

    .slide:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}
