/* =================================================================
   RAXE - Defend Page Styles
   /defend landing page (light with dark hero)
   ================================================================= */

/* ===== DEFEND HERO (dark) ===== */
.defend-hero {
    background: var(--bg-dark);
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.defend-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-defend-glow), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(34, 211, 238, 0.08), transparent);
    pointer-events: none;
}

.defend-hero .container {
    position: relative;
    z-index: 1;
}

.defend-hero .hero-title {
    color: var(--text-on-dark);
}

.defend-hero .hero-subtitle {
    color: var(--text-on-dark-muted);
}

.defend-hero .hero-subtitle strong {
    color: var(--text-on-dark);
}

.defend-hero .trust-badge {
    background: rgba(255,255,255,0.1);
    color: var(--text-on-dark-muted);
}

.defend-hero .trust-badge svg {
    color: var(--accent-defend);
}

.defend-hero .install-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Dark-to-light transition handled by sections.css gradient accent line */

/* ===== DEFEND SECTIONS ===== */
.defend-integration-section {
    padding: var(--space-3xl) 0;
}

.defend-pipeline-section {
    padding: var(--space-3xl) 0;
}

.defend-frameworks-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
}

.defend-frameworks-section .framework-logos {
    margin-top: var(--space-lg);
}

.defend-frameworks-link {
    display: block;
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.defend-frameworks-link:hover {
    color: var(--accent-defend);
}

.defend-enterprise-section {
    padding: var(--space-2xl) 0;
}

.defend-taxonomy-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
}

/* ===== DEFEND CTA (dark split) ===== */
.defend-cta {
    background: var(--bg-dark);
    padding: var(--space-3xl) 0;
}

.defend-cta-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.defend-cta-col {
    text-align: center;
}

.defend-cta-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: var(--space-sm);
}

.defend-cta-col p {
    font-size: 0.875rem;
    color: var(--text-on-dark-muted);
    margin-bottom: var(--space-lg);
}

.defend-cta-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent-cyan), var(--accent-magenta), transparent);
}

@media (max-width: 640px) {
    .defend-cta-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .defend-cta-divider {
        display: none;
    }
}

/* ===== SIEM / ENTERPRISE FEATURES (moved from widgets.css — defend-only) ===== */
.siem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: 700px;
    margin: 0 auto var(--space-md);
}

.siem-protocols {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.siem-protocols strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.siem-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.siem-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 12px rgba(98, 221, 252, 0.1);
}

.siem-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
}

.siem-icon img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.siem-card:hover .siem-icon img {
    filter: grayscale(0%);
    opacity: 1;
}

.siem-icon svg {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.siem-card:hover .siem-icon svg {
    filter: grayscale(0%);
    opacity: 1;
}

.siem-card strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.siem-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.enterprise-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.enterprise-feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.enterprise-feature svg {
    color: var(--color-success);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .siem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .enterprise-features {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
}

/* ===== PRICING TABLE ===== */
.defend-pricing-table {
    margin-top: var(--space-2xl);
}

.defend-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: 700px;
    margin: 0 auto;
}

.defend-pricing-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.defend-pricing-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.defend-pricing-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.defend-pricing-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.defend-pricing-features {
    list-style: none;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.defend-pricing-card-featured {
    border: 2px solid var(--accent-defend);
    position: relative;
}

@media (max-width: 640px) {
    .defend-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== THREAT TAXONOMY (moved from widgets.css — defend-only) ===== */
.threat-taxonomy {
    max-width: 800px;
    margin: var(--space-xl) auto 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.taxonomy-header {
    padding: var(--space-lg);
    background: var(--bg-dark);
    text-align: center;
}

.taxonomy-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: var(--space-sm);
}

.taxonomy-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.taxonomy-stat {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 4px 12px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: var(--radius-full);
}

.taxonomy-sections {
    padding: var(--space-md);
}

.taxonomy-section {
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.taxonomy-section:last-child {
    margin-bottom: 0;
}

.taxonomy-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: background 0.2s;
}

.taxonomy-section summary:hover {
    background: var(--bg-primary);
}

.taxonomy-section summary::marker,
.taxonomy-section summary::-webkit-details-marker {
    display: none;
}

.taxonomy-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.taxonomy-label::before {
    content: "► ";
    font-size: 0.6rem;
    margin-right: 6px;
    display: inline-block;
    transition: transform 0.2s;
}

.taxonomy-section[open] .taxonomy-label::before {
    transform: rotate(90deg);
}

.taxonomy-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-on-dark);
    background: var(--gradient-primary);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.taxonomy-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: var(--space-md);
    background: var(--bg-primary);
}

.taxonomy-grid span {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.taxonomy-grid span:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.taxonomy-grid-small span {
    font-size: 0.65rem;
    padding: 3px 8px;
}

@media (max-width: 640px) {
    .taxonomy-stats {
        gap: var(--space-sm);
    }

    .taxonomy-stat {
        font-size: 0.7rem;
    }

    .taxonomy-header h3 {
        font-size: 0.9rem;
    }

    .taxonomy-grid {
        gap: 4px;
        padding: var(--space-sm);
    }

    .taxonomy-grid span {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .taxonomy-grid-small span {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .taxonomy-section summary {
        padding: var(--space-sm);
    }

    .taxonomy-label {
        font-size: 0.75rem;
    }
}
