/* =============================================
   GCR GTM Deck — Microsoft Build Keynote Style
   Dark theme, blue/purple gradients
   ============================================= */

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

:root {
    --bg: #0a0a1a;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.08);
    --text: #e8eaed;
    --text-dim: rgba(255,255,255,0.55);
    --text-bright: #ffffff;
    --accent-1: #0078d4;   /* msft blue */
    --accent-2: #6366f1;   /* indigo */
    --accent-3: #8b5cf6;   /* purple */
    --accent-4: #06b6d4;   /* cyan */
    --accent-5: #22d3ee;   /* light cyan */
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --gradient-main: linear-gradient(135deg, #0078d4 0%, #6366f1 40%, #8b5cf6 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(0,120,212,0.15) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.12) 0%, transparent 50%),
                     radial-gradient(ellipse at 50% 80%, rgba(6,182,212,0.08) 0%, transparent 50%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --font: 'Inter', 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
    --slide-max: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

/* --- Progress Bar --- */
.progress-bar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; background: rgba(255,255,255,0.06);
    z-index: 100;
}
.progress-fill {
    height: 100%; width: 0;
    background: var(--gradient-main);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

/* --- Slide Counter --- */
.slide-counter {
    position: fixed; bottom: 28px; right: 36px;
    font-size: 13px; color: var(--text-dim);
    font-family: var(--font-mono);
    z-index: 90; letter-spacing: 1px;
}
.slide-counter .current { color: var(--accent-3); font-weight: 600; }

/* --- Dot Nav --- */
.dot-nav {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 8px;
    z-index: 90;
}
.dot-nav .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    cursor: pointer; transition: all 0.3s;
    border: none; padding: 0;
}
.dot-nav .dot:hover { background: rgba(255,255,255,0.35); }
.dot-nav .dot.active {
    background: var(--accent-1);
    box-shadow: 0 0 8px rgba(0,120,212,0.5);
    height: 20px; border-radius: 4px;
}

/* --- Keyboard Hint --- */
.keyboard-hint {
    position: fixed; bottom: 28px; left: 36px;
    font-size: 12px; color: var(--text-dim);
    display: flex; align-items: center; gap: 6px;
    z-index: 90; opacity: 0.6;
    transition: opacity 0.8s;
}
.keyboard-hint.hidden { opacity: 0; pointer-events: none; }
.keyboard-hint kbd {
    background: rgba(255,255,255,0.1); padding: 2px 6px;
    border-radius: 4px; font-family: var(--font-mono);
    font-size: 11px; border: 1px solid rgba(255,255,255,0.15);
}

/* --- Brand Badge --- */
.brand-badge {
    position: fixed; top: 24px; left: 36px;
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-dim);
    z-index: 90; letter-spacing: 0.5px;
    font-weight: 500;
}

/* --- Presentation Container --- */
.presentation {
    width: 100vw; height: 100vh;
    position: relative; overflow: hidden;
}

/* --- Slide --- */
.slide {
    position: absolute; inset: 0;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 48px 48px 60px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px) scale(0.97);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.slide::-webkit-scrollbar { width: 4px; }
.slide::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
.slide.active {
    opacity: 1; pointer-events: auto;
    transform: translateY(0) scale(1);
}
.slide-inner {
    width: 100%; max-width: var(--slide-max);
    position: relative;
    padding-top: 16px;
}

/* --- Typography --- */
.slide-eyebrow {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0,120,212,0.12);
    border: 1px solid rgba(0,120,212,0.25);
    color: var(--accent-4);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
}
.slide-title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-bright);
    margin-bottom: 12px;
}
.slide-title .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.slide-subtitle {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.55;
    max-width: 720px;
    margin-bottom: 24px;
}

/* --- Cover Slide --- */
.cover-slide {
    align-items: center;
}
.cover-slide .slide-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cover-slide .slide-title {
    font-size: 2.8rem;
}
.cover-slide .slide-subtitle {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.cover-meta {
    display: flex; gap: 24px; align-items: center;
    color: var(--text-dim); font-size: 0.9rem;
    margin-top: 8px;
}
.cover-meta span { display: flex; align-items: center; gap: 6px; }

/* --- Cards & Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: var(--shadow);
    padding: 22px;
    transition: background 0.3s, border-color 0.3s;
}
.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.12);
}
.card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.card-icon.blue { background: rgba(0,120,212,0.15); color: var(--accent-1); }
.card-icon.purple { background: rgba(99,102,241,0.15); color: var(--accent-2); }
.card-icon.cyan { background: rgba(6,182,212,0.15); color: var(--accent-4); }
.card-icon.green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.card-icon.amber { background: rgba(245,158,11,0.15); color: var(--accent-amber); }
.card-icon.rose { background: rgba(244,63,94,0.15); color: var(--accent-rose); }

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 10px;
}
.card-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dim);
}

/* --- Metric Cards --- */
.metric-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
}
.metric-value {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}
.metric-value.blue { color: var(--accent-1); }
.metric-value.purple { color: var(--accent-3); }
.metric-value.cyan { color: var(--accent-4); }
.metric-value.green { color: var(--accent-green); }
.metric-value.amber { color: var(--accent-amber); }

.metric-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.metric-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: 6px;
}

/* --- Bullet list --- */
.bullet-list {
    list-style: none;
    display: grid;
    gap: 12px;
}
.bullet-list li {
    color: var(--text);
    line-height: 1.55;
    padding-left: 20px;
    position: relative;
    font-size: 0.88rem;
}
.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-4);
}

/* --- Numbered steps --- */
.steps-grid { counter-reset: step; }
.step-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: var(--shadow);
    padding: 24px;
}
.step-card::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
}
.step-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-dim);
}

/* --- Funnel --- */
.funnel {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}
.funnel-stage {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    position: relative;
}
.funnel-bar {
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-bright);
    white-space: nowrap;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.funnel-meta {
    font-size: 0.85rem;
    color: var(--text-dim);
    min-width: 140px;
}
.funnel-meta strong {
    color: var(--text-bright);
    font-size: 1.1rem;
}
.funnel-arrow {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.2rem;
    padding: 2px 0;
    opacity: 0.4;
}

/* --- Two-column layout --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.split-layout .col-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}

/* --- Tag chip --- */
.tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.tag.blue { background: rgba(0,120,212,0.15); color: var(--accent-1); }
.tag.purple { background: rgba(99,102,241,0.15); color: var(--accent-2); }
.tag.cyan { background: rgba(6,182,212,0.15); color: var(--accent-4); }
.tag.green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.tag.amber { background: rgba(245,158,11,0.15); color: var(--accent-amber); }

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 14px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-3), var(--accent-4));
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 18px;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -33px; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-1);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(0,120,212,0.3);
}
.timeline-item:nth-child(2)::before { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(99,102,241,0.3); }
.timeline-item:nth-child(3)::before { background: var(--accent-3); box-shadow: 0 0 0 3px rgba(139,92,246,0.3); }
.timeline-item:nth-child(4)::before { background: var(--accent-4); box-shadow: 0 0 0 3px rgba(6,182,212,0.3); }
.timeline-item:nth-child(5)::before { background: var(--accent-green); box-shadow: 0 0 0 3px rgba(16,185,129,0.3); }
.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}
.timeline-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* --- Takeaway box --- */
.takeaway-box {
    background: linear-gradient(135deg, rgba(0,120,212,0.08), rgba(99,102,241,0.08));
    border: 1px solid rgba(0,120,212,0.2);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-top: 24px;
}
.takeaway-box .takeaway-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .slide { padding: 40px 24px; }
    .slide-title { font-size: 2rem; }
    .cover-slide .slide-title { font-size: 2.4rem; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .split-layout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .slide-title { font-size: 1.6rem; }
    .cover-slide .slide-title { font-size: 1.8rem; }
}
