/* ===================================================================
   DATA-INDUS Public Website — Light Professional Design System V2
   =================================================================== */

:root {
    /* Backgrounds */
    --bg-main: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-card-solid: #FFFFFF;
    --bg-footer: #0F172A;

    /* Borders */
    --border-subtle: #E2E8F0;
    --border-accent: rgba(13, 27, 84, 0.20);
    --border-highlight: rgba(13, 27, 84, 0.35);

    /* Brand */
    --brand-primary: #0D1B54;
    --brand-primary-hover: #162A78;
    --brand-cyan: #00D2D3;
    --brand-glow: #2A48A8;

    /* Accent */
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    --accent-rose: #EF4444;
    --accent-purple: #8B5CF6;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-on-dark: #F8FAFC;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ===================================================================
   Container
   =================================================================== */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1536px) {
    .container-custom {
        max-width: 1320px;
    }
}

/* ===================================================================
   Cards & Panels
   =================================================================== */
.card-clean {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.card-clean:hover {
    border-color: var(--border-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-elevated {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-accent {
    border-left: 3px solid var(--brand-primary);
}

/* ===================================================================
   Sections
   =================================================================== */
.section-white {
    background-color: var(--bg-main);
    padding: 5rem 0;
}

.section-gray {
    background-color: var(--bg-surface);
    padding: 5rem 0;
}

.section-blue-soft {
    background: linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 100%);
    padding: 5rem 0;
}

.section-dark {
    background-color: var(--bg-footer);
    color: var(--text-on-dark);
    padding: 5rem 0;
}

/* ===================================================================
   Section Headers
   =================================================================== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    background: rgba(13, 27, 84, 0.06);
    border: 1px solid rgba(13, 27, 84, 0.12);
    border-radius: 2rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn-primary-tech {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--brand-primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary-tech:hover {
    background: var(--brand-primary-hover, #162A78);
    box-shadow: 0 4px 14px rgba(13, 27, 84, 0.30);
    transform: translateY(-1px);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-outline-tech {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-primary);
    background: transparent;
    border: 2px solid var(--brand-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-outline-tech:hover {
    background: rgba(13, 27, 84, 0.05);
    border-color: var(--brand-primary-hover, #162A78);
    color: var(--brand-primary-hover, #162A78);
    text-decoration: none;
}

/* ===================================================================
   Pulse Dot (Live Indicator)
   =================================================================== */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent-emerald);
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

/* ===================================================================
   Text Accents
   =================================================================== */
.text-brand {
    color: var(--brand-primary);
}

.text-cyan {
    color: var(--brand-cyan);
}

.text-emerald {
    color: var(--accent-emerald);
}

.text-rose {
    color: var(--accent-rose);
}

.text-amber {
    color: var(--accent-amber);
}

/* ===================================================================
   Navbar
   =================================================================== */
.nav-clean {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-link-clean {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease;
}

.nav-link-clean:hover {
    color: var(--brand-primary);
}

/* ===================================================================
   Tabs
   =================================================================== */
.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    font-weight: 600;
}

/* ===================================================================
   Accordion (FAQ)
   =================================================================== */
.accordion-item-clean {
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.accordion-item-clean.open {
    border-color: var(--border-accent);
}

.accordion-header-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.accordion-header-clean:hover {
    background: var(--bg-card-hover);
}

.accordion-toggle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.accordion-body-clean {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================================================
   Mockup Window
   =================================================================== */
.mockup-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    background: #F1F5F9;
    border-bottom: 1px solid var(--border-subtle);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================================================
   Form Controls
   =================================================================== */
.form-input-clean {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input-clean:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(13, 27, 84, 0.10);
}

.form-input-clean::placeholder {
    color: var(--text-muted);
}

/* Custom range slider */
.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    outline: none;
    transition: background 0.2s;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--brand-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--brand-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ===================================================================
   Check / Cross Lists
   =================================================================== */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.6;
}

.check-mark {
    color: var(--accent-emerald);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
}

.cross-mark {
    color: var(--accent-rose);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ===================================================================
   Stats Row
   =================================================================== */
.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================================================================
   Layer Selector (Architecture)
   =================================================================== */
.layer-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.layer-item:hover {
    border-color: var(--border-accent);
}

.layer-item.active {
    border-color: var(--brand-primary);
    background: rgba(13, 27, 84, 0.04);
    box-shadow: 0 0 0 1px rgba(13, 27, 84, 0.1);
}

.layer-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 0.375rem;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
}

.layer-item.active .layer-number {
    background: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
}

/* ===================================================================
   Industry Cards
   =================================================================== */
.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.industry-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.industry-card.accent-cyan { border-top: 3px solid var(--brand-cyan); }
.industry-card.accent-amber { border-top: 3px solid var(--accent-amber); }
.industry-card.accent-emerald { border-top: 3px solid var(--accent-emerald); }
.industry-card.accent-purple { border-top: 3px solid var(--accent-purple); }

.industry-gain {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 2rem;
    margin-top: auto;
}

/* ===================================================================
   Footer
   =================================================================== */
.footer-dark {
    background: var(--bg-footer);
    color: #CBD5E1;
    padding: 4rem 0 2rem;
}

.footer-dark h6 {
    color: #F1F5F9;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-dark a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-dark a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #64748B;
}

/* ===================================================================
   Floating Badge
   =================================================================== */
.floating-badge {
    position: absolute;
    padding: 0.6rem 1rem;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    animation: float-slow 4s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===================================================================
   Utilities
   =================================================================== */
.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

/* ===================================================================
   Architecture Image Preview Box
   =================================================================== */
.arch-preview-box {
    position: relative;
    cursor: pointer;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #FFFFFF;
    transition: all 0.25s ease;
}

.arch-preview-box:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 8px 24px rgba(13, 27, 84, 0.12);
    transform: translateY(-2px);
}

.arch-preview-box .zoom-hint {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(13, 27, 84, 0.85);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.arch-preview-box:hover .zoom-hint {
    background: var(--brand-primary);
}

/* ===================================================================
   Modal Overlay
   =================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content-clean {
    background: var(--bg-card);
    border-radius: 0.75rem;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content-clean img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 0.75rem 0.75rem;
}

.modal-header-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 991px) {
    .section-white, .section-gray, .section-blue-soft, .section-dark {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .section-white, .section-gray, .section-blue-soft, .section-dark {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .tab-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===================================================================
   Blazor Error UI
   =================================================================== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}