/* ==========================================================================
   Bossint.ai Pitch Deck Style System (Style Ref 2 Redesign)
   ========================================================================== */

:root {
    --font-sans: 'Fira Code', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;

    /* Theme Colors (Phosphor Green Default) */
    --clr-bg-black: #000000;
    --clr-bg-deep: #000000;
    --clr-bg-card: #080d08;
    --clr-border: rgba(57, 255, 20, 0.15);
    --clr-border-active: rgba(57, 255, 20, 0.4);
    --clr-text-main: #c4d9c4;
    --clr-text-muted: #ffffff;
    --clr-accent: #39ff14;
    --clr-accent-dim: #22c55e;
    --clr-glow: rgba(57, 255, 20, 0.25);
    --clr-selection: rgba(57, 255, 20, 0.1);

    /* Animation Timings */
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s ease;
}

/* Theme Overrides */
body.theme-amber {
    --clr-bg-deep: #000000;
    --clr-bg-card: #0e0a06;
    --clr-border: rgba(255, 176, 0, 0.15);
    --clr-border-active: rgba(255, 176, 0, 0.4);
    --clr-text-main: #e0cca6;
    --clr-text-muted: #ffffff;
    --clr-accent: #ffb000;
    --clr-accent-dim: #f59e0b;
    --clr-glow: rgba(255, 176, 0, 0.25);
    --clr-selection: rgba(255, 176, 0, 0.1);
}

body.theme-cyan {
    --clr-bg-deep: #000000;
    --clr-bg-card: #060c0e;
    --clr-border: rgba(0, 240, 255, 0.15);
    --clr-border-active: rgba(0, 240, 255, 0.4);
    --clr-text-main: #a6cde0;
    --clr-text-muted: #ffffff;
    --clr-accent: #00f0ff;
    --clr-accent-dim: #06b6d4;
    --clr-glow: rgba(0, 240, 255, 0.25);
    --clr-selection: rgba(0, 240, 255, 0.1);
}

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

body {
    background-color: var(--clr-bg-black);
    color: var(--clr-text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CRT Screen Overlays */
.crt-scanlines {
    display: none; /* Disabled global overlay to keep body text crisp */
}

.crt-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(0, 0, 0, 0.9);
    z-index: 10000;
    pointer-events: none;
}

/* Matrix Background Grid */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(57, 255, 20, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(57, 255, 20, 0.012) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

body.theme-amber .background-grid {
    background-image: 
        linear-gradient(to right, rgba(255, 176, 0, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 176, 0, 0.012) 1px, transparent 1px);
}

body.theme-cyan .background-grid {
    background-image: 
        linear-gradient(to right, rgba(0, 240, 255, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.012) 1px, transparent 1px);
}

/* Presentation Main Frame */
.deck-container {
    display: flex;
    flex-direction: column;
    width: 98vw;
    height: 96vh;
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-deep);
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    position: relative;
    border-radius: 6px;
}


/* Workspace wrapper */
.slide-workspace {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Spacious slide layouts */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    padding: 50px 70px;
    display: flex;
    flex-direction: column;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    position: relative;
    padding-top: 110px;
    padding-left: 50px;
    padding-right: 50px;
}

/* Text & Title scales */
.slide-meta {
    font-size: 13px;
    color: var(--clr-text-muted);
    letter-spacing: 1.5px;
    position: absolute;
    top: 30px;
    left: 50px;
    z-index: 20;
}

.slide-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--clr-accent);
    text-shadow: 0 0 12px var(--clr-glow);
    text-transform: uppercase;
    position: absolute;
    top: 52px;
    left: 50px;
    z-index: 20;
    margin-bottom: 0;
}

.slide-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* Typography styles */
.font-mono {
    font-family: var(--font-mono);
}

.text-highlight {
    color: var(--clr-accent) !important;
    text-shadow: 0 0 8px var(--clr-glow);
}

.text-muted {
    color: var(--clr-text-muted) !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-warning {
    color: #f59e0b !important;
}

/* SLIDE 1: Cover Slide styling (Style Ref 2 clone) */
.cover-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.cover-top {
    font-size: 16px;
    color: var(--clr-text-muted);
}

.cover-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -120px;
}

.cover-center .logo-image {
    max-width: 600px;
    height: auto;
    max-height: 96px;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 0 15px var(--clr-glow));
}
.perspective-grid-box .tagline-text {
    position: absolute;
    top: 5.7%;
    left: 50%;
    transform: translate(-50%, -100%);
    margin-bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--clr-text-main);
    letter-spacing: 6px;
}

/* Dotted perspective grid */
.perspective-grid-box {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 800 / 350;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}

.perspective-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.grid-line {
    stroke: var(--clr-border);
    stroke-width: 1;
}

.grid-line.horizontal {
    stroke-width: 0.75;
}

.grid-line.dashed {
    stroke-dasharray: 4 4;
}

.beam-line {
    stroke: var(--clr-accent);
    stroke-width: 1.5;
    stroke-dasharray: 2 4;
}

.beam-line.secondary {
    stroke: var(--clr-text-muted);
    stroke-width: 0.75;
    stroke-dasharray: 2 6;
}

.center-node-box {
    fill: var(--clr-bg-black);
    stroke: var(--clr-accent);
    stroke-width: 1.5;
}

.center-node-text {
    fill: var(--clr-accent);
    font-size: 12px;
    font-weight: bold;
    text-anchor: middle;
}

/* 4 columns bottom layout from style ref 2 */
.cover-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--clr-border);
    padding-top: 25px;
    margin-bottom: 10px;
}

.pillar {
    padding: 0 20px;
    border-right: 1px solid var(--clr-border);
}

.pillar:last-child {
    border-right: none;
}

.pillar-symbol {
    color: var(--clr-accent);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.pillar-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.pillar-desc {
    font-size: 11px;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

.cover-tagline {
    font-size: 15px;
    color: var(--clr-text-muted);
    letter-spacing: 2px;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    padding-top: 15px;
}

/* SLIDE 2: The Problem Layout */
.problem-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    flex: 1;
    align-items: stretch;
}

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

.problem-card {
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--clr-border);
    background-color: var(--clr-bg-card);
    padding: 18px 24px;
    border-radius: 4px;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.problem-card.warn-card {
    border-left: 3px solid #f59e0b;
}

.problem-card.danger-card {
    border-left: 3px solid #ef4444;
}

.problem-card:hover {
    border-color: var(--clr-border-active);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-num {
    color: var(--clr-accent);
    font-size: 13px;
}

.card-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid currentColor;
    letter-spacing: 0.5px;
}

.badge-warning {
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.05);
}

.badge-danger {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--clr-text-main);
}

.problem-card p {
    font-size: 13px;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

.visual-terminal-card {
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-black);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    height: 36px;
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 11px;
    color: var(--clr-text-muted);
}

.terminal-body {
    flex: 1;
    padding: 20px;
    font-size: 12px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

/* SLIDE 3: The Solution Layout */
.solution-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
    flex: 1;
}

.solution-lead-box {
    border-left: 3px solid var(--clr-accent);
    padding-left: 30px;
    max-width: 900px;
}

.solution-lead-text {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--clr-text-main);
}

.solution-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--clr-border);
    padding-top: 40px;
}

.sol-col {
    padding: 0 25px;
    border-right: 1px solid var(--clr-border);
}

.sol-col:last-child {
    border-right: none;
}

.sol-col-num {
    color: var(--clr-accent);
    font-size: 14px;
    margin-bottom: 10px;
}

.sol-col h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 10px;
}

.sol-col p {
    font-size: 13px;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

/* SLIDE 4: Core Capabilities Layout */
.capabilities-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    flex: 1;
    align-items: center;
}

.capabilities-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.cap-pillar {
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-card);
    padding: 24px;
    border-radius: 4px;
}

.cap-pillar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cap-sym {
    color: var(--clr-accent);
    font-size: 18px;
    font-weight: bold;
}

.cap-pillar h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cap-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
    color: var(--clr-text-muted);
}

.cap-list li {
    position: relative;
    padding-left: 12px;
}

.cap-list li::before {
    content: "▫";
    position: absolute;
    left: 0;
    color: var(--clr-accent);
}

.capabilities-terminal {
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-black);
    border-radius: 4px;
    height: 350px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.capabilities-terminal .terminal-body {
    font-size: 11px;
    line-height: 1.5;
}

.terminal-controls {
    display: flex;
    border-top: 1px solid var(--clr-border);
    background-color: rgba(0, 0, 0, 0.4);
}

.sim-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid var(--clr-border);
    color: var(--clr-accent);
    padding: 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    transition: var(--transition-fast);
}

.sim-btn:last-child {
    border-right: none;
}

.sim-btn:hover {
    background-color: var(--clr-selection);
}

/* SLIDE 5: Product Architecture Layout */
.architecture-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    flex: 1;
    align-items: center;
}

.architecture-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.arch-card {
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-card);
    padding: 24px;
    border-radius: 4px;
}

.arch-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.arch-card p {
    font-size: 14px;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

.architecture-pipeline {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--clr-border);
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pipeline-row {
    width: 100%;
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-black);
    padding: 15px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pipeline-row.active {
    border-color: var(--clr-accent);
    box-shadow: 0 0 12px var(--clr-glow);
}

.row-label {
    color: var(--clr-accent);
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.row-val {
    font-size: 12px;
    color: var(--clr-text-main);
}

.pipeline-divider {
    color: var(--clr-text-muted);
    font-size: 18px;
}

/* SLIDE 6: Market Opportunity Layout */
.market-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

.market-pillars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.market-value-card {
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-card);
    padding: 24px 28px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    max-height: 30%;
}

.market-val {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.market-label {
    font-size: 11px;
    color: var(--clr-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.market-val .market-label {
    font-size: 16px;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 0;
}

.market-value-card p {
    font-size: 12.5px;
    color: var(--clr-text-main);
    line-height: 1.4;
    margin-bottom: 10px;
}.market-table-container {
    border: 1px solid var(--clr-border);
    background-color: rgba(8, 13, 8, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 6px;
    padding: 24px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(57, 255, 20, 0.02);
    transition: border-color var(--transition-medium);
}

body.theme-amber .market-table-container {
    background-color: rgba(14, 10, 6, 0.7);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 176, 0, 0.02);
}

body.theme-cyan .market-table-container {
    background-color: rgba(6, 12, 14, 0.7);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.02);
}

.market-table-container:hover {
    border-color: var(--clr-border-active);
}

.table-header {
    font-size: 13px;
    color: var(--clr-text-muted);
    font-weight: 700;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 14px;
    margin-bottom: 6px;
}

.market-table-wrapper {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    margin-top: 6px;
}

/* Custom scrollbar for table wrapper */
.market-table-wrapper::-webkit-scrollbar {
    width: 4px;
}
.market-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.market-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: 2px;
}
.market-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--clr-accent);
}

.market-proj-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    text-align: left;
}

.market-proj-table th {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--clr-text-muted);
    letter-spacing: 1.2px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--clr-border);
    font-weight: 700;
}

.market-proj-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(57, 255, 20, 0.04);
    vertical-align: middle;
}

body.theme-amber .market-proj-table td {
    border-bottom-color: rgba(255, 176, 0, 0.04);
}

body.theme-cyan .market-proj-table td {
    border-bottom-color: rgba(0, 240, 255, 0.04);
}

.market-proj-table tbody tr {
    opacity: 0;
    transform: translateX(12px);
    border-left: 3px solid transparent;
    transition: transform var(--transition-medium), background-color var(--transition-fast), border-left-color var(--transition-fast);
}

.slide.active .market-proj-table tbody tr {
    animation: slideInTableRow 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--row-index) * 0.12s + 0.3s);
}

@keyframes slideInTableRow {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.market-proj-table tbody tr:hover {
    background-color: rgba(57, 255, 20, 0.03);
    border-left-color: var(--clr-accent);
}

body.theme-amber .market-proj-table tbody tr:hover {
    background-color: rgba(255, 176, 0, 0.03);
}

body.theme-cyan .market-proj-table tbody tr:hover {
    background-color: rgba(0, 240, 255, 0.03);
}

.year-col {
    width: 70px;
    font-weight: 700;
    font-size: 16px;
    color: var(--clr-text-main);
}

.tam-col {
    width: 110px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.2px;
}

.driver-col {
    color: var(--clr-text-main);
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.45;
}

.growth-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--clr-border-active);
    background-color: rgba(57, 255, 20, 0.06);
    color: var(--clr-accent);
    text-shadow: 0 0 6px var(--clr-glow);
}

.growth-badge.base {
    color: var(--clr-text-muted);
    border-color: var(--clr-border);
    background-color: rgba(255, 255, 255, 0.02);
    text-shadow: none;
}

.table-footer {
    border-top: 1px dashed var(--clr-border);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--clr-text-muted);
}

.table-footer a {
    color: var(--clr-text-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--clr-text-muted);
    transition: color var(--transition-fast), border-bottom-color var(--transition-fast);
}

.table-footer a:hover {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
}

.table-quote-container {
    margin-top: 15px;
    padding: 18px 22px;
    border: 1px dashed rgba(57, 255, 20, 0.2);
    border-radius: 4px;
    background-color: rgba(57, 255, 20, 0.01);
    position: relative;
    transition: border-color var(--transition-medium);
}

body.theme-amber .table-quote-container {
    border-color: rgba(255, 176, 0, 0.2);
    background-color: rgba(255, 176, 0, 0.01);
}

body.theme-cyan .table-quote-container {
    border-color: rgba(0, 240, 255, 0.2);
    background-color: rgba(0, 240, 255, 0.01);
}

.table-quote {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 500;
    color: var(--clr-text-main);
    letter-spacing: -0.2px;
    font-family: var(--font-sans);
    margin-bottom: 0;
    text-transform: none;
}

.table-quote-author {
    font-size: 12px;
    color: var(--clr-accent);
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    margin-left: 14px;
    text-shadow: 0 0 6px var(--clr-glow);
}

/* SLIDE 7: Business Model Layout */
.business-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    flex: 1;
}

.business-lead {
    font-size: 16px;
    color: var(--clr-accent);
    letter-spacing: 1px;
    border-left: 2px solid var(--clr-accent);
    padding-left: 15px;
}

.pricing-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.price-column {
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-card);
    padding: 25px 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition-medium);
}

.price-column.active {
    border-color: var(--clr-accent);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.05);
}

body.theme-amber .price-column.active {
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.05);
}

body.theme-cyan .price-column.active {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.price-header {
    font-size: 11px;
    color: var(--clr-text-muted);
    letter-spacing: 0.5px;
    font-weight: bold;
}

.price-column.active .price-header {
    color: var(--clr-accent);
}

.price-val {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.price-val span {
    font-size: 12px;
    color: var(--clr-text-muted);
}

.price-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11.5px;
    color: var(--clr-text-main);
}

.price-list li {
    position: relative;
    padding-left: 10px;
}

.price-list li::before {
    content: "▫";
    position: absolute;
    left: 0;
    color: var(--clr-border-active);
}

.business-bottom {
    border: 1px dashed var(--clr-border);
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: var(--clr-text-muted);
    background-color: rgba(0, 0, 0, 0.2);
}

/* SLIDE 8: Competitive Matrix Layout */
.matrix-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    justify-content: center;
    width: 100%;
}

.matrix-desc-text {
    font-size: 20px;
    color: var(--clr-text-main);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.matrix-table th, .matrix-table td {
    border: 1px solid var(--clr-border);
    padding: 20px 24px;
    text-align: left;
}

.matrix-table th:first-child, .matrix-table td:first-child {
    width: 36%;
}

.matrix-table th:not(:first-child), .matrix-table td:not(:first-child) {
    width: 16%;
    text-align: center;
    font-size: 13px;
}

.matrix-table th {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--clr-text-main);
    font-weight: bold;
}

.matrix-table th.active-col {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background-color: rgba(57, 255, 20, 0.02);
}

.matrix-table td.text-highlight {
    font-weight: bold;
}

.matrix-detail {
    font-size: 9.5px;
    font-weight: 500;
    opacity: 0.65;
    display: block;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

#slide-9 .slide-meta {
    color: var(--clr-text-main);
}

#slide-9 .matrix-detail {
    opacity: 1;
}

/* SLIDE 8B: Reimagined Competitive Landscape (Radar Quadrant) */
.radar-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 40px;
    flex: 1;
    align-items: center;
    width: 100%;
}

.moat-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.moat-header {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.moat-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.moat-card {
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-card);
    padding: 20px;
    border-radius: 4px;
    transition: var(--transition-medium);
    border-left: 3px solid var(--clr-border);
}

.moat-card:hover {
    border-color: var(--clr-border-active);
    border-left-color: var(--clr-accent);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.05);
}

.moat-card-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.moat-card-desc {
    font-size: 11.5px;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

/* Radar Container & Grid */
.radar-panel {
    position: relative;
    aspect-ratio: 1.25 / 1;
    border: 1px solid var(--clr-border);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    height: 460px;
    width: 100%;
    overflow: visible;
}

/* Axis lines */
.radar-grid-vertical {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    border-left: 1px dashed var(--clr-border);
    pointer-events: none;
}

.radar-grid-horizontal {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    border-top: 1px dashed var(--clr-border);
    pointer-events: none;
}

/* Axis Labels */
.radar-axis-y {
    position: absolute;
    left: 50%;
    top: -15px;
    bottom: -15px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 5;
}

.axis-label-top, .axis-label-bottom {
    background-color: var(--clr-bg-black);
    padding: 2px 6px;
}

.radar-axis-x {
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 5;
}

.axis-label-left, .axis-label-right {
    background-color: var(--clr-bg-black);
    padding: 2px 6px;
}

/* Quadrant text indicators */
.quad-label {
    position: absolute;
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 1.5px;
    pointer-events: none;
}

.q-top-left { top: 20px; left: 20px; }
.q-top-right { top: 20px; right: 20px; text-shadow: 0 0 10px rgba(57, 255, 20, 0.15); }
.q-bottom-left { bottom: 20px; left: 20px; }
.q-bottom-right { bottom: 20px; right: 20px; }

/* Nodes positioning */
.radar-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: opacity var(--transition-medium);
}

.node-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--clr-border-active);
    border: 1px solid var(--clr-bg-black);
    margin-bottom: 6px;
    transition: var(--transition-fast);
}

.radar-node:hover .node-dot {
    transform: scale(1.3);
    background-color: var(--clr-accent);
    box-shadow: 0 0 8px var(--clr-glow);
}

.node-text {
    font-size: 10px;
    color: var(--clr-text-muted);
    white-space: nowrap;
    text-align: center;
    pointer-events: none;
    transition: var(--transition-fast);
}

.radar-node:hover .node-text {
    color: var(--clr-text-main);
}

/* Bossint Node Active Pulsing */
.radar-node.node-bossint .node-dot {
    background-color: var(--clr-accent);
    box-shadow: 0 0 10px var(--clr-glow);
    width: 12px;
    height: 12px;
}

.node-pulse {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--clr-accent);
    animation: nodePulse 2s infinite ease-out;
    pointer-events: none;
}

@keyframes nodePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

.radar-node.node-bossint .node-text {
    color: var(--clr-accent);
    font-weight: 700;
    text-shadow: 0 0 8px var(--clr-glow);
}

/* Sibling focus dimming effect */
.radar-panel:has(.radar-node:hover) .radar-node:not(:hover) {
    opacity: 0.25;
}

/* Tooltips */
.node-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    background-color: #0b0f0b;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    padding: 12px 14px;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-medium), transform var(--transition-medium), visibility var(--transition-medium);
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    z-index: 50;
    text-align: left;
}

.radar-node:hover .node-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-header {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
    border-bottom: 1px dashed var(--clr-border);
    padding-bottom: 4px;
}

.tooltip-body {
    font-size: 10px;
    color: var(--clr-text-main);
    line-height: 1.4;
}

/* Theme overrides for tooltips */
body.theme-amber .node-tooltip {
    background-color: #120e0b;
}

body.theme-cyan .node-tooltip {
    background-color: #0b0f12;
}

/* Responsive Styles for Radar */
@media (max-height: 900px) {
    .radar-layout {
        gap: 25px;
    }
    .radar-panel {
        height: 360px;
    }
    .moat-cards {
        gap: 12px;
    }
    .moat-card {
        padding: 14px 16px;
    }
    .moat-card-title {
        font-size: 11px;
    }
    .moat-card-desc {
        font-size: 10.5px;
    }
    .node-text {
        font-size: 9px;
    }
    .quad-label {
        font-size: 9px;
    }
}

/* SLIDE 9: Ask & Roadmap Layout */
#slide-10 .slide-content {
    padding-top: 110px;
}

.ask-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.65fr;
    gap: 40px;
    flex: 1;
    align-items: stretch;
}

.ask-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-self: center;
}

.ask-box {
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-card);
    padding: 30px;
    border-radius: 4px;
}

.ask-heading {
    font-size: 32px;
    font-weight: 800;
}

.ask-sub-label {
    font-size: 13px;
    color: var(--clr-text-muted);
    margin-bottom: 18px;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 10px;
}

.allocations {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.alloc-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-wrap {
    height: 8px;
    border: 1px solid var(--clr-border);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--clr-accent);
    box-shadow: 0 0 6px var(--clr-glow);
    width: 0;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .progress-bar-fill {
    width: var(--fill-width);
}

.slide.active .allocations .alloc-row:nth-child(1) .progress-bar-fill { transition-delay: 0.15s; }
.slide.active .allocations .alloc-row:nth-child(2) .progress-bar-fill { transition-delay: 0.3s; }
.slide.active .allocations .alloc-row:nth-child(3) .progress-bar-fill { transition-delay: 0.45s; }
.slide.active .allocations .alloc-row:nth-child(4) .progress-bar-fill { transition-delay: 0.6s; }

.contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px dashed var(--clr-border);
    padding: 20px;
    border-radius: 4px;
    font-size: 13px;
    background-color: rgba(0, 0, 0, 0.2);
}

.roadmap {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: calc(100vh - 270px);
    align-self: center;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: none;
}

.roadmap::-webkit-scrollbar {
    display: none;
}

.roadmap-heading {
    font-size: 16px;
    color: var(--clr-text-muted);
    letter-spacing: 2px;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 8px;
    position: sticky;
    top: 0;
    background-color: var(--clr-bg-black);
    z-index: 10;
    margin-bottom: 10px;
}

.timeline-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.timeline-images img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--clr-border);
    transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.timeline-images img:hover {
    transform: scale(1.04);
    border-color: var(--clr-accent);
    box-shadow: 0 0 15px var(--clr-glow);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 10px 0;
}

.timeline-track {
    position: absolute;
    left: 16px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: rgba(57, 255, 20, 0.08);
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background: linear-gradient(to bottom, var(--clr-accent) 0%, var(--clr-accent) 45%, rgba(57, 255, 20, 0.5) 75%, rgba(57, 255, 20, 0.15) 100%);
    box-shadow: 0 0 10px var(--clr-glow);
    border-radius: 9999px;
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 45px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.timeline-left {
    display: flex;
    align-items: flex-start;
    position: relative;
    width: 100%;
    min-height: 30px;
    height: auto;
    padding-top: 5px;
}

.timeline-dot-wrapper {
    position: absolute;
    left: 8px;
    top: 6px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--clr-bg-black);
    border: 2px solid rgba(57, 255, 20, 0.15);
    position: relative;
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.timeline-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background-color: rgba(57, 255, 20, 0.15);
    transition: background-color var(--transition-medium), transform var(--transition-medium);
}

.step-date {
    padding-left: 28px;
    color: rgba(57, 255, 20, 0.15);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    transition: color var(--transition-medium);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.step-date-sub {
    font-size: 13px;
    font-weight: 800;
    color: var(--clr-accent);
    display: block;
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px var(--clr-glow);
}

.timeline-right {
    width: 100%;
}

/* Active states based on scroll position */
.timeline-step.active-step:nth-child(2) .timeline-dot {
    border-color: var(--clr-accent);
    box-shadow: 0 0 10px var(--clr-glow), 0 0 20px var(--clr-glow);
}
.timeline-step.active-step:nth-child(2) .timeline-dot::after {
    background-color: var(--clr-accent);
    transform: scale(1.15);
}
.timeline-step.active-step:nth-child(2) .step-date {
    color: var(--clr-accent);
    text-shadow: 0 0 8px var(--clr-glow);
}

.timeline-step.active-step:nth-child(3) .timeline-dot {
    border-color: var(--clr-accent);
    box-shadow: 0 0 10px var(--clr-glow), 0 0 20px var(--clr-glow);
}
.timeline-step.active-step:nth-child(3) .timeline-dot::after {
    background-color: var(--clr-accent);
    transform: scale(1.15);
}
.timeline-step.active-step:nth-child(3) .step-date {
    color: var(--clr-accent);
    text-shadow: 0 0 8px var(--clr-glow);
}

.timeline-step.active-step:nth-child(4) .timeline-dot {
    border-color: rgba(57, 255, 20, 0.65);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.25);
}
.timeline-step.active-step:nth-child(4) .timeline-dot::after {
    background-color: rgba(57, 255, 20, 0.65);
    transform: scale(1.0);
}
.timeline-step.active-step:nth-child(4) .step-date {
    color: rgba(57, 255, 20, 0.65);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.15);
}

.timeline-step.active-step:nth-child(5) .timeline-dot {
    border-color: rgba(57, 255, 20, 0.35);
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.1);
}
.timeline-step.active-step:nth-child(5) .timeline-dot::after {
    background-color: rgba(57, 255, 20, 0.35);
    transform: scale(0.9);
}
.timeline-step.active-step:nth-child(5) .step-date {
    color: rgba(57, 255, 20, 0.35);
}

.step-desc {
    padding-left: 5px;
}

.step-desc h4 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--clr-text-main);
    letter-spacing: 0.5px;
}

.step-desc p {
    font-size: 13px;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

/* Persistent Bottom Footer */
.deck-footer {
    height: 60px;
    border-top: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background-color: #000000;
    font-size: 11px;
    position: relative;
    z-index: 100;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}


.deck-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: var(--clr-text-main);
    cursor: pointer;
    font-family: var(--font-mono);
    transition: var(--transition-fast);
    padding: 8px;
}

.ctrl-btn:hover {
    color: var(--clr-accent);
    text-shadow: 0 0 8px var(--clr-glow);
}

.overall-progress-container {
    width: 100%;
    height: 4px;
    background-color: #000000;
    border-bottom: 1px solid var(--clr-border);
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.overall-progress-bar {
    height: 100%;
    background-color: var(--clr-accent);
    box-shadow: 0 0 8px var(--clr-glow);
    transition: width var(--transition-medium);
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 2px var(--clr-accent);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 12px var(--clr-accent);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInDots {
    to {
        opacity: 1;
    }
}

/* Media Query adjustments for smaller resolutions */
@media (max-height: 900px) {
    .slide { padding: 30px 50px; }
    .slide-content {
        padding-top: 80px;
        padding-left: 35px;
        padding-right: 35px;
    }
    .slide-meta {
        top: 18px;
        left: 35px;
    }
    .slide-title {
        font-size: 34px;
        top: 22px;
        left: 35px;
        margin-bottom: 0;
    }
    .cover-center .logo-image { max-height: 72px; margin-bottom: 16px; }
    .perspective-grid-box { max-height: 320px; height: auto; }
    .problem-layout, .capabilities-layout, .architecture-layout, .market-layout, .ask-layout { gap: 20px; }
    .visual-terminal-card, .capabilities-terminal { height: 260px; }
    .market-table-container { height: 100%; padding: 15px 18px; }
    .market-proj-table td { padding: 6px 10px; }
    .table-quote-container { margin-top: 10px; padding: 12px 16px; }
    .table-quote { font-size: 15px; margin-bottom: 6px; }
    .table-quote-author { font-size: 10px; }
    .pricing-matrix { gap: 10px; }
    .price-column { padding: 15px 12px; gap: 8px; }
    .price-val { font-size: 24px; }
    .matrix-desc-text { font-size: 17px; }
    .matrix-table { font-size: 14px; }
    .matrix-table th, .matrix-table td { padding: 16px 20px; }
    .ask-box { padding: 20px; }
    .ask-sub-label { margin-bottom: 12px; }
    .allocations { gap: 8px; }
    .contact { padding: 12px; }
    #slide-10 .slide-content { padding-top: 80px; }
    .roadmap { max-height: calc(100vh - 240px); }
    .timeline { gap: 20px; }
    .timeline-images img { height: 185px; }
}

/* SLIDE 7 & 8: Additional Market & Timing Styles */
.market-source {
    font-size: 9px;
    color: var(--clr-text-muted);
    margin-top: 0;
    opacity: 0.8;
}
.market-source a {
    color: var(--clr-text-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--clr-text-muted);
    transition: var(--transition-fast);
}
.market-source a:hover {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
}

.whynow-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.whynow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
    width: 100%;
}

.whynow-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.whynow-stat-card {
    border: 1px solid var(--clr-border);
    border-left: 4px solid var(--clr-accent);
    background-color: rgba(8, 13, 8, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 28px 30px 50px 30px;
    border-radius: 6px;
    min-height: 260px;
    transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium), filter var(--transition-medium), opacity var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(15px);
    position: relative;
}

body.theme-amber .whynow-stat-card {
    background-color: rgba(14, 10, 6, 0.65);
    border-left-color: var(--clr-accent);
}

body.theme-cyan .whynow-stat-card {
    background-color: rgba(6, 12, 14, 0.65);
    border-left-color: var(--clr-accent);
}

.slide.active .whynow-stat-card {
    animation: slideInStatCard 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--card-index) * 0.12s + 0.2s);
}

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

.whynow-stat-card:hover {
    border-color: var(--clr-border-active);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px var(--clr-glow);
}

/* Sibling focus blur effect */
.whynow-stats-grid:has(.whynow-stat-card:hover) .whynow-stat-card:not(:hover) {
    filter: blur(3px);
    opacity: 0.4;
}

.whynow-num {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px var(--clr-glow);
}

.whynow-desc {
    font-size: 24px;
    color: var(--clr-text-main);
    line-height: 1.4;
    margin-bottom: 0;
}

.whynow-source {
    font-size: 9px;
    color: var(--clr-text-muted);
    border-top: 1px dashed rgba(57, 255, 20, 0.1);
    padding-top: 6px;
    position: absolute;
    bottom: 12px;
    left: 30px;
    right: 30px;
}

body.theme-amber .whynow-source {
    border-top-color: rgba(255, 176, 0, 0.1);
}

body.theme-cyan .whynow-source {
    border-top-color: rgba(0, 240, 255, 0.1);
}

.whynow-source a {
    color: var(--clr-text-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--clr-text-muted);
    transition: var(--transition-fast);
}

.whynow-source a:hover {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
}

/* Max-height responsiveness */
@media (max-height: 900px) {
    .whynow-grid { gap: 15px; }
    .whynow-stats-grid { gap: 20px; }
    .whynow-stat-card { padding: 18px 20px 32px 20px; min-height: 200px; }
    .whynow-num { font-size: 28px; margin-bottom: 18px; letter-spacing: -0.5px; }
    .whynow-desc { font-size: 17px; line-height: 1.35; }
    .whynow-source { bottom: 8px; left: 20px; right: 20px; padding-top: 4px; }
}

/* Utility class for hidden slides */
.hidden-slide {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   SLIDE 2: ENTERPRISE HERO (New Design)
   ========================================================================== */

/* Full-bleed slide — no padding, no edges */
#slide-product {
    padding: 0 !important;
    margin: 0 !important;
}

/* When slide-product is active, make footer & progress bar transparent */
#slide-product.active ~ .deck-footer-spacer,
#slide-product.active ~ footer {
    background: transparent !important;
}

/* Use a body-level class to make the footer/progress transparent */
.s2-active-deck .deck-footer {
    background: transparent !important;
    background-color: transparent !important;
    border-top: none !important;
}

.s2-active-deck .overall-progress-container {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom-color: rgba(57, 255, 20, 0.08) !important;
}

.s2-active-deck .slide-workspace {
    overflow: visible !important;
}

.s2-content {
    padding: 0 !important;
    overflow: visible !important;
    position: relative;
    background: #000000 !important;
}

/* Full-screen canvas background — extends into top progress and bottom footer zone */
.s2-data-canvas {
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: calc(100% + 64px);
    z-index: 0;
    pointer-events: none;
    display: block;
}

#slide-product .s2-content {
    overflow: visible !important;
}

/* Ensure hero layout sits above the canvas */
.s2-content .s2-hero-layout {
    position: relative;
    z-index: 1;
}


.s2-hero-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 30px 50px;
}

/* Left column */
.s2-hero-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.s2-nav-bar {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.s2-nav-item {
    font-size: 10px;
    color: var(--clr-text-muted);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-fast);
    padding-bottom: 2px;
}

.s2-nav-item:hover,
.s2-nav-active {
    color: var(--clr-accent);
    border-bottom: 1px solid var(--clr-accent);
}

.s2-terminal-mock {
    border: 1px solid var(--clr-border);
    background-color: #000000;
    border-radius: 6px;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
    max-width: 780px;
    width: 100%;
    border-left: 4px solid var(--clr-accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--clr-glow);
}

.s2-mock-prompt {
    font-size: 15px;
    color: var(--clr-text-muted);
}

.s2-mock-output {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--clr-text-main);
}

.s2-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.s2-cta-primary {
    background-color: var(--clr-accent);
    color: var(--clr-bg-black);
    border: none;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition-medium);
    box-shadow: 0 0 15px var(--clr-glow);
}

.s2-cta-primary:hover {
    box-shadow: 0 0 25px var(--clr-glow), 0 0 40px var(--clr-glow);
    transform: translateY(-1px);
}

.s2-cta-secondary {
    background: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition-medium);
}

.s2-cta-secondary:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

/* Right column */
.s2-hero-right {
    display: none !important;
}

/* Terminal */
.s2-terminal {
    border: 1px solid var(--clr-border);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.s2-terminal-header {
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--clr-border);
    padding: 8px 14px;
    display: flex;
    align-items: center;
}

.s2-node-label {
    font-size: 10px;
    color: var(--clr-accent);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--clr-glow);
}

.s2-terminal-body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.s2-term-line {
    font-size: 10px;
    color: var(--clr-text-muted);
    letter-spacing: 0.3px;
    opacity: 0;
    animation: s2TermFade 0.4s forwards;
}

.s2-term-line:nth-child(1) { animation-delay: 0.2s; }
.s2-term-line:nth-child(2) { animation-delay: 0.6s; }
.s2-term-line:nth-child(3) { animation-delay: 1.0s; }
.s2-term-line:nth-child(4) { animation-delay: 1.4s; }
.s2-term-line:nth-child(5) { animation-delay: 1.8s; }
.s2-term-line:nth-child(6) { animation-delay: 2.2s; }

@keyframes s2TermFade {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.s2-tag {
    font-weight: 700;
    margin-right: 4px;
}

.s2-tag.sys { color: #a78bfa; }
.s2-tag.net { color: #60a5fa; }
.s2-tag.ai { color: #f472b6; }
.s2-tag.extract { color: #fbbf24; }
.s2-tag.nlp { color: #34d399; }
.s2-tag.syn { color: var(--clr-accent); }

.s2-ok {
    color: var(--clr-accent);
    font-weight: 700;
    float: right;
}

/* JSON Panel */
.s2-json-panel {
    border: 1px solid var(--clr-border);
    border-top: none;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.s2-json-header {
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--clr-border);
    padding: 6px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
}

.s2-rec-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ef4444;
    font-weight: 700;
    font-size: 9px;
}

.s2-rec-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: recPulse 1.5s infinite;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

@keyframes recPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.s2-json-body {
    padding: 10px 14px;
    max-height: 220px;
    overflow-y: auto;
}

.s2-json-code {
    font-size: 9.5px;
    line-height: 1.5;
    color: var(--clr-text-muted);
    white-space: pre;
    margin: 0;
}

.json-key { color: #60a5fa; }
.json-str { color: #34d399; }
.json-num { color: #fbbf24; }
.json-bool { color: #f472b6; }

/* Stats Row */
.s2-stats-row {
    display: flex;
    gap: 0;
    border: 1px solid var(--clr-border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.s2-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
}

.s2-stat:first-child {
    border-right: 1px solid var(--clr-border);
}

.s2-stat-label {
    font-size: 8px;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.s2-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--clr-accent);
    text-shadow: 0 0 12px var(--clr-glow);
    letter-spacing: -0.5px;
}

/* ==========================================================================
   SLIDE 4 REIMAGINED: Core Capabilities - Orbital Hub Design
   ========================================================================== */

/* Container override */
.s4-reimagined {
    position: relative;
    overflow: hidden !important;
    padding: 0 !important;
}

.s4-reimagined .slide-meta {
    position: absolute;
    top: 30px;
    left: 50px;
    z-index: 20;
}

.s4-reimagined .s4-title {
    position: absolute;
    top: 52px;
    left: 50px;
    z-index: 20;
    font-size: 40px;
    margin-bottom: 0;
}

/* Floating Particles */
.s4-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.s4-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--clr-accent);
    opacity: 0;
    animation: s4-float linear infinite;
}

@keyframes s4-float {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0);
    }
}

/* Orbital Stage - contains hub + cards + SVG */
.s4-orbital-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Connection SVG */
.s4-connection-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Pulsing orbital rings */
.s4-ring {
    transform-origin: center;
}

.slide.active .s4-ring-1 {
    animation: s4-ring-pulse 4s ease-in-out infinite;
}

.slide.active .s4-ring-2 {
    animation: s4-ring-rotate 25s linear infinite;
}

.slide.active .s4-ring-3 {
    animation: s4-ring-rotate 40s linear infinite reverse;
}

@keyframes s4-ring-pulse {
    0%, 100% { opacity: 0.15; r: 60; }
    50% { opacity: 0.3; r: 65; }
}

@keyframes s4-ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Connection lines entrance */
.s4-conn-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: none;
}

.slide.active .s4-conn-1 { animation: s4-draw-line 1.2s 0.3s ease-out forwards; }
.slide.active .s4-conn-2 { animation: s4-draw-line 1.2s 0.5s ease-out forwards; }
.slide.active .s4-conn-3 { animation: s4-draw-line 1.2s 0.7s ease-out forwards; }
.slide.active .s4-conn-4 { animation: s4-draw-line 1.2s 0.9s ease-out forwards; }

@keyframes s4-draw-line {
    to { stroke-dashoffset: 0; }
}

/* Pulse dots */
.s4-pulse-dot {
    opacity: 0;
}

.slide.active .s4-pulse-dot {
    animation-name: s4-dot-appear;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.slide.active .s4-pd-1 { animation-delay: 1.5s; }
.slide.active .s4-pd-2 { animation-delay: 1.7s; }
.slide.active .s4-pd-3 { animation-delay: 1.9s; }
.slide.active .s4-pd-4 { animation-delay: 2.1s; }

@keyframes s4-dot-appear {
    to { opacity: 0.8; }
}

/* ===== Central Hub ===== */
.s4-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s4-hub-inner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--clr-accent);
    background: radial-gradient(circle, rgba(57, 255, 20, 0.08) 0%, var(--clr-bg-black) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px var(--clr-glow), inset 0 0 20px rgba(57, 255, 20, 0.05);
    animation: s4-hub-breathe 3s ease-in-out infinite;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.s4-hub-inner:hover {
    transform: scale(1.08);
}

.s4-hub-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px var(--clr-glow));
}

.s4-hub-icon {
    font-size: 24px;
    color: var(--clr-accent);
    filter: drop-shadow(0 0 6px var(--clr-glow));
    line-height: 1;
}

.s4-hub-label {
    font-size: 8px;
    color: var(--clr-accent);
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 0 8px var(--clr-glow);
}

.s4-hub-ring-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 1px solid rgba(57, 255, 20, 0.1);
    z-index: 1;
    animation: s4-glow-ring-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes s4-hub-breathe {
    0%, 100% { box-shadow: 0 0 30px var(--clr-glow), inset 0 0 20px rgba(57, 255, 20, 0.05); }
    50% { box-shadow: 0 0 50px var(--clr-glow), inset 0 0 30px rgba(57, 255, 20, 0.1); }
}

@keyframes s4-glow-ring-pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.15); }
}

/* ===== Capability Cards ===== */
.s4-card {
    position: absolute;
    width: 380px;
    z-index: 12;
    cursor: default;
    opacity: 0;
    transform: translateY(30px) scale(0.92);
}

/* Positioning - 4 corners around center hub */
.s4-card-tl { left: 50px; top: 24%; }
.s4-card-tr { right: 50px; top: 24%; }
.s4-card-bl { left: 50px; bottom: 16%; }
.s4-card-br { right: 50px; bottom: 16%; }

/* Staggered entrance animation */
.slide.active .s4-card-tl { animation: s4-card-enter 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide.active .s4-card-tr { animation: s4-card-enter 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide.active .s4-card-bl { animation: s4-card-enter 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide.active .s4-card-br { animation: s4-card-enter 0.8s 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes s4-card-enter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card glow backdrop */
.s4-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.s4-card:hover .s4-card-glow {
    opacity: 1;
}

/* Card inner */
.s4-card-inner {
    position: relative;
    z-index: 1;
    padding: 28px 30px;
    border-radius: 12px;
    border: 1px solid rgba(57, 255, 20, 0.1);
    background: rgba(8, 13, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.s4-card:hover .s4-card-inner {
    border-color: rgba(57, 255, 20, 0.35);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(57, 255, 20, 0.08);
    transform: translateY(-4px);
    background: rgba(8, 13, 8, 0.95);
}

/* Card index number */
.s4-card-index {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.s4-index-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--clr-accent);
    text-shadow: 0 0 15px var(--clr-glow);
    line-height: 1;
    letter-spacing: -1px;
    transition: transform 0.4s ease;
}

.s4-card:hover .s4-index-num {
    transform: scale(1.1);
}

.s4-index-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--clr-accent), transparent);
    opacity: 0.3;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.s4-card:hover .s4-index-line {
    transform: scaleX(1);
}

/* Card title */
.s4-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
    line-height: 1.4;
    margin: 0 0 0 0;
    transition: color 0.4s ease;
}

.s4-card:hover .s4-card-title {
    color: var(--clr-accent);
}

/* Reveal section - expands on hover */
.s4-card-reveal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.s4-card:hover .s4-card-reveal {
    max-height: 200px;
    opacity: 1;
}

.s4-reveal-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.2), transparent);
    margin: 12px 0;
}

.s4-card-reveal p {
    font-size: 18px;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0;
    font-family: var(--font-sans);
}

.s4-card-reveal p.s4-card-bullets {
    font-size: 12px;
    color: var(--clr-text-muted);
    margin-top: 8px;
    line-height: 1.7;
    font-family: var(--font-mono);
}

/* Pulse indicator */
.s4-card-pulse-indicator {
    position: absolute;
    top: 26px;
    right: 24px;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s4-pulse-core {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--clr-accent);
    position: absolute;
    box-shadow: 0 0 6px var(--clr-accent);
}

.s4-pulse-ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--clr-accent);
    position: absolute;
    animation: s4-indicator-pulse 2s ease-out infinite;
}

@keyframes s4-indicator-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ===== Theme overrides ===== */
body.theme-amber .s4-hub-inner {
    background: radial-gradient(circle, rgba(255, 176, 0, 0.08) 0%, var(--clr-bg-black) 70%);
    box-shadow: 0 0 30px var(--clr-glow), inset 0 0 20px rgba(255, 176, 0, 0.05);
}

body.theme-cyan .s4-hub-inner {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, var(--clr-bg-black) 70%);
    box-shadow: 0 0 30px var(--clr-glow), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

body.theme-amber .s4-hub-ring-glow {
    border-color: rgba(255, 176, 0, 0.1);
}

body.theme-cyan .s4-hub-ring-glow {
    border-color: rgba(0, 240, 255, 0.1);
}

body.theme-amber .s4-card-inner {
    border-color: rgba(255, 176, 0, 0.1);
    background: rgba(14, 10, 6, 0.85);
}

body.theme-cyan .s4-card-inner {
    border-color: rgba(0, 240, 255, 0.1);
    background: rgba(6, 12, 14, 0.85);
}

body.theme-amber .s4-card:hover .s4-card-inner {
    border-color: rgba(255, 176, 0, 0.35);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 176, 0, 0.08);
    background: rgba(14, 10, 6, 0.95);
}

body.theme-cyan .s4-card:hover .s4-card-inner {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.08);
    background: rgba(6, 12, 14, 0.95);
}

body.theme-amber .s4-card-glow {
    background: linear-gradient(135deg, rgba(255, 176, 0, 0.06), transparent 60%);
}

body.theme-cyan .s4-card-glow {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), transparent 60%);
}

/* ===== Responsive ===== */
@media (max-height: 900px) {
    .s4-reimagined .s4-title {
        font-size: 34px;
        top: 22px;
        left: 35px;
    }
    .s4-reimagined .slide-meta {
        top: 18px;
        left: 35px;
    }
    .s4-card {
        width: 320px;
    }
    .s4-card-inner {
        padding: 18px 20px;
    }
    .s4-index-num {
        font-size: 26px;
    }
    .s4-card-title {
        font-size: 13px;
    }
    .s4-card-reveal p {
        font-size: 15px;
    }
    .s4-hub-inner {
        width: 75px;
        height: 75px;
    }
    .s4-hub-icon {
        font-size: 20px;
    }
    .s4-hub-label {
        font-size: 7px;
    }
    .s4-card-tl { left: 35px; top: 22%; }
    .s4-card-tr { right: 35px; top: 22%; }
    .s4-card-bl { left: 35px; bottom: 14%; }
    .s4-card-br { right: 35px; bottom: 14%; }
}

/* DOS 80s Typewriting Effect */
.dos-typewriter {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tw-line {
    display: block;
    line-height: 1.4;
}

.tw-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 8px solid transparent;
    width: 0;
    vertical-align: bottom;
}

/* Active slide triggers the animations */
.active .tw-l1 {
    animation: 
        tw-type-1 1.8s steps(40, end) 0.5s forwards,
        tw-blink-1 0.45s step-end 0.5s 4; /* 4 iterations = 1.8s typing time */
}

.active .tw-l2 {
    animation: 
        tw-type-2 1.9s steps(43, end) 2.3s forwards,
        tw-blink-2 0.475s step-end 2.3s 4; /* 4 iterations = 1.9s typing time */
}

.active .tw-l3 {
    animation: 
        tw-type-3 1.4s steps(31, end) 4.2s forwards,
        tw-blink-3-infinite 0.6s step-end 4.2s infinite;
}

/* Width animations using ch units */
@keyframes tw-type-1 {
    from { width: 0; }
    to { width: 40ch; }
}

@keyframes tw-type-2 {
    from { width: 0; }
    to { width: 43ch; }
}

@keyframes tw-type-3 {
    from { width: 0; }
    to { width: 31ch; }
}

/* Caret blinking keyframes */
@keyframes tw-blink-1 {
    from, to { border-right-color: transparent; }
    50% { border-right-color: var(--clr-accent); }
}

@keyframes tw-blink-2 {
    from, to { border-right-color: transparent; }
    50% { border-right-color: var(--clr-accent); }
}

@keyframes tw-blink-3-infinite {
    from, to { border-right-color: transparent; }
    50% { border-right-color: var(--clr-accent); }
}

/* ==========================================================================
   Desktop Experience Warning Overlay (Responsive Viewport Block)
   ========================================================================== */
.warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 8, 5, 0.98);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.warning-content {
    max-width: 500px;
    background: #080d08;
    border: 1px solid var(--clr-accent);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.15);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    color: var(--clr-text-main);
    font-family: var(--font-sans);
}

.warning-logo {
    width: 72px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 8px var(--clr-glow));
}

.warning-content h2 {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-accent);
    margin-top: 0;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.warning-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.warning-content .sub-message {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
    font-family: var(--font-mono);
}

.warning-btn {
    background: transparent;
    border: 1px solid var(--clr-accent);
    color: var(--clr-accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.warning-btn:hover {
    background: var(--clr-accent);
    color: #000;
    box-shadow: 0 0 15px var(--clr-accent);
}

/* Display warning only on screens narrower than desktop */
@media (max-width: 1024px) {
    .warning-overlay {
        display: flex;
    }
}

/* Allow programmatic overriding */
.warning-overlay.hidden {
    display: none !important;
}
