/* ===================================
   Design Tokens & Variables — Corvalent Smart Building
   =================================== */
:root {
    /* Brand Colors — Corvalent Smart Building */
    --primary: #004B8D;
    --primary-deep: #003A70;
    --accent: #0072CE;
    --accent-light: #3395D4;

    /* Light Theme Base */
    --bg-base: #F2F4F6;
    --bg-gradient-start: #F2F4F6;
    --bg-gradient-end: #E4E8EE;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(0, 75, 141, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 58, 112, 0.08);
    --glass-shadow-hover: 0 12px 48px rgba(0, 58, 112, 0.15);

    /* Text Colors */
    --text-primary: #1A1D29;
    --text-secondary: #4A5568;
    --text-muted: #6E7478;
    --text-white: #FFFFFF;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Blur */
    --blur-light: 10px;
    --blur-medium: 15px;
    --blur-heavy: 20px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--primary-deep);
    margin-bottom: var(--spacing-md);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: var(--spacing-md); color: var(--text-secondary); }
a { text-decoration: none; color: var(--primary); transition: color var(--transition-fast); }
a:hover { color: var(--accent); }

/* ===================================
   Layout Components
   =================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-lg); }
.section-title { text-align: center; margin-bottom: var(--spacing-md); padding-top: var(--spacing-sm); }
.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    line-height: 1.6;
}

/* ===================================
   Glass Cards
   =================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-medium));
    -webkit-backdrop-filter: blur(var(--blur-medium));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
}
.glass-card:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-hover); border-color: var(--primary); }
.glass-frame {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-light));
    -webkit-backdrop-filter: blur(var(--blur-light));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text-white) !important;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    transition: all var(--transition-base);
    border: 2px solid var(--primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, transparent 0%, transparent 70%, var(--accent) 85%, var(--accent) 95%, transparent 100%);
    border-radius: var(--radius-md);
    animation: spinBorder 3s linear infinite;
    z-index: -1;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--primary);
    border-radius: calc(var(--radius-md) - 2px);
    z-index: -1;
}
@keyframes spinBorder { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); transform: translateY(-2px); }
.btn-primary:hover::after { background: var(--primary-deep); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-light));
    -webkit-backdrop-filter: blur(var(--blur-light));
    color: var(--primary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    border: 2px solid var(--primary);
    transition: all var(--transition-base);
    cursor: pointer;
    font-size: 1rem;
}
.btn-secondary:hover { background: var(--primary); color: var(--text-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 75, 141, 0.2); }

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 75, 141, 0.1);
    color: var(--primary) !important;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;
}
.btn-logout:hover { background: var(--primary); color: white !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 75, 141, 0.3); }

.btn-large { padding: var(--spacing-md) var(--spacing-xl); font-size: 1.125rem; }

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}
.navbar.scrolled { box-shadow: var(--glass-shadow); }
.nav-content { display: flex; justify-content: flex-start; align-items: center; gap: 10px; padding: var(--spacing-sm) 0; }
.navbar-logo { height: 26px; width: auto; display: block; }
.nav-links { display: flex; list-style: none; align-items: center; gap: 2px; flex-wrap: nowrap; margin-left: 0; }
.nav-links li { display: flex; align-items: center; height: 100%; }
.nav-links a {
    font-size: 0.82rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    position: relative;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.nav-links a:not(.btn-primary):hover { color: var(--primary); background: rgba(0, 75, 141, 0.05); border-color: var(--glass-border); }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: var(--spacing-xs); }
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--primary); transition: all var(--transition-fast); }

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 3rem;
    overflow: hidden;
}
.hero-video-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}
.hero-video-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,58,112,0.82) 0%, rgba(0,75,141,0.70) 100%);
    z-index: 2;
}
.hero-gradient {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 75, 141, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 114, 206, 0.05) 0%, transparent 50%);
    z-index: 0;
}
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-text { z-index: 2; width: 100%; }
.badge-presented {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid rgba(0, 75, 141, 0.3);
    border-radius: 60px;
    padding: var(--spacing-sm) var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
}
.badge-presented:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 75, 141, 0.2); }
.badge-text { font-size: 1rem; font-weight: var(--font-weight-semibold); color: var(--text-primary); letter-spacing: 0.02em; }
.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: white;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
}
.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.hero-cta { display: flex; gap: var(--spacing-md); flex-wrap: wrap; justify-content: center; }

/* ===================================
   Podcast Player
   =================================== */
.podcast-section { padding: 0; background: linear-gradient(90deg, var(--primary-deep) 0%, var(--primary) 100%); }
.podcast-player-wrapper { width: 100%; }
.podcast-slim-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    min-height: 64px;
}
.podcast-play-btn {
    position: relative;
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.podcast-play-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }
.podcast-pulse {
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    animation: podcastPulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes podcastPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}
.podcast-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.podcast-slim-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.podcast-slim-title { font-size: 0.85rem; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podcast-slim-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.7rem; font-weight: 600; color: #90CAF9;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    padding: 2px 8px; border-radius: 20px; flex-shrink: 0;
}
.podcast-progress-container { cursor: pointer; padding: 3px 0; }
.podcast-progress-bar { position: relative; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.podcast-progress-fill { height: 100%; background: linear-gradient(90deg, #64B5F6, white); border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.podcast-progress-thumb {
    position: absolute; top: 50%; right: 0;
    width: 12px; height: 12px;
    background: white; border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: left 0.1s linear;
    opacity: 0;
    transition: opacity 0.2s;
}
.podcast-progress-container:hover .podcast-progress-thumb { opacity: 1; }
.podcast-slim-time { display: flex; justify-content: space-between; font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-top: 2px; }
.podcast-right-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.podcast-skip-btn {
    position: relative; background: none; border: none; color: rgba(255,255,255,0.7);
    cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center;
    transition: color 0.2s; border-radius: 6px;
}
.podcast-skip-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.skip-label { position: absolute; font-size: 0.55rem; font-weight: 700; bottom: 3px; color: inherit; }
.podcast-speed-group { display: flex; gap: 2px; }
.podcast-speed-btn {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7); font-size: 0.72rem; font-weight: 600;
    padding: 3px 7px; border-radius: 4px; cursor: pointer; transition: all 0.2s;
}
.podcast-speed-btn.active, .podcast-speed-btn:hover { background: rgba(255,255,255,0.25); color: white; }
.podcast-mute-btn { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; padding: 4px; display: flex; transition: color 0.2s; }
.podcast-mute-btn:hover { color: white; }
.podcast-volume-slider {
    -webkit-appearance: none; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,0.3); outline: none; cursor: pointer;
}
.podcast-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px;
    border-radius: 50%; background: white; cursor: pointer;
}

/* ===================================
   Section Styles
   =================================== */
section { padding: var(--spacing-3xl) 0; }
.context-section { background: #FFFFFF; }
.platform-section { background: var(--bg-base); }
.productivity-section { background: #FFFFFF; }
.benefits-section { background: var(--bg-base); }
.tech-section { background: #FFFFFF; }
.security-section { background: var(--bg-base); }
.benchmarks-section { background: #FFFFFF; }
.dashboard-section { background: var(--bg-base); }
.downloads-section { background: #FFFFFF; }
.next-steps-section { background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%); color: white; }
.next-steps-section .section-title { color: white; }
.next-steps-section .section-subtitle { color: rgba(255,255,255,0.8); }

/* ===================================
   Context Grid
   =================================== */
.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.card-icon { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(0,75,141,0.08), rgba(0,75,141,0.15)); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }

/* ===================================
   Platform Section
   =================================== */
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.platform-card .feature-list { list-style: none; padding: 0; }
.platform-card .feature-list li {
    padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border); display: flex; align-items: flex-start; gap: 8px;
}
.platform-card .feature-list li::before { content: '→'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ===================================
   Productivity / Solutions
   =================================== */
.productivity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.productivity-card { display: flex; flex-direction: column; }
.productivity-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; color: white; flex-shrink: 0;
}
.productivity-icon svg { width: 28px; height: 28px; stroke: white; }
.productivity-card h4 { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.productivity-features { list-style: none; padding: 0; margin: 0; }
.productivity-features li { padding: 0.4rem 0; font-size: 0.875rem; color: var(--text-secondary); border-bottom: 1px solid rgba(0,75,141,0.08); display: flex; align-items: flex-start; gap: 8px; }
.productivity-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ===================================
   Benefits
   =================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.benefit-card { display: flex; flex-direction: column; text-align: center; align-items: center; }
.benefit-icon { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(0,75,141,0.08), rgba(0,75,141,0.15)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.benefit-icon svg { width: 32px; height: 32px; }

/* ===================================
   Tech Pills
   =================================== */
.tech-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.tech-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--glass-shadow);
    display: flex; flex-direction: column; align-items: center;
}
.tech-pill:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--glass-shadow-hover); border-color: var(--primary); }
.pill-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: white; }
.pill-icon svg { width: 26px; height: 26px; stroke: white; }
.pill-title { font-weight: var(--font-weight-bold); color: var(--primary-deep); font-size: 1rem; margin-bottom: 0.5rem; display: block; }
.tech-pill p { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 1rem; flex: 1; }

/* ===================================
   Security Section
   =================================== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.security-icon { width: 56px; height: 56px; background: linear-gradient(135deg, rgba(0,75,141,0.08), rgba(0,75,141,0.15)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.security-icon svg { width: 28px; height: 28px; }
.security-item h4 { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===================================
   Benchmarks
   =================================== */
.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.benchmark-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.benchmark-icon { width: 56px; height: 56px; background: linear-gradient(135deg, rgba(0,75,141,0.08), rgba(0,75,141,0.15)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.benchmark-icon svg { width: 28px; height: 28px; }
.benchmark-metric { margin: 0.5rem 0 1rem; }
.metric-range { display: flex; align-items: baseline; gap: 4px; justify-content: center; }
.metric-first, .metric-second { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.metric-separator { font-size: 2rem; font-weight: 700; color: var(--text-muted); }
.metric-symbol { font-size: 2rem; font-weight: 700; color: var(--primary); }
.benchmark-impact { display: inline-block; background: rgba(0,75,141,0.08); color: var(--primary); font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 1rem; }
.benchmark-connection {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--glass-shadow); margin-bottom: 1.5rem;
}
.benchmark-connection h4 { color: var(--primary-deep); margin-bottom: 1rem; font-size: 1.1rem; }
.benchmark-connection ul { list-style: none; padding: 0; }
.benchmark-connection li { padding: 0.6rem 0; border-bottom: 1px solid var(--glass-border); font-size: 0.925rem; color: var(--text-secondary); }
.benchmark-connection li:last-child { border-bottom: none; }
.source-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; font-style: italic; }

/* ===================================
   Dashboard Gallery Viewer (dg-*)
   =================================== */

/* ── Outer wrapper: sidebar + main ── */
.dg-wrapper {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* ── Left sidebar ── */
.dg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 90px;
}
.dg-sidebar-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 0.25rem;
    margin-bottom: 0.25rem;
}
.dg-tabs { display: flex; flex-direction: column; gap: 6px; }
.dg-tab {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-md); padding: 0.75rem 1rem;
    cursor: pointer; transition: all var(--transition-base);
    text-align: left; box-shadow: var(--glass-shadow);
    width: 100%;
}
.dg-tab:hover { border-color: var(--primary); background: rgba(0,75,141,0.05); transform: translateX(2px); }
.dg-tab.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0,75,141,0.12), rgba(0,75,141,0.05));
    box-shadow: 0 0 0 1px var(--primary) inset, var(--glass-shadow);
}
.dg-tab-num {
    font-size: 0.68rem; font-weight: 800; color: var(--primary);
    letter-spacing: 0.1em; min-width: 22px; flex-shrink: 0;
}
.dg-tab-name { font-size: 0.83rem; font-weight: 600; color: var(--primary-deep); line-height: 1.3; }
.dg-tab.active .dg-tab-num { color: var(--primary); }
.dg-tab.active .dg-tab-name { color: var(--primary-deep); }

/* ── Right main column ── */
.dg-main { display: flex; flex-direction: column; gap: 0.875rem; }

/* ── Image stage ── */
.dg-stage {
    position: relative;
    background: #0d1117;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.06);
    cursor: pointer;
}
.dg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.dg-img.fading { opacity: 0; transform: scale(0.985); }

/* Prev / Next arrows */
.dg-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.15);
    color: white; border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s; backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
}
.dg-stage:hover .dg-arrow { opacity: 1; pointer-events: auto; }
.dg-arrow:hover { background: rgba(0,75,141,0.8); border-color: var(--primary); }
.dg-arrow-prev { left: 12px; }
.dg-arrow-next { right: 12px; }

/* Counter badge */
.dg-counter {
    position: absolute; bottom: 14px; right: 14px; z-index: 10;
    background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.9);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
    padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.12);
}

/* Expand (fullscreen) button */
.dg-expand {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.15);
    color: white; border-radius: 8px; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s; backdrop-filter: blur(4px);
    opacity: 0;
}
.dg-stage:hover .dg-expand { opacity: 1; }
.dg-expand:hover { background: rgba(0,75,141,0.8); }

/* ── Caption bar ── */
.dg-caption {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-md); padding: 1.1rem 1.4rem;
    display: flex; align-items: flex-start; gap: 1rem;
}
.dg-caption-inner { flex: 1; }
.dg-caption h4 {
    font-size: 1rem; font-weight: 700; color: var(--primary-deep);
    margin: 0 0 0.35rem;
}
.dg-caption p {
    font-size: 0.875rem; color: var(--text-secondary); margin: 0; line-height: 1.6;
}

/* ── Thumbnail strip ── */
.dg-thumbs {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
.dg-thumbs::-webkit-scrollbar { height: 3px; }
.dg-thumbs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.dg-thumb {
    flex-shrink: 0;
    width: 88px; height: 58px;
    background-image: var(--bg);
    background-size: cover; background-position: center;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, opacity 0.2s;
    opacity: 0.6;
}
.dg-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.dg-thumb.active { border-color: var(--primary); opacity: 1; transform: translateY(-2px); }

/* ── Lightbox ── */
.dg-lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(5, 10, 20, 0.94);
    backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
    gap: 1rem; padding: 2rem;
    animation: lbFadeIn 0.22s ease;
}
.dg-lightbox.open { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.dg-lb-close {
    position: fixed; top: 18px; right: 22px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: white; border-radius: 50%; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s; z-index: 10000;
}
.dg-lb-close:hover { background: rgba(255,255,255,0.2); }

.dg-lb-arrow {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
    color: white; border-radius: 50%; width: 52px; height: 52px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s;
}
.dg-lb-arrow:hover { background: rgba(0,75,141,0.7); }

.dg-lb-img-wrap {
    flex: 1; max-width: 1200px; display: flex; flex-direction: column;
    align-items: center; gap: 1rem;
}
.dg-lb-img-wrap img {
    max-width: 100%; max-height: 78vh;
    object-fit: contain; border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.dg-lb-caption {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    text-align: center;
}
.dg-lb-caption strong { color: white; font-size: 1rem; }
.dg-lb-caption span { color: rgba(255,255,255,0.65); font-size: 0.875rem; max-width: 700px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .dg-wrapper { grid-template-columns: 1fr; }
    .dg-sidebar { position: static; }
    .dg-tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .dg-tab { flex: 1 1 calc(50% - 6px); min-width: 140px; }
    .dg-sidebar-label { display: none; }
}
@media (max-width: 600px) {
    .dg-tab { flex: 1 1 100%; }
    .dg-thumb { width: 66px; height: 44px; }
}

/* ===================================
   Downloads / Materials
   =================================== */
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.download-card { display: flex; flex-direction: column; gap: 0.75rem; }
.download-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.download-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.file-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; background: rgba(0,75,141,0.1); color: var(--primary); padding: 3px 8px; border-radius: 4px; }
.file-size, .read-time { font-size: 0.8rem; color: var(--text-muted); }
.btn-download {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: white; padding: 10px 16px; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 600; cursor: pointer;
    border: none; transition: all var(--transition-base); text-decoration: none;
}
.btn-download:hover { opacity: 0.9; transform: translateY(-1px); color: white; }

/* ===================================
   Next Steps
   =================================== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.step-item { position: relative; overflow: hidden; }
.step-number { font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,0.12); line-height: 1; margin-bottom: 0.5rem; display: block; }
.step-item h3 { color: white; font-size: 1.1rem; margin-bottom: 0.75rem; }
.step-item p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; }
.step-item.glass-card { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.step-item.glass-card:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.35); }
.cta-container { text-align: center; }
.cta-container h3 { color: white; }
.cta-container p { color: rgba(255,255,255,0.8); }

/* ===================================
   Info Button
   =================================== */
.btn-info {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,75,141,0.08); color: var(--primary);
    border: 1px solid rgba(0,75,141,0.2); border-radius: var(--radius-sm);
    padding: 8px 14px; font-size: 0.825rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-base);
    margin-top: auto;
}
.btn-info:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-1px); }
.info-icon { display: flex; align-items: center; }

/* ===================================
   Confidentiality Bar
   =================================== */
.confidentiality-bar {
    background: linear-gradient(135deg, #0a1628 0%, #001a3d 100%);
    border-top: 3px solid var(--primary);
    padding: 1.25rem 0;
}
.conf-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.conf-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0,75,141,0.25);
    border: 1px solid rgba(0,75,141,0.5);
    border-radius: 50%;
    color: #5ba3e0;
    margin-top: 1px;
}
.conf-text {
    font-size: 0.845rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin: 0;
}
.conf-text strong {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
}
@media (max-width: 600px) {
    .conf-inner { flex-direction: column; gap: 0.75rem; }
    .conf-icon { width: 34px; height: 34px; }
    .conf-text { font-size: 0.8rem; }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #002855 100%);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}
.footer-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p, .footer-contact p, .footer-presented p { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-logo { height: 36px; width: auto; display: block; margin-bottom: 1rem; filter: brightness(10); }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.6; }
.footer-contact h4, .footer-presented h4 { color: white; font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.presented-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.presented-date { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 0; }

/* ===================================
   Modal System
   =================================== */
.modal {
    position: fixed; inset: 0; z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
}
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 30, 60, 0.7); backdrop-filter: blur(4px); }
.modal-content {
    position: relative; background: #FFFFFF;
    border-radius: var(--radius-xl); padding: 2rem;
    max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 30, 60, 0.3);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { transform: translateY(20px) scale(0.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-base); border: none; cursor: pointer;
    font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--primary); color: white; }
.modal-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 1.5rem; }
.modal-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; color: white;
}
.modal-icon svg { width: 32px; height: 32px; stroke: white; }
.modal-header h2 { font-size: 1.4rem; color: var(--primary-deep); margin-bottom: 0.25rem; }
.modal-metric { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-top: 0.5rem; }
.modal-body h3 { font-size: 1rem; color: var(--primary-deep); margin-bottom: 1rem; }
.modal-body ul { list-style: none; padding: 0; }
.modal-body ul li {
    padding: 0.75rem 0; border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5;
}
.modal-body ul li:last-child { border-bottom: none; }
.modal-body ul li strong { color: var(--primary-deep); display: block; font-size: 0.85rem; margin-bottom: 2px; }
.modal-body ul.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* PDF Modal */
.modal-pdf .modal-content { max-width: 900px; width: 95vw; max-height: 90vh; padding: 0; overflow: hidden; }
.pdf-frame-wrap { width: 100%; height: 80vh; }
.pdf-frame-wrap iframe { width: 100%; height: 100%; border: none; }
.pdf-modal-header { padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--glass-border); }
.pdf-modal-header h3 { font-size: 1rem; color: var(--primary-deep); margin: 0; }

/* ===================================
   Login Page
   =================================== */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #002255 0%, #004B8D 50%, #003A70 100%);
    position: relative; overflow: hidden;
}
.login-card {
    background: white; border-radius: var(--radius-xl); padding: 2.5rem;
    max-width: 420px; width: 90%; box-shadow: 0 24px 80px rgba(0,30,60,0.4);
    position: relative; z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-title { font-size: 1.5rem; text-align: center; color: var(--primary-deep); margin-bottom: 0.5rem; }
.login-subtitle { font-size: 0.875rem; text-align: center; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.5; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--primary-deep); margin-bottom: 0.5rem; }
.form-group input {
    width: 100%; padding: 12px 16px; border: 1px solid var(--glass-border);
    border-radius: var(--radius-md); font-size: 1rem; font-family: var(--font-family);
    color: var(--text-primary); background: var(--bg-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,75,141,0.15); }
.btn-login {
    width: 100%; padding: 14px; background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: white; border: none; border-radius: var(--radius-md);
    font-size: 1rem; font-weight: 700; cursor: pointer; font-family: var(--font-family);
    transition: all var(--transition-base);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,75,141,0.4); }
.login-error {
    background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.3);
    border-radius: var(--radius-sm); padding: 10px 14px;
    color: #DC2626; font-size: 0.875rem; display: none; margin-bottom: 1rem;
}
.login-error.active { display: flex; align-items: center; gap: 6px; }
.login-badge {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 1.5rem; color: var(--text-muted); font-size: 0.78rem;
}

/* ===================================
   Carousel
   =================================== */
.carousel-wrapper { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.carousel-container { display: flex; transition: transform 0.5s ease; }
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; height: auto; display: block; }
.carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9); border: none; border-radius: 50%;
    width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--glass-shadow); transition: all var(--transition-fast);
}
.carousel-nav:hover { background: white; box-shadow: var(--glass-shadow-hover); }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 1rem; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glass-border); cursor: pointer; transition: all var(--transition-fast); }
.carousel-dot.active { background: var(--primary); transform: scale(1.2); }

/* ===================================
   Podcast Material Card
   =================================== */
.podcast-exclusive-tag,
.exclusive-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, rgba(0,75,141,0.12), rgba(0,58,112,0.08));
    color: var(--primary);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px; margin-bottom: 0.5rem;
    border: 1px solid rgba(0,75,141,0.25);
    width: fit-content;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .platform-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .dash-viewer { grid-template-columns: 1fr; }
    .dash-tabs { flex-direction: row; flex-wrap: wrap; }
    .dash-tab { flex: 1; min-width: 140px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--glass-bg); backdrop-filter: blur(20px); padding: 1rem; border-bottom: 1px solid var(--glass-border); z-index: 999; gap: 4px; }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: flex; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .modal-body ul.two-columns { grid-template-columns: 1fr; }
    .podcast-right-controls { display: none; }
    .podcast-slim-title { font-size: 0.78rem; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .badge-presented { flex-direction: column; gap: 0.5rem; padding: 0.75rem 1.5rem; }
    .hero-title { font-size: 2rem; }
}

/* ===================================
   Animations for data-animate
   =================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===================================
   Utility
   =================================== */
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }

/* Podcast Card in Materials */
.podcast-material-card {}
.video-card .youtube-embed { margin-top: 0.5rem; }
