/* Utilities */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.text-center { text-align: center; }
.text-white { color: #fff; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.bg-light { background-color: #fcfbf9; }
.bg-dark { background-color: #1c1917; }

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72px;
    gap: 40px;
}
.site-logo-img {
    height: 45px;
    width: auto;
}
.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.main-nav {
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--fg);
    transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-container {
    position: relative;
    height: 520px;
}
.carousel-slide {
    display: none; /* JS toggles this */
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}
.carousel-slide.active {
    display: flex;
}
.slide-content {
    z-index: 2;
    color: #fff;
}
.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.slide-sub {
    font-size: 24px;
    opacity: 0.9;
    font-weight: 300;
}
/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 32px;
    width: 100%;
    text-align: center;
    z-index: 3;
}
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.dot.active, .dot:hover {
    background-color: #fff;
}

/* Sections General */
.section {
    padding: 80px 0;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    color: var(--fg);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 16px auto 0;
}
.section-title.text-white {
    color: #fff;
}

/* Dilemma Cards */
.dilemma-card {
    background: #fff;
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.dilemma-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-soft);
}
.icon-box {
    font-size: 40px;
    margin-bottom: 24px;
}
.dilemma-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.dilemma-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* Legacy Solution Flow styles removed (see below) */
.highlight-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

/* AI & Investment */
.split-layout {
    display: flex;
    gap: 64px;
    align-items: center;
}
.visual-content {
    flex: 1;
    background: #e7e5e4;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #78716c;
    border-radius: 8px;
}
.text-content {
    flex: 1;
}
.align-left { text-align: left; margin-left: 0; }
.align-left::after { margin-left: 0; }
.lead {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}
.highlight {
    color: var(--primary);
    font-weight: 700;
}
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--fg);
}

/* Solution Flow */
.solution-flow {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 40px 0;
    gap: 16px;
}
.flow-step {
    flex: 1;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.flow-step h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 18px;
}
.arrow {
    color: var(--muted);
    flex-shrink: 0;
    align-self: center;
}

/* Feature List */
.feature-list {
    margin-top: 24px;
    padding-left: 20px;
}
.feature-list li {
    margin-bottom: 12px;
}

/* Why Us */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
.stat-label {
    font-size: 18px;
    font-weight: 500;
    color: var(--muted);
}
.btn-lg {
    padding: 16px 48px;
    font-size: 18px;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-4, .grid-2, .split-layout, .solution-flow, .stats-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        display: flex; /* Fallback for flex containers */
    }
    .grid-4, .grid-2, .stats-grid {
        display: grid; /* Reset for grid */
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .arrow { transform: rotate(90deg); }
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 16px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 16px;
        gap: 16px;
    }
    .slide-content h1 { font-size: 28px; }
    .slide-content .slide-sub { font-size: 16px; }

    /* Hero carousel height on mobile */
    .carousel-container {
        height: 360px;
    }

    /* Section padding reduced on mobile */
    .section {
        padding: 48px 0;
    }
    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    /* Dilemma cards */
    .dilemma-card {
        padding: 24px 20px;
    }
    .dilemma-card h3 {
        font-size: 16px;
    }

    /* Flow steps */
    .flow-step {
        padding: 20px 16px;
    }
    .flow-step h3 {
        font-size: 16px;
    }

    /* Stats */
    .stat-number {
        font-size: 36px;
    }
    .stat-label {
        font-size: 14px;
    }

    /* Split layout */
    .split-layout {
        gap: 32px;
    }
    .visual-content {
        height: 200px;
    }
    .text-content .lead {
        font-size: 18px;
    }

    /* Footer */
    .site-footer {
        padding: 24px 0;
    }
    .site-footer .grid-2 {
        gap: 24px;
    }
}
