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

:root {
    --bg:         #0a0a0b;
    --bg-card:    #111113;
    --bg-elevated:#141416;
    --border:     #1e1e22;
    --border-sub: #18181b;
    --text:       #e4e4e7;
    --text-sec:   #8b8b94;
    --text-muted: #5a5a63;
    --accent:     #a78bfa;
    --accent-dim: rgba(167,139,250,0.12);
    --accent-glow:transparent;
    --white:      #fafafa;
    --green:      #4ade80;
    --red:        #f87171;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html, body {
    width: 100%; height: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Deck Shell ── */
.deck {
    width: 100vw; height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ── Slides ── */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 64px 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1),
                transform 0.45s cubic-bezier(0.4,0,0.2,1);
    transform: translateX(40px);
}

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

.slide.exit {
    opacity: 0;
    transform: translateX(-40px);
}

/* ── Slide Label ── */
.label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

/* ── Headings ── */
h1.display {
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--white);
}

h2.title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--white);
}

p.sub {
    font-size: clamp(14px, 1.5vw, 17px);
    color: var(--text-sec);
    line-height: 1.75;
    max-width: 640px;
}

/* ── Nav Controls ── */
.controls {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 200;
}

.btn-nav {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-sec);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
}

.btn-nav:hover { border-color: var(--accent); color: var(--accent); }
.btn-nav:disabled { opacity: 0.25; cursor: default; }

.slide-counter {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--mono);
    min-width: 52px;
    text-align: center;
}

/* ── Progress dots ── */
.progress {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
}

.dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.25s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.4);
}

/* ── Slide number badge ── */
.slide-num {
    position: fixed;
    top: 28px;
    right: 32px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--mono);
    z-index: 200;
}

/* ──────────────────────────────
   SLIDE 1: TITLE
────────────────────────────── */
#s1 {
    justify-content: center;
    align-items: flex-start;
}

#s1 .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

#s1 h1 {
    margin-bottom: 28px;
}

#s1 .tagline {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-sec);
    line-height: 1.55;
    max-width: 560px;
    margin-bottom: 48px;
}

#s1 .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 100px;
    padding: 7px 16px;
}

#s1 .pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ──────────────────────────────
   SLIDE 2: THE PROBLEM
────────────────────────────── */
#s2 {
    justify-content: center;
}

#s2 h2 { margin-bottom: 48px; }

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

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
}

.problem-card .num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.problem-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

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

/* ──────────────────────────────
   SLIDE 3: THE GAP
────────────────────────────── */
#s3 {
    justify-content: center;
}

#s3 h2 { margin-bottom: 48px; }

.workflow {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.workflow-box {
    width: 100%;
    padding: 14px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sec);
    letter-spacing: 0.02em;
}

.workflow-box.pain {
    border-color: rgba(248,113,113,0.3);
    background: rgba(248,113,113,0.05);
    color: var(--red);
}

.workflow-arrow {
    font-size: 14px;
    color: var(--border);
    padding: 0 4px;
    flex-shrink: 0;
}

.gap-insight {
    background: var(--bg-card);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 680px;
}

.gap-insight p {
    font-size: 15px;
    color: var(--text-sec);
    line-height: 1.75;
}

.gap-insight strong {
    color: var(--white);
}

/* ──────────────────────────────
   SLIDE 4: THESIS
────────────────────────────── */
#s4 {
    justify-content: center;
    align-items: flex-start;
}

#s4 h2 { margin-bottom: 36px; }

.thesis-shift {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
}

.shift-box {
    padding: 24px 36px;
    border-radius: 10px;
    text-align: center;
}

.shift-box.from {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.shift-box.to {
    background: var(--accent-dim);
    border: 1px solid rgba(167,139,250,0.3);
}

.shift-box .shift-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.shift-box.to .shift-label {
    color: var(--accent);
}

.shift-box .shift-val {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-sec);
    letter-spacing: -0.02em;
}

.shift-box.to .shift-val {
    color: var(--accent);
}

.shift-arrow {
    font-size: 28px;
    color: var(--text-muted);
}

.thesis-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.thesis-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.thesis-point .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 7px;
    flex-shrink: 0;
    position: static;
    cursor: default;
    transform: none;
}

.thesis-point p {
    font-size: 15px;
    color: var(--text-sec);
    line-height: 1.7;
}

.thesis-point strong {
    color: var(--white);
}

/* ──────────────────────────────
   SLIDE 5: PLATFORM
────────────────────────────── */
#s5 { justify-content: center; }

#s5 h2 { margin-bottom: 40px; }

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

.layer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.layer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--border);
}

.layer-card.sense::before {
    background: linear-gradient(90deg, var(--accent), rgba(167,139,250,0.3));
}

.layer-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-sub);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.layer-num {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

.layer-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

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

.layer-card .layer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.tag {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border-sub);
    border-radius: 4px;
    padding: 3px 8px;
}

.layer-card.sense .tag {
    color: var(--accent);
    background: var(--accent-dim);
    border-color: rgba(167,139,250,0.2);
}

/* ──────────────────────────────
   SLIDE 6: SENSE DEEP DIVE
────────────────────────────── */
#s6 { justify-content: center; }
#s6 h2 { margin-bottom: 40px; }

.sense-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.sense-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sense-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(167,139,250,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.sense-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.sense-item p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.sense-footer {
    display: flex;
    gap: 16px;
}

.sense-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text-sec);
}

.sense-pill svg { color: var(--accent); flex-shrink: 0; }

/* ──────────────────────────────
   SLIDE 7: COMPARE
────────────────────────────── */
#s7 { justify-content: center; }
#s7 h2 { margin-bottom: 40px; }

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table thead th {
    text-align: left;
    padding: 0 20px 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.compare-table thead th.col-trisense {
    color: var(--accent);
}

.compare-table td {
    padding: 13px 20px;
    border-top: 1px solid var(--border-sub);
    color: var(--text-sec);
}

.compare-table td:first-child {
    color: var(--text);
    font-weight: 500;
}

.compare-table td.col-trisense {
    color: var(--white);
    font-weight: 500;
}

.badge-yes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--green);
}

.badge-no {
    color: var(--text-muted);
}

.badge-partial {
    color: #fbbf24;
}

/* ──────────────────────────────
   SLIDE 8: EDITIONS
────────────────────────────── */
#s8 { justify-content: center; }
#s8 h2 { margin-bottom: 40px; }

.editions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.edition {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 32px;
}

.edition.enterprise {
    border-color: rgba(167,139,250,0.3);
    background: linear-gradient(160deg, rgba(167,139,250,0.05) 0%, var(--bg-card) 60%);
}

.ed-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.edition h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.025em;
    margin-bottom: 4px;
}

.edition .license {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.ed-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ed-features li {
    font-size: 13px;
    color: var(--text-sec);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ed-features li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ──────────────────────────────
   SLIDE 9: VISION
────────────────────────────── */
#s9 {
    justify-content: center;
    align-items: flex-start;
}

#s9 .vision-quote {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1.35;
    max-width: 800px;
    margin-bottom: 48px;
}

#s9 .vision-quote em {
    font-style: normal;
    color: var(--accent);
}

.vision-metrics {
    display: flex;
    gap: 48px;
}

.vision-metric h4 {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

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

/* ──────────────────────────────
   SLIDE 10: CONTACT
────────────────────────────── */
#s10 {
    justify-content: center;
    align-items: flex-start;
}

#s10 h2 { margin-bottom: 16px; }

#s10 .contact-sub {
    font-size: 16px;
    color: var(--text-sec);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 48px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.contact-email {
    font-family: var(--mono);
    font-size: 16px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 8px;
    padding: 14px 24px;
    letter-spacing: 0.01em;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--text);
}

.contact-brand {
    margin-top: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.03em;
}

.brand-sep {
    width: 1px; height: 22px;
    background: var(--border);
}

.brand-company {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Home Link ── */
.home-link {
    position: fixed;
    top: 24px;
    left: 40px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
    z-index: 200;
}

.home-link:hover {
    color: var(--accent);
}

/* ── Keyboard hint ── */
.key-hint {
    position: fixed;
    bottom: 24px;
    right: 32px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--mono);
    display: flex;
    align-items: center;
    gap: 6px;
}

kbd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
}

/* ── Mobile Responsive ── */
@media (max-width: 1024px) {
    .slide {
        padding: 48px 40px;
    }

    .controls {
        bottom: 16px;
        gap: 12px;
    }

    .key-hint {
        display: none;
    }

    .progress {
        right: 16px;
        gap: 6px;
    }

    .dot {
        width: 4px;
        height: 4px;
    }

    .slide-num {
        right: 16px;
        top: 16px;
    }

    h1.display {
        font-size: clamp(32px, 4vw, 56px);
    }

    h2.title {
        font-size: clamp(22px, 3vw, 40px);
    }

    p.sub {
        font-size: clamp(12px, 1.2vw, 15px);
    }

    #s1 .tagline {
        font-size: clamp(14px, 1.8vw, 18px);
        margin-bottom: 32px;
    }

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

    .workflow {
        flex-direction: column;
        gap: 12px;
    }

    .workflow-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }

    .thesis-shift {
        flex-direction: column;
        gap: 16px;
    }

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

    .thesis-points {
        max-width: 100%;
    }

    .layers {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sense-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sense-footer {
        flex-direction: column;
        gap: 12px;
    }

    .editions {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vision-metrics {
        flex-direction: column;
        gap: 24px;
    }

    .compare-table {
        font-size: 12px;
    }

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

@media (max-width: 768px) {
    .slide {
        padding: 32px 20px;
    }

    h1.display {
        font-size: clamp(24px, 3.5vw, 48px);
    }

    h2.title {
        font-size: clamp(18px, 2.5vw, 32px);
    }

    #s1 h1 {
        margin-bottom: 16px;
    }

    #s1 .eyebrow {
        margin-bottom: 16px;
    }

    #s1 .tagline {
        margin-bottom: 24px;
    }

    .btn-nav {
        width: 36px;
        height: 36px;
    }

    .slide-counter {
        min-width: 40px;
        font-size: 11px;
    }
}