@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

.hw-team-closing {
    position: relative;
    width: 100%;
    padding: 80px 0;
    font-family: 'PT Sans', sans-serif;
    color: #ffffff;
    overflow: hidden;
}

.hw-closing-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #002c77 0%, #001b4d 100%);
    z-index: 0;
    animation: hw-hue-shift 20s infinite alternate ease-in-out;
}

@keyframes hw-hue-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(15deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hw-closing-bg {
        animation: none;
    }
}

.hw-closing-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.hw-closing-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    z-index: 2;
    pointer-events: none;
}

.hw-closing-container {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hw-closing-eyebrow {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fdc82f;
    margin-bottom: 16px;
}

.hw-closing-h2 {
    font-weight: 700;
    font-size: 40px;
    color: #ffffff;
    margin: 0 0 24px;
    line-height: 1.2;
}

.hw-closing-subtitle {
    font-weight: 400;
    font-size: 18px;
    color: #e8edf5;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 40px;
}

.hw-closing-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.hw-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 280px;
    height: 64px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hw-btn svg {
    width: 20px;
    height: 20px;
}

.hw-btn-primary {
    background: linear-gradient(135deg, #ff5800 0%, #e04a00 100%);
    color: #ffffff;
    border: none;
    gap: 8px;
}

.hw-btn-primary:hover {
    animation: hw-pulse-orange 1.5s infinite;
    color: #ffffff;
}

@keyframes hw-pulse-orange {
    0% { opacity: 1; }
    50% { opacity: 0.95; }
    100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hw-btn-primary:hover {
        animation: none;
        opacity: 0.95;
    }
}

.hw-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    gap: 12px;
}

.hw-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.hw-closing-microcopy {
    font-style: italic;
    font-size: 14px;
    color: #e8edf5;
    margin-bottom: 40px;
}

.hw-closing-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hw-trust-badge {
    font-size: 13px;
    color: #e8edf5;
    position: relative;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.hw-trust-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #fdc82f;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    mask-size: cover;
    -webkit-mask-size: cover;
}

.hw-trust-badge.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1023px) {
    .hw-closing-h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .hw-closing-h2 {
        font-size: 28px;
    }
    
    .hw-closing-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hw-btn {
        width: 100%;
        max-width: 320px;
    }
    
    .hw-btn-secondary {
        margin-left: 0;
    }
    
    .hw-closing-trust {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 12px;
    }
}
