/* Hero carousel + particles */
.hero-carousel {
    position: relative;
    height: var(--hero-carousel-height);
    min-height: var(--hero-carousel-min);
    max-height: var(--hero-carousel-max);
    overflow: hidden;
    background: var(--hero-bg);
}

.hero-carousel::before {
    display: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-particles canvas {
    display: block;
}

.hero-slides {
    position: relative;
    height: 100%;
    min-height: inherit;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-bg {
    display: none;
}

.hero-slide-inner {
    position: relative;
    z-index: 2;
    min-height: calc(var(--hero-carousel-height) - 100px);
    max-height: calc(var(--hero-carousel-max) - 100px);
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 40px) 0 100px;
}

.hero-content {
    max-width: 640px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(220, 85, 37, 0.35);
    border-radius: var(--radius-sm);
    color: var(--primary-blue);
    font-size: 0.85rem;
    margin-bottom: 20px;
    background: var(--cyan-dim);
}

.hero-title {
    font-size: 2.625rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--hero-subtitle);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-subtitle p {
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(102, 102, 102, 0.35);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dots button.active {
    background: var(--primary-blue);
    width: 28px;
    border-radius: 5px;
}

.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: #FFFBF8;
    border-top: 1px solid rgba(220, 85, 37, 0.18);
}

.hero-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 24px 0;
    min-height: 72px;
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.hero-stat span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* News cards */
.news-cards {
    padding: 24px 0 64px;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card-blue);
    transition: all var(--transition);
    border: 1px solid var(--border-gray);
    display: block;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.news-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    margin: 0 auto 16px;
}

.news-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.news-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.news-card-link {
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-head-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-title-inline {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-title-inline::before,
.section-title-inline::after {
    display: none;
}

/* Solution cards */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-gray);
    transition: all var(--transition);
    height: 100%;
}

.solution-card.highlight {
    background: var(--gradient-brand-diagonal);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-card-hover);
}

.solution-card.highlight .solution-desc,
.solution-card.highlight .solution-items li {
    color: rgba(255, 255, 255, 0.9);
}

.solution-card:hover:not(.highlight) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-blue);
    line-height: 1;
}

.solution-card.highlight .solution-icon {
    color: var(--white);
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.solution-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.solution-items {
    text-align: left;
}

.solution-items li {
    padding: 4px 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.solution-items li::before {
    content: '\2022 ';
    color: var(--primary-blue);
}

.solution-card.highlight .solution-items li::before {
    color: rgba(255, 255, 255, 0.8);
}

/* Product blocks */
.products-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card-blue);
}

.product-block {
    padding: 40px 30px;
    min-height: 100%;
}

.product-block.light {
    background: var(--gray-bg);
    color: var(--text-primary);
}

.product-block.dark {
    background: var(--gradient-brand-diagonal);
    color: var(--white);
}

.tag-label {
    border: 1px solid currentColor;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 16px;
    opacity: 0.85;
}

.product-num {
    position: static;
    font-size: inherit;
    font-weight: inherit;
    opacity: 1;
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    color: var(--primary-blue);
}

.product-block.dark .product-icon {
    color: rgba(255, 255, 255, 0.9);
}

.product-block h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.product-desc {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.product-desc p {
    margin-bottom: 0.75rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.func-tag,
.product-tag {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    display: inline-block;
}

.product-block.light .func-tag {
    background: var(--border-gray);
    color: var(--text-primary);
    border: none;
}

.product-block.dark .func-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: none;
}

/* Dev matrix */
.dev-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dev-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card-blue);
    transition: all var(--transition);
}

.dev-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.dev-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}

.dev-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.dev-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.process-step {
    text-align: center;
    padding: 28px 16px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card-blue);
}

.process-step span {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    opacity: 0.45;
    margin-bottom: 8px;
}

.process-step h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-card-blue);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.case-card-body {
    padding: 28px;
}

.case-industry {
    display: inline-block;
    padding: 4px 12px;
    background: var(--cyan-dim);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.case-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.case-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Partners */
.partner-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.partner-tags span {
    padding: 10px 22px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-blue);
    transition: all var(--transition);
    box-shadow: var(--shadow-card-blue);
}

.partner-tags span:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.section-cta-center {
    text-align: center;
    margin-top: 32px;
}

/* CTA */
.cta-band {
    background: var(--gradient-brand);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta-band h2 {
    font-size: 1.875rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.cta-band h2::before,
.cta-band h2::after {
    display: none;
}

.cta-band p {
    opacity: 0.92;
    margin-bottom: 28px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero-title { font-size: 2rem; }
    .news-cards-grid,
    .solutions-grid { grid-template-columns: 1fr; }
    .products-split { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .dev-matrix { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: clamp(420px, 52vh, 520px);
        min-height: 420px;
        max-height: 520px;
    }

    .hero-slides {
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .hero-slide-inner {
        min-height: auto;
        padding: calc(var(--header-height) + 24px) 0 100px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .hero-subtitle,
    .hero-subtitle p {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-dots {
        bottom: 90px;
    }

    .hero-stats-bar {
        position: relative;
    }

    .hero-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 18px 0;
    }
}

@media (max-width: 576px) {
    .dev-matrix { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }

    .partner-tags {
        gap: 10px;
        justify-content: center;
    }

    .partner-tags span {
        font-size: 0.82rem;
        padding: 8px 14px;
    }

    .product-block {
        padding: 24px 20px;
    }

    .cta-band {
        padding: 48px 0;
        text-align: center;
    }

    .cta-band h2 {
        font-size: 1.35rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-head-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .news-cards-grid {
        gap: 16px;
    }
}
