/* ===== ComplAI Security Page ===== */
/* Used by: landing/security.php */
/* Inherits: landing.css (base styles, navbar, footer, CTA) */

/* ===== Security Hero ===== */
.security-hero {
    padding: 9rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-muted) 100%);
    border-bottom: 1px solid var(--border-light);
}
.security-hero-content {
    max-width: 720px;
    margin: 0 auto 3rem;
}
.security-hero h1 {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.security-hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

/* Security Pillars Strip */
.security-pillars {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.security-pillar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: var(--transition);
}
.security-pillar i {
    font-size: 1rem;
    color: var(--text-muted);
}
.security-pillar:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.security-pillar:hover i {
    color: var(--accent);
}

/* ===== Security Sections ===== */
.security-section {
    padding: 6.5rem 0;
    position: relative;
}
.security-section-muted {
    background: linear-gradient(180deg, #f8f7f6 0%, #f5f4f3 50%, #f8f7f6 100%);
    border-top: 1px solid rgba(231,229,228,0.7);
    border-bottom: 1px solid rgba(231,229,228,0.7);
}

/* Section Number */
.security-section-number {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'Inter', monospace;
}

/* Section Icon Badge */
.security-section-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #44403c 100%);
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(28,25,23,0.15);
}

/* Security Text Block */
.security-text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.security-text p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Security Feature List */
.security-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.security-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.5;
}
.security-list li i {
    color: var(--success);
    font-size: 0.9375rem;
    flex-shrink: 0;
    margin-top: 0.1875rem;
}
.security-list li strong {
    font-weight: 600;
}

/* ===== Security Visuals (Shared) ===== */
.security-visual {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.security-visual::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(28,25,23,0.08) 0%, transparent 50%, rgba(28,25,23,0.04) 100%);
    z-index: 0;
    pointer-events: none;
}
.sec-visual-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}
.sec-visual-header i {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.sec-visual-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== Visual 1: RBAC Tier Diagram ===== */
.sec-tier {
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.sec-tier-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}
.sec-tier-1 {
    background: rgba(28,25,23,0.9);
    color: white;
}
.sec-tier-2 {
    background: rgba(87,83,78,0.85);
    color: white;
}
.sec-tier-3 {
    background: rgba(120,113,108,0.8);
    color: white;
}
.sec-tier-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.sec-tier-connector {
    display: flex;
    justify-content: center;
    padding: 0.375rem 0;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== Visual 2: Audit Log Timeline ===== */
.sec-log-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    position: relative;
}
.sec-log-entry:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}
.sec-log-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.375rem;
}
.sec-log-success { background: var(--success); }
.sec-log-info { background: #0284c7; }
.sec-log-warning { background: #f59e0b; }
.sec-log-danger { background: #dc2626; }

.sec-log-content {
    flex: 1;
    min-width: 0;
}
.sec-log-action {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.1875rem;
}
.sec-log-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.125rem;
}
.sec-log-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* ===== Visual 3: Document Security Layers ===== */
.sec-doc-layer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}
.sec-doc-layer:last-child {
    margin-bottom: 0;
}
.sec-doc-layer:hover {
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sec-doc-layer-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 1rem;
    flex-shrink: 0;
}
.sec-doc-layer-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}
.sec-doc-layer-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.sec-doc-check {
    margin-left: auto;
    color: var(--success);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== Visual 4: Multi-Tenant Isolation ===== */
.sec-tenant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.sec-tenant-card {
    padding: 1rem;
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-align: center;
}
.sec-tenant-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.sec-tenant-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.sec-tenant-companies {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.sec-tenant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(22,163,74,0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
}
.sec-tenant-badge i {
    font-size: 0.75rem;
}
.sec-rls-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(28,25,23,0.04);
    border: 1px dashed var(--border);
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.sec-rls-label i {
    font-size: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== Visual 5: Permission Matrix ===== */
.sec-perm-table {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.sec-perm-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    align-items: center;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.75rem;
    text-align: center;
}
.sec-perm-row:last-child {
    border-bottom: none;
}
.sec-perm-head {
    background: var(--bg-muted);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.6875rem;
}
.sec-perm-module {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}
.sec-perm-head .sec-perm-module {
    color: var(--text-secondary);
    font-weight: 700;
}
.sec-perm-yes {
    color: var(--success);
    font-size: 0.875rem;
}
.sec-perm-no {
    color: var(--border);
    font-size: 0.875rem;
}
.sec-perm-footer {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 0.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .security-hero { padding: 7rem 0 3rem; }
    .security-hero h1 { font-size: 2.25rem; }
    .security-section { padding: 5rem 0; }
    .sec-tenant-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .security-hero h1 { font-size: 1.875rem; }
    .security-section { padding: 4rem 0; }
    .security-pillars { gap: 0.375rem; }
    .security-pillar { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
    .sec-perm-row { grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; font-size: 0.6875rem; }
    .sec-perm-row { padding: 0.5rem 0.625rem; }
}

@media (max-width: 575.98px) {
    .security-hero h1 { font-size: 1.625rem; }
    .security-hero-subtitle { font-size: 0.9375rem; }
    .security-pillar span { display: none; }
    .sec-perm-table { overflow-x: auto; }
}
