/* Home Page Styles */

/* Hero Section Styles */
/* Note: Hero background colors are controlled by hero-backgrounds.css for category-specific patterns */
.hero {
    position: relative;
    background: var(--gradient-brand-blue);
    color: white;
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1200 120L0 16.48 0 0 1200 0 1200 120z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-text {
    color: var(--accent-yellow) !important;
}

.badge-divider {
    color: rgba(255, 255, 255, 0.5);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-lg);
    color: white !important;
}

.hero-gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: var(--space-sm);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2xl);
    color: white !important;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-4xl);
    flex-wrap: wrap;
}

.hero-trust {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
}

.trust-text {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-bottom: var(--space-lg);
}

.trust-metrics {
    display: flex;
    gap: var(--space-2xl);
    justify-content: center;
    flex-wrap: wrap;
}

.trust-metric {
    text-align: center;
}

.metric-number {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--accent-yellow);
    margin-bottom: var(--space-xs);
}

.metric-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Solutions Ecosystem Section */
.solutions-ecosystem {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--neutral-100) 100%);
    position: relative;
}

.solutions-ecosystem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(16, 114, 210, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(255, 180, 51, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-4xl);
    position: relative;
    z-index: 1;
}

.solution-ecosystem-card {
    background: var(--neutral-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-water);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(16, 114, 210, 0.08);
}

/* Top accent bar */
.solution-ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.solution-ecosystem-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-water);
    border-color: rgba(16, 114, 210, 0.15);
}

/* Novel Element: Badge Pulse on Hover */
.solution-ecosystem-card:hover .solution-badge {
    animation: badgePulse 0.6s ease-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Solution Badge Styling (Novel Element) */
.solution-badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neutral-white);
    z-index: 2;
    transition: transform 0.3s ease;
}

/* Badge Color Variants */
.solution-badge.registry {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
}

.solution-badge.applications {
    background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-600) 100%);
}

.solution-badge.portal {
    background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
}

.solution-badge.api {
    background: linear-gradient(135deg, var(--orange-600) 0%, var(--orange-700) 100%);
}

/* Solution Icon */
.solution-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-lg);
    transition: transform 0.3s ease;
}

.solution-ecosystem-card:hover .solution-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Card Typography */
.solution-card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-deep);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-snug);
}

.solution-card-description {
    font-size: var(--font-size-sm);
    color: var(--neutral-dark);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
    flex-grow: 0;
}

/* Feature List */
.solution-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl) 0;
    flex-grow: 1;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--neutral-dark);
}

.solution-features i {
    color: var(--accent-yellow);
    width: 16px;
    flex-shrink: 0;
}

/* CTA Button Positioning */
.solution-ecosystem-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* API Card Special Styling (Novel Element) */
.solution-ecosystem-card.api-card {
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--neutral-white) 100%);
}

.solution-ecosystem-card.api-card .solution-icon {
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-700) 100%);
}

/* Solutions Overview Delegation Banner */
.solutions-overview-delegation {
    background: var(--neutral-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl) var(--space-2xl);
    margin: var(--space-4xl) var(--space-3xl) 0 var(--space-3xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    border: 1px solid rgba(16, 114, 210, 0.12);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-water);
}

.solutions-overview-delegation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.solutions-overview-delegation:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-water);
    border-color: rgba(16, 114, 210, 0.2);
}

.delegation-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.solutions-overview-delegation:hover .delegation-icon {
    transform: rotate(-5deg) scale(1.05);
}

.delegation-content {
    flex-grow: 1;
}

.delegation-content h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-deep);
    margin-bottom: var(--space-xs);
    line-height: var(--line-height-snug);
}

.delegation-content p {
    font-size: var(--font-size-sm);
    color: var(--neutral-dark);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

.solutions-overview-delegation .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Benefits Section */
.benefits-section {
    padding: var(--space-5xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-4xl);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-water);
}

.benefit-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-water);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-base);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
    color: var(--primary-deep);
}

.benefit-content p {
    color: var(--neutral-dark);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

/* Partners Section */
.partners-section {
    padding: var(--space-4xl) 0 0;
    background: var(--gradient-light-blue);
}

.partners-section .section-header {
    padding-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: var(--primary-light);
    padding: var(--space-5xl) 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-deep);
    margin-bottom: var(--space-lg);
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    color: var(--neutral-dark);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .trust-metrics {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .solutions-ecosystem {
        padding: var(--space-4xl) 0;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .solution-ecosystem-card {
        padding: var(--space-xl);
    }

    .solution-badge {
        top: var(--space-md);
        right: var(--space-md);
    }

    .solution-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }

    .solution-card-title {
        font-size: var(--font-size-lg);
    }

    .solution-card-description {
        font-size: var(--font-size-sm);
    }

    .solutions-overview-delegation {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
        gap: var(--space-md);
    }

    .delegation-content h3 {
        font-size: var(--font-size-base);
    }

    .delegation-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }

    .solutions-overview-delegation .btn {
        width: 100%;
        justify-content: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .solution-badge {
        top: var(--space-md);
        right: var(--space-md);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}