/**
 * SmartFamilyEye - AI-Powered Web & SafeSearch Filter Stylesheet
 * High-Contrast, Brand-Compliant, Fully Responsive & RTL Ready
 */

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.wf-hero-section {
    background: linear-gradient(135deg, #051a14 0%, #0a291f 50%, #0f3d2e 100%);
    color: #ffffff;
    padding: 85px 0 95px;
    position: relative;
    overflow: hidden;
}

.wf-hero-section::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -120px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(5, 26, 20, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.wf-hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, rgba(5, 26, 20, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.wf-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.wf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.wf-hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff !important;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.wf-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #cbd5e1 !important;
    margin-bottom: 30px;
    max-width: 580px;
}

.wf-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.wf-hero-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.wf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.wf-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #079f70;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(7, 159, 112, 0.4);
}

.wf-btn-primary:hover {
    background: #068860;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(7, 159, 112, 0.5);
    color: #ffffff !important;
}

.wf-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 26px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.wf-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
}

/* ==========================================================================
   MOCKUP: AI CYBER-SHIELD BROWSER SIMULATOR
   ========================================================================== */
.wf-mockup-wrap {
    perspective: 1000px;
}

.wf-mockup-card {
    background: #0f241d;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 30px rgba(16, 185, 129, 0.15);
    position: relative;
    overflow: hidden;
}

.wf-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wf-mockup-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.25); }
}

/* Browser address bar */
.wf-browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #091712;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.wf-browser-dot-group {
    display: flex;
    gap: 6px;
}

.wf-bdot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.wf-bdot.red { background: #ef4444; }
.wf-bdot.yellow { background: #f59e0b; }
.wf-bdot.green { background: #10b981; }

.wf-browser-url {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    color: #fca5a5;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-block-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Red Threat Alert Display */
.wf-threat-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(185, 28, 28, 0.22) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
    text-align: center;
}

.wf-threat-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}

.wf-threat-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fee2e2;
    margin-bottom: 6px;
}

.wf-threat-desc {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #fecaca;
    margin: 0;
}

/* Category Inspection Badges */
.wf-categories-block {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.wf-cat-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 10px;
    display: block;
}

.wf-cat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wf-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
}

.wf-cat-name {
    color: #e2e8f0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wf-cat-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}
.wf-cat-status.red {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.wf-cat-status.green {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.wf-mockup-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wf-mockup-footer svg {
    flex-shrink: 0;
    color: #10b981;
}

/* ==========================================================================
   2. STATS STRIP
   ========================================================================== */
.wf-stats-section {
    background: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
}

.wf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.wf-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 22px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.wf-stat-val {
    font-size: 2.6rem;
    font-weight: 800;
    color: #079f70;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.wf-stat-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #18394b;
    margin-bottom: 8px;
}

.wf-stat-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}

/* ==========================================================================
   3. DEEP DIVE FEATURE SHOWCASES
   ========================================================================== */
.wf-features-section {
    background: #f8fafc;
    padding: 90px 0;
}

.wf-sec-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 55px;
}

.wf-sec-header .wf-eyebrow {
    background: rgba(7, 159, 112, 0.1);
    border-color: rgba(7, 159, 112, 0.3);
    color: #079f70;
}

.wf-sec-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #18394b;
    line-height: 1.22;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.wf-sec-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.wf-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wf-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 34px 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wf-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.wf-feat-badge {
    display: inline-block;
    background: rgba(7, 159, 112, 0.1);
    color: #079f70;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wf-feat-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #18394b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.wf-feat-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 22px;
}

.wf-feat-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

.wf-feat-bullets li {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #334155;
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.wf-feat-bullets li:last-child {
    margin-bottom: 0;
}

.wf-feat-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #079f70;
    font-weight: 800;
}

/* ==========================================================================
   4. PEDAGOGICAL & AGE GUIDANCE
   ========================================================================== */
.wf-pedagogy-section {
    background: #ffffff;
    padding: 90px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.wf-pedagogy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.wf-pedagogy-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.wf-pedagogy-card:hover {
    transform: translateY(-3px);
    border-color: #079f70;
    box-shadow: 0 8px 24px rgba(7, 159, 112, 0.08);
}

.wf-pedagogy-top {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.wf-pedagogy-age {
    font-size: 1.35rem;
    font-weight: 800;
    color: #079f70;
    line-height: 1.2;
    margin-bottom: 4px;
}

.wf-pedagogy-stage {
    font-size: 0.88rem;
    font-weight: 700;
    color: #18394b;
}

.wf-pedagogy-focus {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 16px;
    flex: 1;
}

.wf-pedagogy-rule {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f766e;
    padding: 10px 12px;
    border-radius: 8px;
}

/* ==========================================================================
   5. AUTOPILOT / 3-STEP PIPELINE
   ========================================================================== */
.wf-autopilot-section {
    background: #f8fafc;
    padding: 90px 0;
}

.wf-autopilot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wf-autopilot-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 34px 28px;
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.wf-autopilot-step {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(7, 159, 112, 0.25);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.wf-autopilot-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #18394b;
    margin-bottom: 10px;
    line-height: 1.35;
}

.wf-autopilot-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* ==========================================================================
   6. 6-CATEGORY THREAT BREAKDOWN
   ========================================================================== */
.wf-categories-section {
    background: #ffffff;
    padding: 90px 0;
    border-top: 1px solid #e2e8f0;
}

.wf-threat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.wf-threat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 22px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-threat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.wf-threat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wf-threat-card-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.wf-threat-card-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 10px;
    border-radius: 100px;
}

.wf-threat-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #18394b;
    margin-bottom: 8px;
    line-height: 1.35;
}

.wf-threat-card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
}

/* ==========================================================================
   7. FAQ ACCORDION
   ========================================================================== */
.wf-faq-section {
    background: #f8fafc;
    padding: 90px 0;
    border-top: 1px solid #e2e8f0;
}

.wf-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wf-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.wf-faq-item.is-open {
    border-color: #079f70;
    box-shadow: 0 4px 15px rgba(7, 159, 112, 0.08);
}

.wf-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: #18394b;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.wf-faq-btn:hover {
    color: #079f70;
}

.wf-faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #079f70;
    margin-left: 15px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.wf-faq-item.is-open .wf-faq-icon {
    transform: rotate(45deg);
}

.wf-faq-body {
    display: none;
    padding: 0 24px 22px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

.wf-faq-item.is-open .wf-faq-body {
    display: block;
}

.wf-faq-body p {
    margin: 0;
}

/* ==========================================================================
   8. BOTTOM CTA
   ========================================================================== */
.wf-bottom-cta {
    background: linear-gradient(135deg, #051a14 0%, #0a291f 50%, #0f3d2e 100%);
    color: #ffffff;
    padding: 85px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wf-bottom-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(5, 26, 20, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.wf-cta-box {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.wf-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.22;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.wf-cta-sub {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #cbd5e1 !important;
    margin-bottom: 35px;
}

.wf-cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.wf-cta-note {
    font-size: 0.85rem;
    color: #94a3b8 !important;
    margin: 0;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 991px) {
    .wf-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .wf-hero-title {
        font-size: 2.3rem;
    }
    .wf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wf-features-grid {
        grid-template-columns: 1fr;
    }
    .wf-pedagogy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wf-autopilot-grid {
        grid-template-columns: 1fr;
    }
    .wf-threat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .wf-hero-section {
        padding: 55px 0 65px;
    }
    .wf-hero-title {
        font-size: 1.85rem;
    }
    .wf-hero-subtitle {
        font-size: 1rem;
    }
    .wf-stats-grid {
        grid-template-columns: 1fr;
    }
    .wf-pedagogy-grid {
        grid-template-columns: 1fr;
    }
    .wf-threat-grid {
        grid-template-columns: 1fr;
    }
    .wf-cat-list {
        grid-template-columns: 1fr;
    }
    .wf-cta-title {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   10. RTL (ARABIC) OVERRIDES
   ========================================================================== */
[dir="rtl"] .wf-hero-title,
[dir="rtl"] .wf-sec-title,
[dir="rtl"] .wf-cta-title {
    letter-spacing: normal;
}

[dir="rtl"] .wf-feat-bullets li {
    padding-left: 0;
    padding-right: 24px;
}

[dir="rtl"] .wf-feat-bullets li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .wf-faq-btn {
    text-align: right;
}

[dir="rtl"] .wf-faq-icon {
    margin-left: 0;
    margin-right: 15px;
}
