/* ==========================================================================
   EasyPhysio & DBT Analyzer Product Suite Styles
   AcadLabs Design System Compliant
   ========================================================================== */

:root {
    --ep-primary: #2563eb;
    --ep-primary-dark: #1e40af;
    --ep-primary-light: #3b82f6;
    --ep-primary-soft: rgba(37, 99, 235, 0.08);
    --ep-secondary: #10b981;
    --ep-secondary-dark: #059669;
    --ep-secondary-soft: rgba(16, 185, 129, 0.1);
    --ep-accent: #8b5cf6;
    
    --ep-bg-main: #ffffff;
    --ep-bg-alt: #f8fafc;
    --ep-card-bg: #ffffff;
    --ep-border: #e2e8f0;
    --ep-border-hover: #cbd5e1;
    
    --ep-text-main: #0f172a;
    --ep-text-muted: #64748b;
    --ep-text-light: #94a3b8;
    
    --ep-success-bg: #dcfce7;
    --ep-success-text: #15803d;
    --ep-warning-bg: #fef3c7;
    --ep-warning-text: #b45309;
    --ep-danger-bg: #fee2e2;
    --ep-danger-text: #b91c1c;
    
    --ep-radius-sm: 8px;
    --ep-radius-md: 12px;
    --ep-radius-lg: 16px;
    --ep-radius-xl: 24px;
    
    --ep-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --ep-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --ep-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.08);
    --ep-shadow-glow: 0 12px 32px rgba(37, 99, 235, 0.18);
}

/* Base resets & layout helpers */
.ep-section {
    padding: 80px 0;
    position: relative;
}

.ep-section--alt {
    background-color: var(--ep-bg-alt);
}

.ep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Badges */
.ep-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    background: var(--ep-primary-soft);
    color: var(--ep-primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    margin-bottom: 20px;
}

.ep-badge--success {
    background: var(--ep-secondary-soft);
    color: var(--ep-secondary-dark);
    border-color: rgba(16, 185, 129, 0.25);
}

.ep-badge--purple {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.25);
}

/* Section Title & Subtitle */
.ep-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.ep-section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--ep-text-main);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.ep-section-header p {
    font-size: 18px;
    color: var(--ep-text-muted);
    line-height: 1.6;
}

/* Hero Section */
.ep-hero {
    padding: 100px 0 60px;
    background: radial-gradient(100% 100% at 50% 0%, rgba(37, 99, 235, 0.04) 0%, rgba(255, 255, 255, 0) 100%), var(--ep-bg-main);
    overflow: hidden;
}

.ep-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 991px) {
    .ep-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.ep-hero-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.12;
    color: var(--ep-text-main);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.ep-gradient-text {
    background: linear-gradient(135deg, var(--ep-primary) 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ep-hero-description {
    font-size: 18px;
    color: var(--ep-text-muted);
    line-height: 1.65;
    margin-bottom: 32px;
}

.ep-hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .ep-hero-cta {
        justify-content: center;
    }
}

.ep-hero-highlights {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ep-border);
}

@media (max-width: 991px) {
    .ep-hero-highlights {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.ep-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text-main);
}

.ep-highlight-item svg {
    color: var(--ep-secondary);
}

/* Interactive GUI Mockup */
.ep-gui-preview {
    background: #0f172a;
    border-radius: var(--ep-radius-lg);
    box-shadow: var(--ep-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    color: #e2e8f0;
    font-family: system-ui, -apple-system, sans-serif;
}

.ep-gui-header {
    background: #1e293b;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}

.ep-gui-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
}

.ep-gui-dots {
    display: flex;
    gap: 6px;
}

.ep-gui-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.ep-gui-dot--red { background: #ef4444; }
.ep-gui-dot--yellow { background: #f59e0b; }
.ep-gui-dot--green { background: #10b981; }

.ep-gui-toolbar {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #334155;
    font-size: 12px;
    flex-wrap: wrap;
}

.ep-gui-btn {
    background: #334155;
    color: #f8fafc;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ep-gui-btn--active {
    background: var(--ep-primary);
    color: white;
}

.ep-gui-body {
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    min-height: 380px;
    background: #0f172a;
}

@media (max-width: 768px) {
    .ep-gui-body {
        grid-template-columns: 1fr;
    }
}

.ep-gui-sidebar {
    background: #1e293b;
    border-right: 1px solid #334155;
    padding: 12px;
    font-size: 11px;
}

.ep-gui-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.ep-gui-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.ep-gui-table th {
    text-align: left;
    color: #94a3b8;
    padding: 6px 4px;
    border-bottom: 1px solid #334155;
}

.ep-gui-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #1e293b;
    color: #cbd5e1;
}

.ep-gui-table tr.highlight-red td { color: #f87171; font-weight: 600; }
.ep-gui-table tr.highlight-green td { color: #4ade80; font-weight: 600; }
.ep-gui-table tr.highlight-yellow td { color: #fbbf24; font-weight: 600; }

.ep-gui-main-canvas {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #090d16;
}

.ep-gui-canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}

.ep-gui-ecg-plot {
    height: 160px;
    position: relative;
    width: 100%;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 1px, transparent 1px);
    background-size: 16px 16px;
    border: 1px solid #1e293b;
    border-radius: 6px;
}

.ep-gui-tachogram {
    height: 120px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    position: relative;
    padding: 8px;
}

.ep-gui-right-panel {
    background: #1e293b;
    border-left: 1px solid #334155;
    padding: 12px;
    font-size: 11px;
}

.ep-metric-card {
    background: #0f172a;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #334155;
    margin-bottom: 8px;
}

.ep-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #38bdf8;
}

/* Product Line Cards Grid */
.ep-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 991px) {
    .ep-products-grid {
        grid-template-columns: 1fr;
    }
}

.ep-product-card {
    background: var(--ep-card-bg);
    border: 2px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--ep-shadow-sm);
}

.ep-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ep-shadow-lg);
    border-color: var(--ep-primary-light);
}

.ep-product-card--featured {
    border-color: var(--ep-primary);
    box-shadow: var(--ep-shadow-glow);
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.ep-product-card--featured::before {
    content: "FLAGSHIP APPLICATION";
    position: absolute;
    top: -14px;
    left: 32px;
    background: var(--ep-primary);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.ep-product-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--ep-primary-soft);
    color: var(--ep-primary);
}

.ep-product-icon--green {
    background: var(--ep-secondary-soft);
    color: var(--ep-secondary-dark);
}

.ep-product-icon--purple {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.ep-product-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ep-text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ep-product-desc {
    font-size: 15px;
    color: var(--ep-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.ep-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--ep-text-main);
    line-height: 1.4;
}

.ep-feature-item svg {
    color: var(--ep-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.ep-feature-item--disabled {
    color: var(--ep-text-light);
}

.ep-feature-item--disabled svg {
    color: var(--ep-text-light);
}

/* Feature Grid Cards */
.ep-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 991px) {
    .ep-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .ep-features-grid {
        grid-template-columns: 1fr;
    }
}

.ep-feature-card {
    background: white;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-md);
    padding: 32px;
    transition: all 0.2s ease;
}

.ep-feature-card:hover {
    border-color: var(--ep-primary);
    box-shadow: var(--ep-shadow-md);
}

.ep-feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--ep-primary-soft);
    color: var(--ep-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ep-feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ep-text-main);
    margin-bottom: 10px;
}

.ep-feature-card p {
    font-size: 15px;
    color: var(--ep-text-muted);
    line-height: 1.6;
}

/* Workflow Steps */
.ep-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .ep-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .ep-steps-grid {
        grid-template-columns: 1fr;
    }
}

.ep-step-card {
    background: white;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-md);
    padding: 28px 24px;
    position: relative;
}

.ep-step-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--ep-primary);
    background: var(--ep-primary-soft);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ep-step-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ep-text-main);
    margin-bottom: 8px;
}

.ep-step-card p {
    font-size: 14px;
    color: var(--ep-text-muted);
    line-height: 1.5;
}

/* Download Modal */
.ep-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.ep-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ep-modal {
    background: white;
    border-radius: var(--ep-radius-xl);
    width: 100%;
    max-width: 520px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ep-modal-overlay.active .ep-modal {
    transform: translateY(0);
}

.ep-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ep-text-muted);
    transition: all 0.2s;
}

.ep-modal-close:hover {
    background: #e2e8f0;
    color: var(--ep-text-main);
}

.ep-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.ep-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--ep-primary-soft);
    color: var(--ep-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ep-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--ep-text-main);
    margin-bottom: 6px;
}

.ep-modal-subtitle {
    font-size: 14px;
    color: var(--ep-text-muted);
}

/* FAQ Accordion */
.ep-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ep-faq-item {
    background: white;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

.ep-faq-item.active {
    border-color: var(--ep-primary);
    box-shadow: var(--ep-shadow-sm);
}

.ep-faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: var(--ep-text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.ep-faq-question svg {
    transition: transform 0.2s ease;
    color: var(--ep-text-muted);
}

.ep-faq-item.active .ep-faq-question svg {
    transform: rotate(180deg);
    color: var(--ep-primary);
}

.ep-faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--ep-text-muted);
    line-height: 1.6;
    display: none;
}

.ep-faq-item.active .ep-faq-answer {
    display: block;
}

/* CTA Section */
.ep-cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--ep-radius-xl);
    padding: 64px 48px;
    text-align: center;
    color: white;
    box-shadow: var(--ep-shadow-lg);
    position: relative;
    overflow: hidden;
}

.ep-cta-box h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.ep-cta-box p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto 36px;
}

/* Buttons */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--ep-radius-sm);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.ep-btn--primary {
    background: var(--ep-primary);
    color: white;
}

.ep-btn--primary:hover {
    background: var(--ep-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.ep-btn--secondary {
    background: white;
    color: var(--ep-text-main);
    border: 2px solid var(--ep-border);
}

.ep-btn--secondary:hover {
    border-color: var(--ep-primary);
    color: var(--ep-primary);
    transform: translateY(-1px);
}

.ep-btn--full {
    width: 100%;
}
