/* ==========================================================================
   PrivaGuard App-Specific Landing Pages (VS Code, Chrome, Telegram, WhatsApp)
   Scoped, modular styles for high-conversion cyber-aesthetic landing pages
   ========================================================================== */

/* Hero Badge */
.app-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(177, 255, 41, 0.08);
    border: 1px solid rgba(177, 255, 41, 0.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: badgePulse 2s infinite;
}

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

/* Trust Badges Strip */
.security-trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 40px 0 80px 0;
}

.sec-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.sec-trust-item i {
    font-size: 18px;
    color: var(--accent);
}

.sec-trust-item strong {
    color: #fff;
}

/* Section Header Shared */
.section-head-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-head-center .sub-tag {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.section-head-center h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #fff;
}

.section-head-center p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Comparison Matrix Section */
.comparison-section {
    padding: 40px 0 90px 0;
}

.comparison-table-wrapper {
    background: rgba(17, 19, 23, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    padding: 22px 24px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table th.col-feature {
    width: 44%;
    color: var(--text-muted);
}

.comparison-table th.col-vulnerable {
    width: 28%;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

.comparison-table th.col-protected {
    width: 28%;
    color: var(--accent);
    background: rgba(177, 255, 41, 0.08);
}

.comparison-table td {
    padding: 18px 24px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td.col-vulnerable {
    background: rgba(255, 71, 87, 0.02);
    color: #cbd5e1;
}

.comparison-table td.col-protected {
    background: rgba(177, 255, 41, 0.03);
    color: #fff;
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.bad {
    background: rgba(255, 71, 87, 0.15);
    color: #ff6b81;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.status-badge.good {
    background: rgba(177, 255, 41, 0.15);
    color: var(--accent);
    border: 1px solid rgba(177, 255, 41, 0.3);
}

/* Deep-Dive Cyber Capabilities 4-Grid */
.capabilities-section {
    padding: 40px 0 90px 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cap-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cap-card:hover {
    transform: translateY(-6px);
    border-color: rgba(177, 255, 41, 0.4);
    background: rgba(177, 255, 41, 0.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(177, 255, 41, 0.1);
}

.cap-card .cap-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(177, 255, 41, 0.1);
    border: 1px solid rgba(177, 255, 41, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 20px;
}

.cap-card .cap-metric {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.cap-card h4 {
    font-size: 17px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.cap-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Simulated App Lock Window Hero Widget */
.simulated-app-window {
    position: relative;
    background: #1e1e1e;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.sim-titlebar {
    height: 34px;
    background: #181818;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-controls {
    display: flex;
    gap: 6px;
}

.sim-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.sim-controls .c-red { background: #ff5f56; }
.sim-controls .c-yellow { background: #ffbd2e; }
.sim-controls .c-green { background: #27c93f; }

.sim-tab {
    font-size: 11px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-tab i {
    font-size: 13px;
}

.sim-screen-body {
    padding: 24px;
    position: relative;
    min-height: 240px;
    background: #0d1117;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #8b949e;
}

.sim-screen-blur {
    filter: blur(4px);
    user-select: none;
    opacity: 0.6;
}

/* Lock Shield Overlay inside the Window */
.sim-lock-shield {
    position: absolute;
    inset: 0;
    background: rgba(9, 10, 12, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    z-index: 5;
}

.sim-shield-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(177, 255, 41, 0.12);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 12px;
    box-shadow: 0 0 25px rgba(177, 255, 41, 0.35);
    animation: shieldGlow 2.5s infinite;
}

@keyframes shieldGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(177, 255, 41, 0.3); }
    50% { box-shadow: 0 0 35px rgba(177, 255, 41, 0.6); }
}

.sim-lock-shield h4 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.sim-lock-shield p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.sim-password-input {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 260px;
}

.sim-password-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    text-align: center;
    letter-spacing: 3px;
    outline: none;
}

.sim-password-input button {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: default;
}

/* Integrated Sentry Footer inside App Window */
.sim-alert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #14171d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--text-muted);
}

.sim-alert-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sim-alert-left .pulse-radar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: badgePulse 2s infinite;
    flex-shrink: 0;
}

.sim-alert-text strong {
    color: #fff;
    display: block;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.sim-alert-text span {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.sim-alert-pill {
    background: rgba(177, 255, 41, 0.1);
    color: var(--accent);
    border: 1px solid rgba(177, 255, 41, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* FAQ Accordion Section */
.faq-section {
    padding: 40px 0 100px 0;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question i {
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 22px 24px;
}

/* Interactive Watch Demo Modal */
.demo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.demo-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.demo-modal-card {
    background: #0f1115;
    border: 1px solid rgba(177, 255, 41, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(177, 255, 41, 0.15);
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.demo-modal-overlay.active .demo-modal-card {
    transform: scale(1);
}

.demo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.demo-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-modal-header h3 i {
    color: var(--accent);
}

.demo-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.demo-close-btn:hover {
    color: #fff;
}

.demo-modal-body {
    padding: 28px 24px;
    text-align: center;
}

.demo-preview-canvas {
    background: #08090b;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.demo-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(177, 255, 41, 0.1);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.demo-simulation-screen {
    max-width: 480px;
    width: 100%;
    background: #14161a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.demo-sim-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.demo-sim-line:last-child {
    border-bottom: none;
}

.demo-sim-line span.label {
    color: var(--text-muted);
}

.demo-sim-line span.val {
    color: #fff;
    font-weight: 600;
}

.demo-sim-line span.badge-lock {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.demo-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    .comparison-table th, .comparison-table td {
        padding: 14px 14px;
        font-size: 12.5px;
    }
    .section-head-center h2 {
        font-size: 28px;
    }
    .simulated-app-window {
        max-width: 100%;
    }
    .security-trust-strip {
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* In-body Contextual Anchor Links */
.app-inline-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(177, 255, 41, 0.4);
    font-weight: 500;
    transition: all 0.2s ease;
}

.app-inline-link:hover {
    color: #d4ff70;
    text-decoration-color: var(--accent);
    text-shadow: 0 0 8px rgba(177, 255, 41, 0.4);
}

/* App Security Ecosystem Cluster Strip */
.app-cluster-section {
    padding: 60px 0 80px 0;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.app-cluster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.app-cluster-card {
    background: rgba(18, 22, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.app-cluster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(177, 255, 41, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-cluster-card:hover {
    transform: translateY(-4px);
    border-color: rgba(177, 255, 41, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(177, 255, 41, 0.1);
}

.app-cluster-card:hover::before {
    opacity: 1;
}

.app-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.app-card-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

.app-card-info p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.app-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.app-cluster-card:hover .app-card-link {
    gap: 10px;
    color: #d4ff70;
}

@media (max-width: 900px) {
    .app-cluster-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   App Landing Pages CSS & Component Polishing (Chrome, WhatsApp, Telegram, VS Code)
   ========================================================================== */

/* 1. Global Contrast & Variable Fallback */
:root {
    --bg-dark: #07090e;
}

/* 2. Ambient Background Glow Helpers */
.bg-glow.top-right {
    top: 60px;
    right: -80px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(177, 255, 41, 0.16) 0%, rgba(177, 255, 41, 0.03) 50%, transparent 70%);
}

.bg-glow.center-bottom {
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 450px;
    background: radial-gradient(circle, rgba(177, 255, 41, 0.14) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 70%);
}

/* 3. Hero Visual Grid Alignment */
.f-hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

/* 4. Final CTA Button Container */
.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-open-demo {
    cursor: pointer;
}

/* 5. Download & CTA Action Buttons (Cyber Glow & Gradient) */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #b1ff29, #2ed573);
    color: #07090e !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(177, 255, 41, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(177, 255, 41, 0.6);
    color: #000 !important;
}

.btn-download.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* 6. Modal Secondary Outline / Close Button */
.btn-outline,
.btn-close-demo-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-outline:hover,
.btn-close-demo-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

/* 7. Step Number High-Contrast Fix */
.process-steps .step-num {
    color: #07090e !important;
    font-weight: 800;
}

