/*
======================================================
SYSTEMS INTEGRATION SUBPAGE STYLES (Orange Theme)
Requires: global.css for variables and base typography
======================================================
*/

/* --- 0. BACKGROUND --- */
body {
    /* Soft light background for the whole page */
    background: linear-gradient(135deg, var(--bg-light-gray) 0%, var(--bg-white) 50%, rgba(249, 115, 22, 0.05) 100%);
}

/* --- 1. HERO SECTION (Teal to Orange) --- */

.hero {
    min-height: 85vh; 
    padding: 6rem 0 4rem;
    display: flex; 
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px; 
    margin: 0 auto;
}

.hero-text {
    max-width: 550px;
}

.hero-badge {
    /* FIX: Added center alignment and increased font size */
    display: inline-flex; 
    align-items: center; /* Ensures content is vertically centered */
    justify-content: center; 
    gap: 0.5rem;
    padding: 0.7rem 1.6rem; /* Adjusted padding to match larger text */
    border-radius: 50px; 
    font-weight: 700;
    font-size: 0.95rem; /* Increased font size for badge text */
    margin-bottom: 1.5rem; 
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary-accent);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem; 
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem; 
}

.hero-buttons {
    display: flex; 
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-accent);
    border: 2px solid rgba(249, 115, 22, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 1rem 2.2rem;
    font-weight: 700; 
    transition: all 0.3s ease; 
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-accent);
}

/* SVG Styling Overrides */
.integration-visual {
    height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.integration-visual .svg-hub-fill {
    fill: var(--primary-accent-dark);
}
.integration-visual .svg-line-stroke {
    stroke: var(--primary-accent);
}
.integration-visual .svg-text-fill {
    fill: var(--primary-accent);
}
.integration-visual .svg-fill {
    fill: var(--primary-accent);
}

/* --- 2. PROBLEMS SECTION (Silo Cards) --- */
.problems-section {
    background: var(--bg-white);
    padding: 6rem 0;
}

.section-header {
    text-align: center; 
    margin-bottom: 3rem;
}
.section-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem); 
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.problem-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-light-gray);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.15);
    border-color: var(--primary-accent);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; 
    background: linear-gradient(90deg, var(--primary-accent), var(--primary-accent-dark));
}

.problem-icon {
    font-size: 3rem;
    color: var(--primary-accent-dark);
    margin-bottom: 1rem;
}
.problem-card h4 {
    font-size: 1.4rem; 
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.problem-card p {
    color: var(--text-gray);
    font-size: 1rem;
}


/* --- 3. INTEGRATION TYPES SECTION --- */
.types-section {
    padding: 6rem 0; 
    background: linear-gradient(135deg, var(--bg-light-gray) 0%, rgba(249, 115, 22, 0.08) 100%);
    position: relative;
    overflow: hidden;
}

.types-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F97316' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    max-width: 1000px;
    margin: 3rem auto 0;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.type-card {
    position: relative;
    padding: 2.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.type-card:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.15);
}

.type-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(249, 115, 22, 0.05));
}

.type-card h4 {
    font-size: 1.4rem; 
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex; 
    align-items: center;
    position: relative;
    z-index: 1;
}
.type-card h4 i {
    color: var(--primary-accent);
    margin-right: 0.5rem;
}
.type-card p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.type-examples {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--text-dark);
    border-left: 3px solid var(--primary-accent);
    position: relative;
    z-index: 1;
}


/* --- 4. BENEFITS SECTION (FIXED LAYOUT - GRAPH ON RIGHT) --- */
.benefits-section {
    background: var(--bg-white);
    padding: 6rem 0;
}

.benefits-container {
    /* FIX: Restructured for Header + (List | Visual) layout */
    display: grid;
    /* Defines 2 columns: 1fr for List, 1fr for Visual */
    grid-template-columns: 1fr 1fr;
    /* Defines 2 rows: Auto for Header, 1fr for content below */
    grid-template-rows: auto 1fr;
    
    max-width: 1200px;
    margin: 3rem auto 0;
    gap: 4rem;
    align-items: start;
}

/* FIX: Header must span both columns of the grid */
.benefits-container .section-header {
    grid-column: 1 / -1; 
    text-align: center; 
    margin-bottom: 3rem; 
}

/* FIX: Benefits List moves to the LEFT (Column 1) */
.benefits-list {
    grid-column: 1; /* Explicitly place the list in the first column */
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

/* FIX: Benefits Visual (Graph) moves to the RIGHT (Column 2) */
.benefits-visual {
    grid-column: 2; /* Explicitly place the visual in the second column */
    height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
}


.benefit-item {
    padding: 1.5rem;
    background: var(--bg-light-gray);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    transition: all 0.3s;
    position: relative;
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.15);
    border-color: var(--primary-accent);
}

.benefit-item h5 {
    font-size: 1.15rem; 
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefit-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
    color: var(--bg-white);
}
.benefit-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}


/* --- 5. POPULAR SYSTEMS SECTION (FIXED LAYOUT) --- */
.systems-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-light-gray) 0%, rgba(249, 115, 22, 0.08) 100%);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    max-width: 1200px;
    margin: 3rem auto 0;
    gap: 1.5rem;
}

.system-box {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    transition: all 0.3s;
}

.system-box:hover {
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.15);
    border-color: var(--primary-accent);
    background: linear-gradient(135deg, var(--bg-light-gray), var(--bg-white));
}

.system-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.3);
    color: var(--bg-white);
}

.system-box h5 {
    font-size: 1.1rem; 
    font-weight: 700;
    color: var(--text-dark);
}


/* --- 6. FINAL CTA --- */
.final-cta {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--footer-dark) 0%, var(--text-dark) 100%);
    overflow: hidden;
    text-align: center;
    color: var(--bg-white); 
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-white);
    clip-path: ellipse(70% 50% at 50% 100%);
    z-index: 1;
}

.final-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--bg-white);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--border-gray);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.final-cta .cta-btn {
    padding: 1.3rem 3rem; 
    font-size: 1.15rem; 
    background: var(--bg-white);
    color: var(--primary-accent-dark);
}
.final-cta .cta-btn:hover {
    background: var(--bg-light-gray);
    transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .integration-visual,
    .benefits-visual {
        height: 350px;
    }
    .problems-grid,
    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* FIX: Responsive adjustment for benefits section - stacked */
    .benefits-container {
        grid-template-columns: 1fr; /* Stack visual and list vertically */
        grid-template-rows: auto auto auto; 
        gap: 3rem;
    }
    .benefits-container .section-header {
        grid-column: auto; /* Reset column span */
        text-align: center;
    }
    .benefits-list {
        grid-template-columns: repeat(2, 1fr); /* Keep benefits list as 2 columns */
    }

    .types-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .problems-grid,
    .systems-grid,
    .benefits-list {
        grid-template-columns: 1fr;
    }
    .final-cta::before {
        height: 50px;
        top: -50px;
    }
}