:root {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --muted: #64748b;
    --accent-color: #2da4c7;
    --accent-secondary: #0f172a;
    --surface-color: #ffffff;
    --font-primary: 'Inter Tight', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains 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;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 900px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
}

/* Global Canvas */
#global-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Slide Container */
#slide-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    perspective: 1000px;
}

@media (max-width: 900px) {
    #slide-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 72px;
        padding-bottom: 80px;
        min-height: 100vh;
        min-height: 100dvh;
    }
}

@media (max-width: 480px) {
    #slide-container {
        padding-top: 64px;
        padding-bottom: 72px;
    }
}

/* UI Layer */
#ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.brand {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0; /* Animated in */
}

.brand-logo {
    width: 32px;
    height: 32px;
}

.brand-text {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.slide-indicator {
    font-family: var(--font-mono);
    font-size: 14px;
    opacity: 0.6;
    color: var(--text-color);
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Language Toggle */
.lang-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 4px;
    pointer-events: auto;
    opacity: 0; /* Animated in */
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: var(--muted);
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: var(--text-color);
}

.lang-btn.active {
    background: var(--surface-color);
    color: var(--accent-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .brand { top: 16px; left: 16px; gap: 10px; }
    .brand-text { font-size: 16px; }
    .brand-logo { width: 28px; height: 28px; }

    .controls { bottom: 16px; right: 16px; gap: 10px; }
    .nav-btn { width: 36px; height: 36px; }

    .lang-toggle { top: 16px; right: 16px; }
    .lang-btn { font-size: 11px; padding: 5px 10px; }
}

/* Audio Toggle */
.audio-btn {
    position: absolute;
    bottom: 24px;
    right: 140px; /* Left of controls */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: auto;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.audio-btn:hover {
    background: white;
    color: var(--text-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.audio-icon {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.bar {
    width: 2px;
    background: currentColor;
    border-radius: 1px;
    animation: none;
    height: 4px; /* Default static height */
}

/* Playing Animation */
.audio-btn.playing {
    color: var(--accent-color);
    border-color: rgba(45, 164, 199, 0.2);
    background: rgba(45, 164, 199, 0.05);
}

.audio-btn.playing .bar {
    animation: soundBars 1s ease-in-out infinite;
}

.audio-btn.playing .b1 { animation-delay: 0.0s; height: 6px; }
.audio-btn.playing .b2 { animation-delay: 0.2s; height: 10px; }
.audio-btn.playing .b3 { animation-delay: 0.4s; height: 8px; }
.audio-btn.playing .b4 { animation-delay: 0.1s; height: 5px; }

@keyframes soundBars {
    0%, 100% { height: 4px; }
    50% { height: 12px; }
}

@media (max-width: 480px) {
    .audio-btn {
        bottom: auto;
        top: 16px;
        right: 80px; /* Left of lang toggle */
        padding: 6px 10px;
    }
    .audio-label { display: none; }
}

/* Slide Content Styles (Generic) */
.slide-content {
    width: 100%;
    max-width: 1200px;
    padding: clamp(16px, 4vw, 40px);
    opacity: 0;
    /* Styles for GSAP to animate */
}

@media (max-width: 900px) {
    .slide-content {
        min-height: auto;
        height: auto !important;
        overflow: visible;
    }
    /* Override all slide wrapper height:100% on mobile */
    .slide-intro, .slide-thesis, .slide-market, .slide-beachhead,
    .slide-problem, .slide-traction, .slide-business, .slide-competition,
    .slide-loop, .slide-product, .slide-voice, .slide-trust,
    .slide-finance, .slide-timeline, .slide-expansion, .slide-team {
        height: auto !important;
        min-height: auto;
    }
}

h1 {
    font-family: var(--font-primary);
    font-weight: 600; /* Lighter than 700 */
    font-size: clamp(32px, 6vw, 56px); /* Adaptive Size */
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--accent-secondary);
    letter-spacing: -0.02em;
}

p {
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.6;
    color: #475569;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ===================================================================
   LEGAL DISCLAIMER GATE MODAL
   =================================================================== */
#disclaimer-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#disclaimer-overlay.visible { opacity: 1; }
#disclaimer-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.disclaimer-modal {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow:
        0 25px 60px -15px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#disclaimer-overlay.visible .disclaimer-modal {
    transform: scale(1) translateY(0);
}

/* Header */
.disclaimer-header {
    flex-shrink: 0;
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.disclaimer-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.disclaimer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.disclaimer-brand img {
    width: 26px;
    height: 26px;
}
.disclaimer-brand span {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    letter-spacing: -0.02em;
}
.disclaimer-lang-row {
    display: flex;
    gap: 3px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 2px;
}
.disclaimer-lang-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: var(--muted);
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}
.disclaimer-lang-btn:hover { color: var(--text-color); }
.disclaimer-lang-btn.active {
    background: var(--surface-color);
    color: var(--accent-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.disclaimer-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.6rem;
}
.disclaimer-shield {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 164, 199, 0.08);
    border: 1px solid rgba(45, 164, 199, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}
.disclaimer-shield svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 1.8;
}
.disclaimer-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-secondary);
    letter-spacing: -0.01em;
}
.disclaimer-subtitle {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Scrollable body */
.disclaimer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}
.disclaimer-body::-webkit-scrollbar { width: 5px; }
.disclaimer-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.02); }
.disclaimer-body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.08); border-radius: 3px; }
.disclaimer-body::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.14); }

.disclaimer-clause {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0.85rem;
}
.disclaimer-clause:last-child { margin-bottom: 0; }

/* Scroll hint */
.disclaimer-scroll-hint {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0 0.25rem;
    background: linear-gradient(to top, var(--surface-color) 50%, transparent);
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.disclaimer-scroll-hint.faded { opacity: 0; }
.disclaimer-scroll-hint span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    opacity: 0.7;
}
.disclaimer-scroll-mouse {
    width: 16px;
    height: 26px;
    border: 1.5px solid rgba(45, 164, 199, 0.35);
    border-radius: 10px;
    margin-top: 6px;
    position: relative;
}
.disclaimer-scroll-mouse::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: disclaimerScrollDot 1.6s infinite ease-in-out;
}
@keyframes disclaimerScrollDot {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* Footer */
.disclaimer-footer {
    flex-shrink: 0;
    padding: 1.25rem 2rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(248, 250, 252, 0.5);
}

.disclaimer-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 1rem;
    -webkit-user-select: none;
    user-select: none;
}
.disclaimer-checkbox-label input { display: none; }
.disclaimer-check-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.disclaimer-check-box svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}
.disclaimer-checkbox-label input:checked + .disclaimer-check-box {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.disclaimer-checkbox-label input:checked + .disclaimer-check-box svg {
    opacity: 1;
    transform: scale(1);
}
.disclaimer-checkbox-label:hover .disclaimer-check-box {
    border-color: rgba(0, 0, 0, 0.3);
}
.disclaimer-check-text {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.55;
}

.disclaimer-accept-btn {
    width: 100%;
    padding: 13px 24px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.disclaimer-accept-btn.enabled {
    color: #fff;
    background: var(--accent-color);
    box-shadow: 0 4px 16px rgba(45, 164, 199, 0.25);
}
.disclaimer-accept-btn.enabled:hover {
    background: #259ab5;
    box-shadow: 0 6px 24px rgba(45, 164, 199, 0.35);
    transform: translateY(-1px);
}
.disclaimer-accept-btn:disabled {
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .disclaimer-modal { max-height: 96vh; border-radius: 12px; }
    .disclaimer-header { padding: 1.25rem 1.25rem 1rem; }
    .disclaimer-body { padding: 1rem 1.25rem; }
    .disclaimer-footer { padding: 1rem 1.25rem 1.25rem; }
    .disclaimer-title { font-size: 1rem; }
}
