/* ===== GLOBAL DESIGN SYSTEM ===== */
:root {
    /* LIGHT THEME */
    --nova-deep: #083B77;
    --nova-azure: #1E8DB0;
    --nova-emerald: #29A87C;
    --nova-gold: #F59E0B;
    --nova-purple: #8B5CF6;
    --nova-cyan: #00D4FF;
    --nova-charcoal: #1F2937;
    --nova-steel: #6B7280;
    --nova-cloud: #F9FAFB;
    --nova-white: #FFFFFF;
    --nova-border: #E5E7EB;
    --nova-bg: #FFFFFF;
    --nova-card-bg: #FFFFFF;
    --nova-text-primary: #1F2937;
    --nova-text-secondary: #6B7280;
    --gradient-primary: linear-gradient(135deg, #083B77, #1E8DB0);
    --gradient-accent: linear-gradient(135deg, #1E8DB0, #00D4FF);
    --gradient-gold: linear-gradient(135deg, #F59E0B, #FBBF24);
    --gradient-purple: linear-gradient(135deg, #8B5CF6, #A78BFA);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    transition: background-color 0.3s ease, color 0.2s ease, border-color 0.2s ease;
}

/* BLACK THEME (dark mode) */
[data-theme="black"] {
    --nova-deep: #0A0F1E;
    --nova-azure: #2AA9C9;
    --nova-emerald: #3BB57C;
    --nova-gold: #FFB347;
    --nova-purple: #A78BFA;
    --nova-cyan: #5EDFFF;
    --nova-charcoal: #EDF2F7;
    --nova-steel: #A0AEC0;
    --nova-cloud: #1A1E2A;
    --nova-white: #0F131F;
    --nova-border: #2D3748;
    --nova-bg: #0A0C12;
    --nova-card-bg: #14181F;
    --nova-text-primary: #F7FAFC;
    --nova-text-secondary: #CBD5E0;
    --gradient-primary: linear-gradient(135deg, #0A1A2F, #1A4B6D);
    --gradient-accent: linear-gradient(135deg, #1A5F7A, #0A7A9F);
    background-color: var(--nova-bg);
    color: var(--nova-text-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--nova-text-primary);
    background-color: var(--nova-bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.2s ease;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--nova-text-primary);
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nova-azure);
    background: rgba(30,141,176,0.08);
    padding: 0.5rem 1.4rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(4px);
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--nova-text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--nova-text-secondary);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.centered {
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.85rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.2,0,0,1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 10px 20px -8px rgba(30,141,176,0.4);
}

    .btn-primary:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 30px -8px rgba(30,141,176,0.5);
    }

.btn-secondary {
    background: white;
    color: var(--nova-deep);
    border: 2px solid var(--nova-azure);
}

    .btn-secondary:hover {
        background: var(--nova-azure);
        color: white;
        transform: translateY(-2px);
    }

.btn-outline {
    background: transparent;
    color: var(--nova-azure);
    border: 2px solid var(--nova-azure);
}

    .btn-outline:hover {
        background: var(--nova-azure);
        color: white;
    }

.btn-lg {
    padding: 1rem 2.4rem;
    font-size: 1.1rem;
}

/* ===== MODAL STYLES ===== */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--nova-card-bg);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--nova-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--nova-border);
    position: sticky;
    top: 0;
    background: var(--nova-card-bg);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.5rem;
        color: var(--nova-azure);
    }

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--nova-text-secondary);
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
}

    .close-modal:hover {
        color: var(--nova-gold);
    }

.modal-body {
    padding: var(--space-xl);
}

.modal-detail-list {
    list-style: none;
    margin: var(--space-lg) 0;
}

    .modal-detail-list li {
        margin-bottom: var(--space-sm);
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        color: var(--nova-text-secondary);
    }

        .modal-detail-list li i {
            color: var(--nova-azure);
            width: 20px;
        }

.modal-cta {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--nova-border);
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== SERVICES PAGE SPECIFIC STYLES ===== */
.services-page .services-hero-section {
    position: relative;
    padding: var(--space-4xl) 0;
    background: linear-gradient(145deg, var(--nova-cloud) 30%, white 100%);
    overflow: hidden;
}

.services-page .services-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services-page .hero-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.services-page .services-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.services-page .hero-image-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

    .services-page .hero-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.services-page .services-section {
    padding: var(--space-4xl) 0;
}

.services-page .services-image-container {
    margin-bottom: var(--space-2xl);
    text-align: center;
}

    .services-page .services-image-container img {
        border-radius: var(--radius-2xl);
        max-width: 100%;
        height: auto;
        box-shadow: var(--shadow-xl);
    }

.services-page .services-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.services-page .services-card {
    background: var(--nova-card-bg);
    border: 1px solid var(--nova-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    transition: all 0.3s ease;
    position: relative;
}

    .services-page .services-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }

.services-page .featured-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--gradient-gold);
    color: white;
    padding: 4px 30px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
}

.services-page .service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.services-page .service-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.services-page .service-description {
    color: var(--nova-text-secondary);
    margin-bottom: var(--space-md);
}

.services-page .service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.services-page .feature-tag {
    background: var(--nova-cloud);
    color: var(--nova-text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.services-page .service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--nova-azure);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s;
}

    .services-page .service-link:hover {
        gap: var(--space-sm);
    }

.services-page .services-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.services-page .services-feature-card {
    background: var(--nova-card-bg);
    border: 1px solid var(--nova-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

    .services-page .services-feature-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl);
    }

.services-page .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
}

.services-page .feature-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.services-page .feature-description {
    color: var(--nova-text-secondary);
    margin-bottom: var(--space-lg);
}

.services-page .feature-list {
    list-style: none;
    color: var(--nova-text-secondary);
    font-size: 0.95rem;
}

    .services-page .feature-list li {
        margin-bottom: var(--space-sm);
        padding-left: var(--space-md);
        position: relative;
    }

        .services-page .feature-list li:before {
            content: "•";
            color: var(--nova-azure);
            font-weight: bold;
            position: absolute;
            left: 0;
        }

.services-page .agents-image-container {
    margin-bottom: var(--space-3xl);
    text-align: center;
}

    .services-page .agents-image-container img {
        border-radius: var(--radius-2xl);
        max-width: 100%;
        height: auto;
        box-shadow: var(--shadow-xl);
    }

.services-page .use-cases-container {
    margin-top: var(--space-3xl);
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    border: 2px solid #8B5CF6;
}

[data-theme="black"] .services-page .use-cases-container {
    background: var(--nova-card-bg);
}

.services-page .use-cases-container h3 {
    color: #8B5CF6;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.services-page .use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

    .services-page .use-cases-grid div {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }

    .services-page .use-cases-grid i {
        color: #8B5CF6;
    }

.services-page .financial-image-container {
    margin-bottom: var(--space-3xl);
    text-align: center;
}

    .services-page .financial-image-container img {
        border-radius: var(--radius-2xl);
        max-width: 100%;
        height: auto;
        box-shadow: var(--shadow-xl);
    }

.services-page .financial-description {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-xl);
}

[data-theme="black"] .services-page .financial-description {
    background: var(--nova-card-bg);
}

.services-page .hero-badge {
    margin-bottom: var(--space-lg);
}

.services-page .badge-content {
    display: inline-block;
    background: rgba(30,141,176,0.1);
    color: var(--nova-azure);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.services-page .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--nova-text-primary);
}

.services-page .hero-subtitle {
    font-size: 1.2rem;
    color: var(--nova-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.services-page .hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.services-page .floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30,141,176,0.1), rgba(0,212,255,0.1));
    filter: blur(60px);
    z-index: 0;
}

.services-page .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.services-page .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.services-page .shape-3 {
    width: 150px;
    height: 150px;
    bottom: 100px;
    right: 200px;
}

.services-page .service-detail-section {
    padding: var(--space-4xl) 0;
}

.services-page .services-cta {
    padding: var(--space-4xl) 0;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
}

.services-page .cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: white;
}

.services-page .cta-description {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}

.services-page .cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

/* ===== FLOATING ACTION BUTTON ===== */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

    .floating-action-btn:hover {
        transform: scale(1.1);
    }

    .floating-action-btn .fab-tooltip {
        position: absolute;
        left: 60px;
        background: var(--nova-deep);
        color: white;
        padding: 5px 10px;
        border-radius: var(--radius-md);
        font-size: 0.85rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .floating-action-btn:hover .fab-tooltip {
        opacity: 1;
        visibility: visible;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-page .services-grid-container,
    .services-page .services-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-page .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .services-page .hero-title {
        font-size: 2.5rem;
    }

    .services-page .services-grid-container,
    .services-page .services-features-grid {
        grid-template-columns: 1fr;
    }

    .services-page .hero-actions {
        flex-direction: column;
    }

        .services-page .hero-actions .btn {
            width: 100%;
            text-align: center;
        }

    .services-page .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }

        .services-page .cta-buttons .btn {
            width: 100%;
            text-align: center;
        }

    .services-page .hero-image-container {
        display: none;
    }

    .services-page .featured-badge {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        display: inline-block;
        margin-bottom: var(--space-sm);
        border-radius: var(--radius-full);
        padding: 4px 12px;
    }

    .services-page .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .services-page .hero-title {
        font-size: 2rem;
    }

    .services-page .hero-subtitle {
        font-size: 1rem;
    }

    .services-page .section-title {
        font-size: 1.8rem;
    }

    .modal-content {
        width: 95%;
        margin: var(--space-md);
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }
}
