/* =================================================================
   RAXE - Defend Page Styles
   /defend landing page (dark-first, design system v4.0)
   ================================================================= */

/* ===== DEFEND HERO (dark) ===== */
.defend-hero {
    background: var(--color-surface-primary);
    padding: var(--space-16) 0 var(--space-12);
    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(--color-accent-defend-glow), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(232, 121, 249, 0.08), transparent);
    pointer-events: none;
}

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

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

.defend-hero .hero-subtitle {
    color: var(--color-text-secondary);
}

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

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

.defend-hero .trust-badge svg {
    color: var(--color-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-16) 0;
}

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

.defend-frameworks-section {
    padding: var(--space-16) 0;
    background: var(--color-surface-secondary);
}

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

.defend-frameworks-link {
    display: block;
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-body);
    color: var(--color-text-muted);
    font-weight: var(--weight-medium);
}

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

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

.defend-taxonomy-section {
    padding: var(--space-16) 0;
    background: var(--color-surface-secondary);
}

/* ===== DEFEND CTA (dark split) ===== */
.defend-cta {
    background: var(--color-surface-primary);
    padding: var(--space-16) 0;
}

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

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

.defend-cta-col h3 {
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.defend-cta-col p {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.defend-cta-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--color-brand-primary), var(--color-brand-secondary), transparent);
}

@media (max-width: 640px) {
    .defend-cta-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    .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-4);
    max-width: 700px;
    margin: 0 auto var(--space-4);
}

.siem-protocols {
    text-align: center;
    font-size: var(--text-body-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

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

.siem-card {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.siem-card img {
    filter: brightness(1.5);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.siem-card:hover {
    border-color: var(--color-brand-primary);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.1);
}

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

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

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

.siem-icon svg {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

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

.siem-card strong {
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
}

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

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

.enterprise-feature {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-body);
    color: var(--color-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-2);
    }
}

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

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

.defend-pricing-card {
    padding: var(--space-8);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.defend-pricing-card .btn {
    margin-top: auto;
}

.defend-pricing-card h4 {
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-1);
}

.defend-pricing-price {
    font-size: var(--text-data-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2);
}

.defend-pricing-note {
    font-size: var(--text-body-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

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

.defend-pricing-card-featured {
    border: 2px solid var(--color-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-8) auto 0;
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.taxonomy-header {
    padding: var(--space-6);
    background: var(--color-surface-inset);
    text-align: center;
}

.taxonomy-header .section-title {
    margin-bottom: var(--space-md);
}

.taxonomy-header h3 {
    font-size: var(--text-body-lg);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

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

.taxonomy-stat {
    font-size: var(--text-body-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-brand-primary);
    padding: var(--space-1) var(--space-3);
    background: rgba(34, 211, 238, 0.1);
    border-radius: var(--radius-full);
}

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

.taxonomy-section {
    margin-bottom: var(--space-2);
    border: 1px solid var(--color-border-primary);
    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-4);
    background: var(--color-surface-secondary);
    cursor: pointer;
    transition: background var(--transition-base);
}

.taxonomy-section summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.taxonomy-label {
    font-size: var(--text-body-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
}

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

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

.taxonomy-count {
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    background: var(--color-brand-gradient);
    padding: 2px var(--space-3);
    border-radius: var(--radius-full);
}

.taxonomy-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--color-surface-inset);
}

.taxonomy-grid span {
    font-size: var(--text-overline);
    font-weight: var(--weight-medium);
    padding: var(--space-1) var(--space-3);
    background: var(--color-surface-secondary);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

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

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

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

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

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

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

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

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

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .siem-card img,
    .siem-icon img,
    .siem-icon svg,
    .taxonomy-grid span,
    .taxonomy-section summary,
    .taxonomy-label::before {
        transition: none;
    }
}
