/* ============================================
   SECURITY CLEARANCE SECTION
   Military intel / Bloomberg terminal aesthetic
   ============================================ */

/* ============================================
   SECTION FOUNDATION
   ============================================ */
.security-section {
    position: relative;
    background:
        /* Trust band - cyan glow over deep slate */
        radial-gradient(circle at top center, rgba(6, 182, 212, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, #020617 0%, #111827 100%);
    overflow: hidden;
}

/* Scan-line texture overlay */
.security-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(6, 182, 212, 0.008) 2px,
            rgba(6, 182, 212, 0.008) 4px);
    opacity: 0.5;
    z-index: 1;
}

/* Grid pattern with cyan tint */
.security-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.5;
    z-index: 1;
}

[data-theme="light"] .security-section {
    /* Neutral trust band */
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

[data-theme="light"] .security-section::before {
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(148, 163, 184, 0.015) 2px,
            rgba(148, 163, 184, 0.015) 4px);
}

[data-theme="light"] .security-section::after {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.02) 1px, transparent 1px);
    opacity: 0.35;
}

.security-container {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

/* ============================================
   SECTION HEADER - Centered, Minimal
   ============================================ */
.security-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

@media (min-width: 768px) {
    .security-header {
        margin-bottom: 5rem;
    }
}

.security-header__kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #22d3ee;
    margin-bottom: 1rem;
}

[data-theme="light"] .security-header__kicker {
    color: #0891b2;
}

.security-header__title {
    font-size: 2rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .security-header__title {
        font-size: 2.5rem;
    }
}

[data-theme="light"] .security-header__title {
    color: #1e293b;
}

.security-header__lead {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .security-header__lead {
        font-size: 1.15rem;
    }
}

[data-theme="light"] .security-header__lead {
    color: #64748b;
}

/* ============================================
   SECURITY PILLARS - 4 Column Minimal Grid
   ============================================ */
.security-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .security-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .security-pillars {
        grid-template-columns: repeat(4, minmax(0, 220px));
        justify-content: center;
        gap: 2rem;
    }
}

/* ============================================
   SECURITY PILLAR - No Box, Floating Icon
   ============================================ */
.security-pillar {
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    /* Initial reveal state */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
    .security-pillar {
        max-width: 300px;
    }
}

@media (min-width: 1024px) {
    .security-pillar {
        max-width: 200px;
    }
}

.security-pillar.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pillar Icon - Floating with subtle glow */
.security-pillar__icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 0.5rem;
    color: #22d3ee;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.security-pillar__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 1.5;
}

.security-pillar:hover .security-pillar__icon {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 24px -4px rgba(34, 211, 238, 0.35);
    transform: translateY(-2px);
}

[data-theme="light"] .security-pillar__icon {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.12);
    color: #0891b2;
}

[data-theme="light"] .security-pillar:hover .security-pillar__icon {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 20px -4px rgba(8, 145, 178, 0.25);
}

/* Pillar Title */
.security-pillar__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

[data-theme="light"] .security-pillar__title {
    color: #1e293b;
}

/* Pillar Description */
.security-pillar__desc {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.55;
}

.security-pillar__desc strong {
    color: #cbd5e1;
    font-weight: 600;
}

[data-theme="light"] .security-pillar__desc {
    color: #64748b;
}

[data-theme="light"] .security-pillar__desc strong {
    color: #475569;
}

/* ============================================
   TERMINAL FOOTER
   ============================================ */
.security-terminal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.25rem;
    max-width: max-content;
    margin: 0 auto;
    /* Initial reveal state */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.security-terminal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="light"] .security-terminal {
    background: rgba(241, 245, 249, 0.85);
}

.security-terminal__prompt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #22d3ee;
}

[data-theme="light"] .security-terminal__prompt {
    color: #0891b2;
}

.security-terminal__text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

[data-theme="light"] .security-terminal__text {
    color: #64748b;
}

.security-terminal__cursor {
    width: 8px;
    height: 14px;
    background: #22d3ee;
    opacity: 0.8;
    animation: cursor-blink 1s ease-in-out infinite;
}

@keyframes cursor-blink {

    0%,
    50% {
        opacity: 0.8;
    }

    51%,
    100% {
        opacity: 0;
    }
}

[data-theme="light"] .security-terminal__cursor {
    background: #0891b2;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .security-terminal__cursor {
        animation: none;
    }

    .security-pillar,
    .security-terminal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .security-pillar__icon {
        transition: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.countup {
    display: inline-block;
}