/* USA Capital Group - Fintech Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --bg-deep: #0f172a;
    --bg-mid: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.9);
    --green-dark: #047857;
    --green-mid: #059669;
    --green-bright: #10b981;
    --green-light: #34d399;
    --green-pale: #6ee7b7;
    --text-white: #ffffff;
    --text-slate: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(16, 185, 129, 0.3);
}

body {
    width: 1920px;
    height: 1080px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 80px 60px;
    position: relative;
    overflow: hidden;
}

/* Accent bar */
.accent-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 8px;
    background: linear-gradient(90deg, #047857, #059669, #10b981, #34d399, #10b981);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Background orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%); top: -250px; left: -250px; animation-delay: 0s; }
.orb-2 { width: 900px; height: 900px; background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 70%); bottom: -350px; right: -350px; animation-delay: 7s; }
.orb-3 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(52,211,153,0.06) 0%, transparent 70%); top: 40%; right: 5%; animation-delay: 14s; }

@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-30px) scale(1.08); }
    66% { transform: translate(-20px,20px) scale(0.93); }
}

/* Slide number */
.slide-number {
    position: absolute;
    bottom: 28px; right: 60px;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 2px;
}

/* Logo/brand */
.brand {
    position: absolute;
    bottom: 28px; left: 60px;
    display: flex; align-items: center; gap: 10px;
}
.brand-dot {
    width: 10px; height: 10px;
    background: var(--green-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green-bright);
}
.brand-name {
    font-size: 14px; font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Content */
.content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1680px;
}

/* Section header */
.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--green-bright);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.slide-title {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.slide-subtitle {
    font-size: 24px;
    color: var(--text-slate);
    font-weight: 400;
    margin-bottom: 48px;
}

/* Glass card */
.glass-card {
    background: linear-gradient(135deg, rgba(30,41,59,0.95) 0%, rgba(15,23,42,0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border: 1px solid rgba(16,185,129,0.15);
}
.glass-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(16,185,129,0.6), rgba(5,150,105,0.2), rgba(16,185,129,0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(16,185,129,0.2);
    border-color: rgba(16,185,129,0.3);
}

/* Stat display */
.stat-big {
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -3px;
    line-height: 1;
}
.stat-label {
    font-size: 20px;
    color: var(--text-slate);
    font-weight: 500;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.stat-desc {
    font-size: 17px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* Icon */
.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(16,185,129,0.4));
}

/* Green pill */
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.4);
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 18px; font-weight: 600;
    color: var(--green-light);
    backdrop-filter: blur(8px);
}

/* Impact banner */
.impact-banner {
    background: linear-gradient(135deg, #059669 0%, #10b981 60%, #34d399 100%);
    border-radius: 16px;
    padding: 28px 48px;
    text-align: center;
    box-shadow: 0 16px 50px rgba(16,185,129,0.35);
    font-size: 26px; font-weight: 700;
    color: white;
    position: relative; overflow: hidden;
}
.impact-banner::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: shimmer 8s infinite linear;
}
@keyframes shimmer { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Divider */
.green-divider {
    width: 80px; height: 4px;
    background: linear-gradient(90deg, #059669, #34d399);
    border-radius: 2px;
    margin-bottom: 32px;
}

/* Flow arrow */
.flow-arrow {
    display: flex; align-items: center;
    color: var(--green-bright);
    font-size: 32px;
    padding: 0 8px;
}

/* ========================================
   MOBILE NAVIGATION BUTTONS
   (visible only when slide viewed standalone)
   ======================================== */
.slide-nav-btn {
    display: none;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(16,185,129,0.2);
    border: 1px solid rgba(16,185,129,0.4);
    color: #10b981;
    font-size: 22px; font-weight: 700;
    align-items: center; justify-content: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.slide-nav-btn:hover { background: rgba(16,185,129,0.4); }
.slide-nav-btn.disabled { opacity: 0.25; pointer-events: none; }

/* ========================================
   TABLET RESPONSIVE (1024px and below)
   ======================================== */
@media (max-width: 1024px) {
    body {
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        padding: 40px 48px 70px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    .slide-title { font-size: 52px !important; }
}

/* ========================================
   MOBILE RESPONSIVE (768px and below)
   ======================================== */
@media (max-width: 768px) {
    /* === Base layout === */
    body {
        width: 100vw !important;
        height: auto !important;
        min-height: 100vh;
        padding: 20px 16px 72px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .content {
        max-width: 100% !important;
    }

    /* === Typography === */
    .slide-title {
        font-size: 26px !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }
    .section-label {
        font-size: 10px !important;
        letter-spacing: 2px !important;
        margin-bottom: 8px !important;
    }
    .slide-subtitle {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    /* === Background orbs — scale way down === */
    .orb-1 { width: 180px !important; height: 180px !important; top: -60px !important; left: -60px !important; }
    .orb-2 { width: 220px !important; height: 220px !important; bottom: -80px !important; right: -80px !important; }
    .orb-3 { width: 120px !important; height: 120px !important; }

    /* === Universal grid → single column === */
    .main-layout,
    .main-grid,
    .right-panel,
    .cards-grid,
    .top-row,
    .bottom-row,
    .metrics-grid,
    .ops-layout,
    .cap-layout,
    .econ-layout,
    .risk-layout,
    .team-grid,
    .cards {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Keep 2-col for small cards that work at mobile width */
    .risk-grid,
    .structure-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    /* Remove wide grid-column spans */
    [class*="wide"],
    [style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* === Stat numbers === */
    .stat-num {
        font-size: 56px !important;
        letter-spacing: -2px !important;
    }

    /* === Metric cards === */
    .metric-card {
        padding: 24px 20px !important;
    }
    .metric-value {
        font-size: 44px !important;
        letter-spacing: -1px !important;
    }
    .metric-icon {
        font-size: 36px !important;
        margin-bottom: 12px !important;
    }
    .metric-label { font-size: 13px !important; }
    .metric-desc { font-size: 13px !important; }

    /* === Glass card === */
    .glass-card { padding: 20px !important; }

    /* === Stat big === */
    .stat-big { font-size: 44px !important; }
    .stat-label { font-size: 14px !important; }
    .stat-desc { font-size: 13px !important; }

    /* === Slide 01: hero layout === */
    .stats-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .stat-pill { min-width: auto !important; padding: 18px 20px !important; }
    .stat-pill-value { font-size: 22px !important; }
    .stat-pill-label { font-size: 11px !important; }
    .stat-separator { display: none !important; }
    .main-title { font-size: 40px !important; letter-spacing: -1px !important; }
    .subtitle { font-size: 18px !important; margin-bottom: 28px !important; }

    /* === Slide 02: info cards === */
    .info-card { padding: 22px !important; }
    .info-card.wide { grid-column: span 1 !important; }
    .card-emoji { font-size: 32px !important; margin-bottom: 10px !important; }
    .card-h { font-size: 17px !important; }
    .card-body { font-size: 14px !important; }
    .principals { flex-direction: column !important; gap: 16px !important; }
    .principal-name { font-size: 16px !important; }

    /* === Slide 03: stat cards === */
    .stat-card { padding: 28px 20px !important; }

    /* === Slide 04: metrics + bottom banner === */
    .bottom-banner {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 20px !important;
    }
    .banner-sep { display: none !important; }
    .banner-val { font-size: 18px !important; }
    .banner-lab { font-size: 12px !important; }

    /* === Slide 05: acquisition === */
    .acq-card { padding: 24px !important; }
    .acq-title { font-size: 20px !important; }
    .acq-body { font-size: 14px !important; }
    .left-text h2 { font-size: 30px !important; }
    .left-text p { font-size: 15px !important; }

    /* === Slide 06: operations flow === */
    .flow-steps {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    .flow-step { flex: calc(50% - 4px) !important; min-width: 0 !important; padding: 16px 10px !important; }
    .flow-connector { display: none !important; }
    .flow-step-icon { font-size: 28px !important; }
    .flow-step-label { font-size: 13px !important; }
    .flow-step-sub { font-size: 11px !important; }
    .process-title { font-size: 14px !important; margin-bottom: 16px !important; }
    .team-card { padding: 18px !important; }
    .team-info-title { font-size: 14px !important; }
    .team-info-sub { font-size: 12px !important; }
    .eff-card { padding: 20px !important; }
    .eff-stat { font-size: 26px !important; }

    /* === Slide 07: capital structure === */
    .source-card { padding: 28px !important; margin-bottom: 14px !important; }
    .source-stat { font-size: 40px !important; }
    .source-title { font-size: 20px !important; }
    .source-icon { font-size: 36px !important; }
    .source-desc { font-size: 14px !important; }

    /* === Slide 08: deal economics waterfall === */
    .waterfall {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    .wf-stage { padding: 20px !important; }
    .wf-arrow { display: none !important; }
    .wf-val { font-size: 26px !important; }
    .wf-stage.profit .wf-val { font-size: 28px !important; }
    .margin-card { padding: 16px 20px !important; }
    .mc-label { font-size: 14px !important; }
    .mc-val { font-size: 17px !important; }
    .deal-summary { gap: 12px !important; }
    .s-val { font-size: 36px !important; }
    .s-lab { font-size: 12px !important; }

    /* === Slide 09: risk profile === */
    .left-hero { margin-bottom: 24px !important; }
    .shield-icon { font-size: 80px !important; }
    .shield-ring { width: 120px !important; height: 120px !important; }
    .shield-ring-2 { width: 150px !important; height: 150px !important; }
    .zero-badge { padding: 16px 24px !important; }
    .zero-num { font-size: 40px !important; }
    .zero-label { font-size: 12px !important; }
    .risk-card { padding: 18px !important; gap: 12px !important; }
    .risk-card-num { width: 40px !important; height: 40px !important; font-size: 16px !important; border-radius: 10px !important; }
    .risk-card-title { font-size: 16px !important; margin-bottom: 6px !important; }
    .risk-card-desc { font-size: 13px !important; }
    .risk-card[style*="grid-column: span 2"] { grid-column: span 1 !important; }

    /* === Slide 10: financing objective === */
    .fin-content { padding: 0 !important; }
    .big-ask { font-size: 40px !important; letter-spacing: -1px !important; }
    .ask-sub { font-size: 20px !important; margin-bottom: 28px !important; }
    .benefits {
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }
    .benefit-card { min-width: auto !important; padding: 24px !important; }
    .benefit-divider { display: none !important; }
    .benefit-icon { font-size: 36px !important; margin-bottom: 10px !important; }
    .benefit-title { font-size: 18px !important; }
    .benefit-desc { font-size: 14px !important; }
    .use-of-funds {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 20px !important;
    }
    .uof-sep { display: none !important; }
    .uof-val { font-size: 18px !important; }
    .uof-lab { font-size: 12px !important; }

    /* === Footer === */
    .slide-number {
        position: fixed !important;
        bottom: 0 !important; left: 0 !important; right: 0 !important;
        font-size: 13px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px !important;
        background: rgba(15,23,42,0.95) !important;
        border-top: 1px solid rgba(16,185,129,0.2) !important;
        padding: 10px 16px !important;
        backdrop-filter: blur(10px) !important;
        z-index: 999 !important;
    }
    .brand {
        display: none !important;
    }
    .slide-nav-btn {
        display: flex !important;
    }
}

/* ========================================
   SMALL MOBILE (480px and below)
   ======================================== */
@media (max-width: 480px) {
    body {
        padding: 16px 12px 70px !important;
    }
    .slide-title { font-size: 22px !important; }
    .stat-num { font-size: 44px !important; }
    .metric-value { font-size: 36px !important; }
    .main-title { font-size: 32px !important; }
    .big-ask { font-size: 32px !important; }
    .risk-grid { grid-template-columns: 1fr !important; }
    .structure-grid { grid-template-columns: 1fr 1fr !important; }
}
