/*
 * homepage.css
 * Scoped styles for the CloudSecurityPros.ai homepage only.
 * All class names are prefixed "hp-" to avoid collisions with style.css.
 * Color palette matches the existing site:
 *   Primary:   #4f46e5 / #7c3aed  (indigo/purple)
 *   Green:     #4ade80
 *   Navy:      #0f0f23 / #1e293b / #0f172a
 *   Muted:     #94a3b8 / #64748b / #cbd5e1
 */

/* ─── HERO ─── */
.hp-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2a2a5e 100%);
    overflow: hidden;
    padding: 6rem 0 5rem;
}

.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.07)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hp-eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
    color: #f87171;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hp-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.hp-gradient-text {
    font-style: normal;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-hero-sub {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hp-micro {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1rem;
}

/* ─── STAT STRIP ─── */
.hp-stat-strip {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    padding: 2.5rem 2rem;
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-stat-item {
    text-align: center;
}

.hp-stat-num {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.hp-stat-label {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── SECTION LABELS ─── */
.hp-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4f46e5;
    margin-bottom: 0.6rem;
    text-align: center;
}

.hp-section-label-light {
    color: #a5b4fc;
}

/* ─── PROBLEM: ALERT GRAPHIC ─── */
.hp-callout {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0.75rem 0 2.5rem;
}

.hp-alert-graphic {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.hp-alert-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.hp-alert-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hp-alert-low .hp-alert-dot    { background: #94a3b8; }
.hp-alert-high .hp-alert-dot   { background: #f59e0b; }
.hp-alert-critical .hp-alert-dot { background: #ef4444; }

.hp-alert-text {
    flex: 1;
    color: #475569;
}

.hp-alert-critical-text {
    color: #1e293b;
    font-weight: 600;
}

.hp-alert-num {
    font-size: 0.75rem;
    color: #94a3b8;
}

.hp-alert-critical-num {
    color: #ef4444;
    font-weight: 600;
}

.hp-alert-footer {
    padding: 1rem 1.25rem;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

/* ─── SOLUTION: STEP CARDS ─── */
.hp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.hp-step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hp-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hp-step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.hp-step-ai::before    { background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.hp-step-human::before { background: linear-gradient(90deg, #7c3aed, #4ade80); }
.hp-step-auto::before  { background: linear-gradient(90deg, #4ade80, #4f46e5); }

.hp-step-num {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.hp-step-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.hp-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.hp-step-body {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.65;
}

/* ─── BENEFITS GRID ─── */
.hp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.hp-benefit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hp-benefit-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.hp-benefit-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.hp-benefit-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.hp-benefit-body {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

/* ─── WHY IT WORKS ─── */
.hp-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .hp-why-grid { grid-template-columns: 1fr; }
}

.hp-why-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hp-why-point {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.hp-why-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4ade80;
    margin-top: 2px;
}

.hp-why-point-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.hp-why-point-body {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}

.hp-compare-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 2rem;
}

.hp-compare-row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.hp-compare-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.hp-compare-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.hp-compare-ai .hp-compare-label     { color: #a5b4fc; }
.hp-compare-human .hp-compare-label  { color: #4ade80; }
.hp-compare-result .hp-compare-label { color: #7c3aed; }

.hp-compare-body {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}

.hp-compare-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.25rem 0;
}

/* ─── TESTIMONIAL ─── */
.hp-proof-wrap {
    text-align: center;
}

.hp-quote-card {
    max-width: 680px;
    margin: 2.5rem auto 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.hp-quote-mark {
    font-size: 3rem;
    line-height: 1;
    color: #4f46e5;
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
}

.hp-quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #1e293b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hp-quote-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: #4f46e5;
}

.hp-quote-company {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

/* ─── FAQ ─── */
.hp-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.hp-faq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.hp-faq-q {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.6rem;
}

.hp-faq-a {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
}

/* ─── FINAL CTA ─── */
.hp-final-cta .section-title,
.hp-final-cta h1, .hp-final-cta h2, .hp-final-cta h3 {
    color: #ffffff;
}

.hp-final-cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    text-align: center;
    padding: 6rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-final-cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.hp-final-cta-sub {
    font-size: 1.05rem;
    color: #94a3b8;
    margin: 1rem auto 2.5rem;
    line-height: 1.7;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .hp-stat-strip {
        gap: 2rem;
    }

    .hp-steps {
        grid-template-columns: 1fr;
    }

    .hp-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hp-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hp-benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── FREE TOOL PROMO CARD ─── */
.hp-tool-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    max-width: 860px;
    margin: 0 auto;
}

.hp-tool-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4ade80;
    margin-bottom: 1rem;
}

.hp-tool-card .hp-tool-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    line-height: 1.2;
}

.hp-tool-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 2rem;
    max-width: 600px;
}

.hp-tool-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
}

.hp-tool-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.06em;
}

.hp-tool-btn {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .hp-tool-card {
        padding: 1.75rem 1.5rem;
    }

    .hp-tool-footer {
        flex-wrap: wrap;
    }

    .hp-tool-btn {
        width: 100%;
        text-align: center;
    }
}
