/* product-dash.css */

:root {
    /* Theme Colors: Dark Glass & Neon Data */
    /* Colors & Glows */
    --dash-bg: #030712;
    --dash-surface: #0f172a;
    --dash-accent-cyan: #10B981; /* Emerald updated from Cyan */
    --dash-accent-main: #10B981; /* Main accent for Emerald theme */
    --dash-glow-cyan: rgba(16, 185, 129, 0.4);
    --dash-accent-blue: #3b82f6;
    --dash-glow-blue: rgba(59, 130, 246, 0.4);
    --dash-detail-gray: #94a3b8;
    
    /* Gradients */
    --bg-holo-gradient: radial-gradient(circle at 50% 0%, #1e293b 0%, #020617 80%);
    --glass-border: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
    --bg-grid-pattern: 
        linear-gradient(rgba(16, 185, 129,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129,0.03) 1px, transparent 1px);
}

/* --- Hero Section Refactor --- */
.dash-hero-section {
    position: relative;
    min-height: 90vh;
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--bg-holo-gradient);
    overflow: hidden;
    perspective: 2000px;
    display: flex;
    align-items: center;
}

/* Animated Grid Floor */
.dash-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-grid-pattern);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
    transform-origin: center top;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    pointer-events: none;
    z-index: 0;
}

/* Ambient Light Source */
.ambient-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--dash-glow-cyan) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}
.ambient-glow-2 {
     position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--dash-glow-blue) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Text Side */
.hero-text-content {
    position: relative;
    z-index: 10;
}

.hero-sub-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--dash-accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 15px rgba(16, 185, 129,0.15);
}

.hero-title-glitch {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
    position: relative;
}

.hero-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--dash-detail-gray);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Visual Stage Side */
.hero-visual-stage {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.holo-plane {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-15deg);
    transition: transform 0.5s ease-out;
}

.main-interface {
    width: 600px;
    height: 400px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.3); /* Top light catch */
    border-radius: 16px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(16, 185, 129,0.1), /* Rim light */
        0 0 40px rgba(16, 185, 129,0.05); /* Glow */
    position: relative;
    overflow: hidden;
}

/* Floating Widgets */
.float-widget {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 5;
}

.widget-alert {
    top: -40px;
    right: -60px;
    width: 220px;
    padding: 16px;
    border-left: 3px solid #ef4444;
    transform: translateZ(60px);
    animation: float-slow 6s ease-in-out infinite;
}

.widget-stats {
    bottom: -50px;
    left: -40px;
    width: 200px;
    padding: 16px;
    border-top: 3px solid var(--dash-accent-cyan);
    transform: translateZ(80px);
    animation: float-slow 5s ease-in-out infinite reverse;
}

/* UI Mockup Details */
.ui-top-bar {
    height: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}
.ui-dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.5; }
.ui-dot.r { background: #ef4444; }
.ui-dot.y { background: #eab308; }
.ui-dot.g { background: #22c55e; }

.ui-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    height: calc(100% - 40px);
}
.ui-sidebar {
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ui-line { height: 6px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.ui-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ui-graph-area {
    flex: 1;
    background: linear-gradient(180deg, rgba(16, 185, 129,0.05) 0%, transparent 100%);
    border: 1px dashed rgba(16, 185, 129,0.2);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.ui-graph-line {
    position: absolute;
    bottom: 0; left:0; right:0; top: 40%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 L0 15 Q20 5 40 12 T80 8 L100 15 L100 20 Z' fill='rgba(16, 185, 129,0.2)'/%3E%3Cpath d='M0 15 Q20 5 40 12 T80 8 L100 15' fill='none' stroke='%2310B981' stroke-width='0.5'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
}

/* Animations */
@keyframes float-slow {
    0%, 100% { transform: translateZ(60px) translateY(0); }
    50% { transform: translateZ(60px) translateY(-15px); }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-visual-stage {
        height: 400px;
        transform: scale(0.8);
    }
     .main-interface {
        width: 100%;
        max-width: 450px;
    }
}

/* --- Light Theme Overrides --- */
.light-theme {
    --dash-bg: #f8fafc; /* Slate 50 */
    --dash-surface: #ffffff; /* White */
    --dash-text-main: #0f172a; /* Slate 900 */
    --dash-text-muted: #64748b; /* Slate 500 */
    --dash-border: #e2e8f0; /* Slate 200 */
    --dash-border-hover: #cbd5e1; /* Slate 300 */
    --dash-glass: rgba(255, 255, 255, 0.7);
    
    background-color: var(--dash-bg);
    color: var(--dash-text-main);
}

.light-theme .text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .bento-card {
    background: var(--dash-surface);
    border-color: var(--dash-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.light-theme .bento-card:hover {
    border-color: var(--dash-accent-cyan);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.light-theme .bento-title { color: var(--dash-text-main); }
.light-theme .bento-desc { color: var(--dash-text-muted); }

body.page-q-dash {
    background-color: var(--dash-bg);
    color: #e5e5e5;
    font-family: 'IBM Plex Mono', monospace; /* User request: Mono font for entire page */
}

/* --- Utilities: Glassmorphism & Layout --- */
.glass-panel {
    background: var(--dash-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.glass-panel:hover {
    border-color: var(--dash-border-hover);
    box-shadow: 0 8px 32px -1px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent { color: var(--dash-accent-main); }
.text-cyan { color: var(--dash-accent-cyan); }
.text-success { color: var(--dash-accent-success); }
.text-mono { font-family: 'DM Mono', 'IBM Plex Mono', monospace; letter-spacing: -0.5px; }

/* --- Hero Section: Command Center --- */
.dash-hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1e1e24 0%, var(--dash-bg) 60%);
}

.dash-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 10;
}

.dash-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--dash-accent-main);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.dash-hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    font-weight: 700;
}

.dash-hero-subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* 3D Perspective Visual */
.dash-3d-container {
    perspective: 2000px;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -40px;
}

.dash-interface-main {
    width: 900px;
    height: 560px;
    background: #171717;
    border: 1px solid #333;
    border-radius: 20px;
    position: relative;
    transform: rotateX(20deg) scale(0.9);
    transform-style: preserve-3d;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.05),
        0 50px 100px -20px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: transform 0.1s ease-out; /* For parallax */
}

/* Mockup UI Elements */
.ui-top-bar {
    height: 48px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    background: rgba(255,255,255,0.02);
}
.ui-dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.3; }
.ui-dot.r { background: #ef4444; }
.ui-dot.y { background: #f59e0b; }
.ui-dot.g { background: #22c55e; }

.ui-grid {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    height: calc(100% - 48px);
}
.ui-sidebar { border-right: 1px solid #333; background: rgba(0,0,0,0.2); }
.ui-main { padding: 24px; display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.ui-aside { border-left: 1px solid #333; background: rgba(0,0,0,0.2); }

/* Floating Widgets (Parallax) */
.float-widget {
    position: absolute;
    padding: 16px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 20;
}
.fw-1 { top: 10%; left: 5%; width: 200px; }
.fw-2 { bottom: 15%; right: 5%; width: 240px; }

/* --- Features: Bento Grid --- */
.bento-section {
    padding: 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
}

.bento-card {
    background: #171717;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--dash-accent-main);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }

/* Bento Content */
.bento-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}

.bento-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--dash-accent-cyan);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.bento-icon-large svg {
    width: 40px;
    height: 40px;
}
.bento-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.bento-desc {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.5;
}
.bento-visual {
    flex-grow: 1;
    margin-top: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .dash-hero-title { font-size: 3.5rem; }
    .dash-interface-main { width: 100%; height: 400px; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card.wide { grid-column: span 2; }
    .bento-card.tall { grid-row: span 1; }
}

@media (max-width: 768px) {
    .dash-hero-title { font-size: 2.5rem; }
    .dash-interface-main { transform: none; height: 300px; margin-top: 40px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.wide { grid-column: span 1; }
}

/* --- Interactive Feature Accordion --- */
.feature-accordion {
    display: flex;
    gap: 16px;
    height: 500px;
    width: 100%;
    margin-top: 32px;
}

.accordion-panel {
    position: relative;
    flex: 1; /* Default collapsed state */
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.accordion-panel:hover,
.accordion-panel.active {
    flex: 3; /* Expanded state */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Background Image */
.panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    transition: transform 0.8s ease;
    z-index: 1;
}

.accordion-panel:hover .panel-bg,
.accordion-panel.active .panel-bg {
    transform: scale(1.1); /* Slow zoom effect */
}

/* Placeholder Pattern (Fallback) */
.panel-bg.placeholder {
    background-image: 
        radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(to bottom right, #334155, #0f172a);
    background-size: 20px 20px, 100% 100%;
}

/* Gradient Overlay - Lighter as requested */
.panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(15, 23, 42, 0.1) 0%, 
        rgba(15, 23, 42, 0.3) 50%, 
        rgba(15, 23, 42, 0.7) 100%);
    z-index: 2;
    transition: background 0.5s ease;
}

.accordion-panel:hover .panel-overlay,
.accordion-panel.active .panel-overlay {
    background: linear-gradient(to bottom, 
        rgba(15, 23, 42, 0.0) 0%, 
        rgba(15, 23, 42, 0.2) 50%, 
        rgba(15, 23, 42, 0.6) 100%);
}

/* Content Container */
.panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 600px; /* FIXED WIDTH: Prevents text reflow completely during expansion */
    padding: 32px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Helper to ensure text behaves */
/*Removed empty rule*/

.panel-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: white;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    white-space: nowrap; 
}

.panel-desc {
    font-size: 1rem;
    color: #f1f5f9; /* Slate 100 - brighter */
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: normal;
}

/* Expansion Logic */
.accordion-panel:hover .panel-desc,
.accordion-panel.active .panel-desc {
    max-height: 200px; /* Arbitrary large height */
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
}

/* Screenshot Label Badge */
.screenshot-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease 0.1s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.accordion-panel:hover .screenshot-badge,
.accordion-panel.active .screenshot-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .feature-accordion {
        flex-direction: column;
        height: auto;
    }
    
    .accordion-panel {
        height: 320px; /* Taller on mobile for better image view */
        flex: none !important;
    }
    
    .panel-bg {
        transform: scale(1) !important;
    }
    
    .panel-desc {
        max-height: none;
        opacity: 1;
        transform: translateY(0);
        margin-top: 12px;
    }
    
    .panel-overlay {
        background: linear-gradient(to bottom, 
            rgba(15, 23, 42, 0.3) 0%, 
            rgba(15, 23, 42, 0.9) 100%);
    }

    .panel-content {
        width: 100%; /* Reset to fluid for vertical stack */
    }
}

/* --- New Section 8: Roles & Access --- */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.role-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    border-color: var(--dash-accent-cyan);
}

.role-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--dash-text-main);
}

.role-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dash-text-main);
}

.role-desc {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
    line-height: 1.4;
}

.role-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--dash-accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- New Section 9: Results --- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.result-card {
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--dash-border);
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--dash-accent-cyan);
    box-shadow: 0 15px 30px -10px rgba(16, 185, 129, 0.1);
}

.result-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-accent-cyan);
    flex-shrink: 0;
}

.result-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dash-text-main);
}

.result-content p {
    font-size: 1rem;
    color: var(--dash-text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .roles-grid { grid-template-columns: 1fr; }
}

/* --- Feature Tabs (Section 5) --- */
.feature-tabs-container {
    max-width: 1000px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: 100px;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    color: var(--dash-text-muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #10B981; /* Emerald */
    color: #0f172a;
}

.tab-btn.active {
    background: #0f172a; /* Slate 900 */
    color: #fff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.tab-display {
    position: relative;
    width: 100%;
    min-height: 500px; 
    background: #f1f5f9; /* Slate 100 */
    border-radius: 24px;
    border: 1px solid var(--dash-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.tab-image {
    max-width: 90%; 
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: none;
    animation: tabFadeIn 0.4s ease forwards;
}

.tab-image.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .feature-tabs-container {
        gap: 24px;
    }
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .tab-display {
        min-height: 300px;
    }
    .tab-image {
        max-height: 280px;
    }
}
