/**
 * SmartFamilyEye - Notification & Messaging Safety Preview Stylesheet
 * High-Contrast, Brand-Compliant, Fully Responsive & RTL Ready
 */

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.ns-hero-section {
    background: linear-gradient(135deg, #090e1a 0%, #111a2e 50%, #1e294b 100%);
    color: #ffffff;
    padding: 85px 0 95px;
    position: relative;
    overflow: hidden;
}

.ns-hero-section::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -120px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(9, 14, 26, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ns-hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, rgba(9, 14, 26, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

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

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

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

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

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

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

.ns-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);
}

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

.ns-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;
}

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

/* ==========================================================================
   MOCKUP: NOTIFICATION SAFETY RADAR CARD
   ========================================================================== */
.ns-mockup-wrap {
    perspective: 1000px;
}

.ns-mockup-card {
    background: #111827;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.18);
    position: relative;
    overflow: hidden;
}

.ns-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);
}

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

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

.pulse-dot-indigo {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 8px #6366f1;
    animation: nsPulse 1.8s infinite;
}

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

/* Notification stream */
.ns-notifs-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.ns-notif-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ns-notif-item.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(185, 28, 28, 0.18) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.ns-notif-item.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.18) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.ns-notif-item.safe {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ns-notif-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ns-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.ns-app-badge.whatsapp {
    background: rgba(37, 211, 102, 0.18);
    color: #4ade80;
    border: 1px solid rgba(37, 211, 102, 0.35);
}

.ns-app-badge.instagram {
    background: rgba(225, 48, 108, 0.18);
    color: #f472b6;
    border: 1px solid rgba(225, 48, 108, 0.35);
}

.ns-app-badge.sms {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.ns-notif-time {
    font-size: 0.72rem;
    color: #94a3b8;
}

.ns-notif-sender {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 3px;
    line-height: 1.3;
}

.ns-notif-msg {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #cbd5e1;
    margin: 0 0 8px;
}

.ns-notif-alert-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 4px;
}

.ns-notif-item.danger .ns-notif-alert-badge {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.ns-notif-item.warning .ns-notif-alert-badge {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.ns-notif-item.safe .ns-notif-alert-badge {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.ns-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);
}

.ns-mockup-footer svg {
    flex-shrink: 0;
    color: #6366f1;
}

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

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

.ns-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;
}

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

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

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

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

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

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

.ns-sec-header .ns-eyebrow {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #4f46e5;
}

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

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

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

.ns-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;
}

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

.ns-feat-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

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

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

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

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

.ns-feat-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #4f46e5;
    font-weight: 800;
}

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

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

.ns-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;
}

.ns-pedagogy-card:hover {
    transform: translateY(-3px);
    border-color: #4f46e5;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

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

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

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

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

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

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

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

.ns-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);
}

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

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

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

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

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

.ns-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;
}

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

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

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

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

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

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

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

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

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

.ns-faq-item.is-open {
    border-color: #4f46e5;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.08);
}

.ns-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;
}

.ns-faq-btn:hover {
    color: #4f46e5;
}

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

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

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

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

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

/* ==========================================================================
   8. BOTTOM CTA
   ========================================================================== */
.ns-bottom-cta {
    background: linear-gradient(135deg, #090e1a 0%, #111a2e 50%, #1e294b 100%);
    color: #ffffff;
    padding: 85px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ns-bottom-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(9, 14, 26, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

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

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

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

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

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

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

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

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

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

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

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