/* ==========================================================================
   handlit — AI Lead Engine Walkthrough Deck
   Rich Presentation Aesthetics: Dark Mode, Glassmorphism, Gradients, Micro-animations
   ========================================================================== */

:root {
    --bg-primary: #06070b;
    --bg-secondary: #0d1018;
    --bg-glass: rgba(18, 22, 35, 0.7);
    --bg-glass-hover: rgba(26, 32, 52, 0.88);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-purple: #9b51e0;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.35);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Ghost Word Signature (MANDATORY RULE)
   Exactly one ghost-italic word per headline, wrapped in .ghost class,
   which must always be bold italic (weight: bold/700, style: italic).
   ========================================================================== */
.ghost {
    font-weight: 700 !important;
    font-style: italic !important;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-right: 2px;
}

/* ==========================================================================
   Background Effects
   ========================================================================== */
.deck-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.22;
    animation: orbFloat 25s ease-in-out infinite alternate;
}

.orb-1 {
    top: -15%;
    left: 10%;
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
}

.orb-2 {
    bottom: -15%;
    right: 10%;
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    animation-delay: -12s;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.15); }
    100% { transform: translate(-30px, 60px) scale(0.9); }
}

/* ==========================================================================
   Presentation Header & Controls
   ========================================================================== */
.deck-header {
    height: 70px;
    padding: 0 2.5rem;
    background: rgba(13, 16, 24, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-badge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.slide-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 400px;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 16.66%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.slide-counter {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 85px;
    text-align: right;
}

.deck-controls {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #06070b;
    border: none;
    font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.4);
}

.btn-xl {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
    border-radius: 14px;
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Slide Stage & Transitions
   ========================================================================== */
.deck-stage {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide.prev {
    transform: translateX(-40px);
}

.slide-content {
    max-width: 1150px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 1rem;
}

.slide-content::-webkit-scrollbar {
    width: 6px;
}

.slide-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* ==========================================================================
   Slide Typography & Headers
   ========================================================================== */
.text-center {
    text-align: center;
}

.slide-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 2.5rem;
}

.slide-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.5rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.slide-subtitle, .slide-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.card-glass:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.slide-1-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-box {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-icon {
    font-size: 2rem;
}

.feature-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Slide 2: Comparison Grid
   ========================================================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comp-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.border-red {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

.border-green {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.04);
}

.status-badge {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.bg-red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.bg-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.pain-list, .gain-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.pain-list li {
    color: #fca5a5;
    padding-left: 1.5rem;
    position: relative;
}

.pain-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.gain-list li {
    color: #86efac;
    padding-left: 1.5rem;
    position: relative;
}

.gain-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* ==========================================================================
   Slide 3 & 4: Pipeline Stages
   ========================================================================== */
.pipeline-stage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stage-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-stage {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.15);
}

.stage-number {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.text-cyan {
    color: var(--accent-cyan);
}

.stage-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stage-highlight {
    margin-top: auto;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-blue);
    border-radius: 8px;
    font-size: 0.88rem;
    color: #e2e8f0;
}

.border-cyan {
    border-left-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.06);
}

.border-green {
    border-left-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.06);
}

.score-ruler {
    margin: 1rem 0;
}

.ruler-bar {
    height: 24px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ruler-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-green));
}

.ruler-marker {
    position: absolute;
    top: 0;
    height: 100%;
    border-left: 2px dashed #fff;
    padding-left: 6px;
    display: flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 0 8px;
}

.icebreaker-examples {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.example-box {
    background: rgba(9, 10, 15, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.ex-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.example-box p {
    font-size: 0.85rem;
    font-style: italic;
    color: #e2e8f0;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.channel-item {
    background: rgba(9, 10, 15, 0.6);
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.channel-item small {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: normal;
}

/* ==========================================================================
   Slide 5: Outcomes & ROI
   ========================================================================== */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.outcome-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem 1.25rem;
}

.outcome-metric {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

.text-green { color: var(--accent-green); }
.text-purple { color: var(--accent-purple); }
.text-orange { color: var(--accent-orange); }

.outcome-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
}

.outcome-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.deck-roi-widget {
    padding: 1.5rem 2rem;
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(18, 22, 35, 0.8), rgba(79, 172, 254, 0.08));
}

.roi-flex {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.roi-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.roi-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.font-bold { font-weight: 700; }

.roi-result-box {
    background: rgba(6, 7, 11, 0.8);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.res-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.res-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }

/* ==========================================================================
   Slide 6: Next Steps & Onboarding
   ========================================================================== */
.guarantee-box {
    max-width: 850px;
    margin: 0 auto;
    padding: 2.25rem;
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(18, 22, 35, 0.85), rgba(16, 185, 129, 0.08));
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
}

.guarantee-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.guarantee-box h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.guarantee-box p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.onboarding-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 850px;
    margin: 1.5rem auto 0;
}

.onb-step {
    background: rgba(18, 22, 35, 0.6);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1rem;
    border-radius: 14px;
    flex: 1;
    text-align: center;
}

.onb-num {
    width: 28px;
    height: 28px;
    background: var(--accent-blue);
    color: #06070b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.onb-step strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.onb-step p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.onb-arrow {
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 300;
}

.final-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.sub-cta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Presentation Footer
   ========================================================================== */
.deck-footer {
    height: 50px;
    padding: 0 2.5rem;
    background: rgba(13, 16, 24, 0.9);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 100;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-tagline {
    font-style: italic;
    color: var(--text-secondary);
}

.footer-right code {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    body {
        overflow: auto;
        height: auto;
    }
    
    .deck-stage {
        padding: 1rem;
        height: auto;
        min-height: calc(100vh - 120px);
    }
    
    .slide {
        position: relative;
        padding: 1.5rem;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: none;
    }
    
    .slide.active {
        display: flex;
    }
    
    .slide-1-grid, .comparison-grid, .pipeline-stage-grid, .outcomes-grid, .roi-flex, .onboarding-steps {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .onb-arrow { display: none; }
    
    .slide-progress-wrapper {
        width: 180px;
    }
}
