/* Components - Bold Authority Style */

/* Card - Clean & Sharp */
.card-flat {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card-flat:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-brand-purple);
}

/* Feature Icon Box - Bold */
.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-brand-purple);
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 4px 4px 0px #000000;
    /* Brutalist shadow */
    transition: var(--transition-fast);
}

.card-flat:hover .icon-box {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

/* Tech Divider - Simple Line */
.divider-tech {
    height: 4px;
    width: 60px;
    background: var(--color-brand-yellow);
    margin: 1.5rem 0;
}

/* Badge / Tag */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--color-bg-dark);
    color: var(--color-brand-yellow);
    letter-spacing: 0.05em;
}

/* Section Title Group */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    position: relative;
    display: inline-block;
}

/* Brush Stroke Effect */
.section-title h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 12px;
    background: var(--color-brand-yellow);
    position: absolute;
    bottom: 5px;
    left: 0;
    z-index: -1;
    transform: skew(-10deg) rotate(-1deg);
    opacity: 0.6;
}

.section-title-dark h2 {
    color: #fff;
}

.section-title p {
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* ========================================
   Newsletter Signup Block - CRO Optimized
   ======================================== */

.newsletter-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

/* Animated Background Elements */
.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(96, 0, 255, 0.15) 0%, transparent 70%);
    animation: floatGlow 8s ease-in-out infinite;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
    animation: floatGlow 8s ease-in-out infinite reverse;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(2deg);
    }
}

.newsletter-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Accent border top */
.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-brand-purple), var(--color-brand-yellow), var(--color-brand-purple));
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Badge */
.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(96, 0, 255, 0.2);
    border: 1px solid rgba(96, 0, 255, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-brand-yellow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.newsletter-badge-icon {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Headline */
.newsletter-headline {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.newsletter-headline .highlight {
    background: linear-gradient(120deg, var(--color-brand-yellow), #ffdb4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subheadline */
.newsletter-subheadline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
}

/* Value Props */
.newsletter-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.newsletter-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.newsletter-benefit-icon {
    color: var(--color-brand-yellow);
    font-size: 1.1rem;
}

/* Form */
.newsletter-form {
    max-width: 520px;
    margin: 0 auto;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    transition: var(--transition-normal);
}

.newsletter-input-wrapper:focus-within {
    border-color: var(--color-brand-purple);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 30px rgba(96, 0, 255, 0.2);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #ffffff;
    font-family: var(--font-primary);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-brand-purple);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-btn:hover {
    background: var(--color-brand-yellow);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(96, 0, 255, 0.3);
}

.newsletter-btn-icon {
    transition: transform 0.3s ease;
}

.newsletter-btn:hover .newsletter-btn-icon {
    transform: translateX(4px);
}

/* Trust Indicators */
.newsletter-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-trust-icon {
    color: var(--color-brand-yellow);
    font-size: 1rem;
}

/* Subscriber Count */
.newsletter-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.newsletter-avatars {
    display: flex;
}

.newsletter-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #000;
    margin-left: -10px;
    background: linear-gradient(135deg, var(--color-brand-purple), var(--color-brand-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.newsletter-avatar:first-child {
    margin-left: 0;
}

.newsletter-social-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-social-text strong {
    color: var(--color-brand-yellow);
}

/* Success State */
.newsletter-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.newsletter-success.active {
    display: flex;
    animation: fadeUp 0.5s ease;
}

.newsletter-success-icon {
    font-size: 3rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.newsletter-success-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.newsletter-success-subtext {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-card {
        padding: 3rem 1.5rem;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
    }

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

    .newsletter-benefits {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-trust {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ========================================
   CTA Section - Premium & Global
   ======================================== */
.cta-section {
    padding: 160px 0;
    text-align: center;
    background-color: var(--color-bg-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow for premium feel */
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(96, 0, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-weight: 800;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    margin-bottom: 3.5rem;
    max-width: 650px;
    line-height: 1.6;
}

.cta-box .btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    background-color: var(--color-brand-yellow);
    color: #000;
    box-shadow: 0 10px 40px rgba(255, 204, 0, 0.2);
}

.cta-box .btn:hover {
    background-color: #fff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 100px 0;
    }

    .cta-box h2 {
        font-size: 2.5rem;
    }

    .cta-box p {
        margin-bottom: 2.5rem;
    }
}