/* ============================================
   DATA RIDERS — Security & Privacy Dashboard
   AI Cybersecurity control panel aesthetic
   ============================================ */

:root {
    --sec-green: #22c55e;
    --sec-green-soft: rgba(34, 197, 94, 0.18);
    --sec-green-ring: rgba(34, 197, 94, 0.45);
    --sec-green-glow: 0 0 20px rgba(34, 197, 94, 0.45);
    --sec-amber: #f59e0b;
    --sec-red: #ef4444;
    --sec-panel: #0f172a;
    --sec-panel-alt: #111d35;
    --sec-border: rgba(148, 163, 184, 0.18);
    --sec-text-dim: #94a3b8;
}

/* Hero */
.sec-hero {
    position: relative;
    padding: 110px 0 60px;
    background:
        radial-gradient(1200px 500px at 50% 0%, rgba(34,197,94,0.12), transparent 60%),
        linear-gradient(180deg, #0b1526 0%, #0D1B2A 100%);
    overflow: hidden;
}
.sec-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(74,158,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,158,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}
.sec-hero-inner { position: relative; z-index: 1; text-align: center; }
.sec-hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--sec-green-ring);
    background: var(--sec-green-soft);
    color: #86efac;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: var(--sec-green-glow);
}
.sec-hero-badge .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--sec-green);
    box-shadow: 0 0 10px var(--sec-green);
    animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 10px var(--sec-green); }
    50% { box-shadow: 0 0 20px var(--sec-green), 0 0 30px rgba(34,197,94,0.6); }
}
.sec-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin: 20px auto 14px;
    max-width: 900px;
}
.sec-hero p.lede {
    max-width: 780px; margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

/* KPI strip */
.sec-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 40px 0 0;
}
.sec-kpi {
    background: linear-gradient(180deg, var(--sec-panel) 0%, rgba(15,23,42,0.6) 100%);
    border: 1px solid var(--sec-border);
    border-radius: 14px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}
.sec-kpi::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px; background: linear-gradient(90deg, var(--sec-green), transparent);
}
.sec-kpi .kpi-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--sec-text-dim); }
.sec-kpi .kpi-value {
    font-size: 1.8rem; font-weight: 800; margin-top: 4px; color: #fff;
    display: flex; align-items: center; gap: 10px;
}
.sec-kpi .kpi-value .check { color: var(--sec-green); }
.sec-kpi .kpi-trend { font-size: 0.78rem; color: var(--sec-green); display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }

/* Dashboard Grid */
.sec-dashboard { padding: 70px 0; }
.sec-dashboard-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
    gap: 16px; margin-bottom: 28px;
}
.sec-dashboard-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; }
.sec-dashboard-title .sub { display: block; color: var(--sec-text-dim); font-size: 0.95rem; font-weight: 500; margin-top: 6px; }
.sec-dashboard-status {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-radius: 12px;
    background: var(--sec-green-soft); border: 1px solid var(--sec-green-ring);
    color: #bbf7d0; font-weight: 600; font-size: 0.88rem;
}
.sec-dashboard-status .light {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--sec-green); box-shadow: 0 0 10px var(--sec-green);
    animation: pulseDot 1.8s infinite;
}

.sec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.sec-card {
    position: relative;
    background: linear-gradient(180deg, var(--sec-panel-alt) 0%, var(--sec-panel) 100%);
    border: 1px solid var(--sec-border);
    border-radius: 16px;
    padding: 22px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sec-card:hover {
    transform: translateY(-2px);
    border-color: var(--sec-green-ring);
    box-shadow: 0 10px 30px rgba(34,197,94,0.08);
}
.sec-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.sec-card-title { font-size: 1.05rem; font-weight: 700; color: #e2e8f0; display: flex; align-items: center; gap: 10px; }
.sec-card-title i { color: #7dd3fc; }
.sec-light {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: var(--sec-green-soft);
    border: 1px solid var(--sec-green-ring);
    color: #86efac;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.sec-light .bulb {
    width: 8px; height: 8px; border-radius: 50%; background: var(--sec-green);
    box-shadow: 0 0 8px var(--sec-green);
}
.sec-card p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.65; }
.sec-card ul { margin-top: 10px; }
.sec-card ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 0.92rem;
    color: #cbd5e1;
}
.sec-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute; left: 0; top: 7px;
    color: var(--sec-green);
    font-size: 0.78rem;
}

/* 7 Guarantees hierarchy */
.sec-commitments-section { padding: 80px 0; background: linear-gradient(180deg, #0b1526, #0D1B2A); }
.sec-commitments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.sec-commitment-card {
    background: rgba(15,23,42,0.6);
    border: 1px solid var(--sec-border);
    border-radius: 14px;
    padding: 22px;
    position: relative;
    border-left: 3px solid var(--sec-green);
}
.sec-commitment-card .num {
    position: absolute; top: 16px; right: 18px;
    font-size: 2.2rem; font-weight: 800; color: rgba(34,197,94,0.18);
    line-height: 1;
}
.sec-commitment-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #e2e8f0; padding-right: 36px; }
.sec-commitment-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* Trust Center — 7 Guarantees: make each card a link with a "Read full document" CTA */
.sec-commitment-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.sec-commitment-link .sec-commitment-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease, border-left-color .2s ease;
}
.sec-commitment-link:hover .sec-commitment-card {
    transform: translateY(-2px);
    border-color: var(--sec-green-ring);
    box-shadow: 0 10px 30px rgba(34,197,94,0.10);
}
.sec-commitment-readmore {
    margin-top: auto;
    padding-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #86efac;
    letter-spacing: 0.2px;
    transition: color .15s ease;
}
.sec-commitment-readmore i { transition: transform .15s ease; font-size: 0.78rem; }
.sec-commitment-link:hover .sec-commitment-readmore { color: #bbf7d0; }
.sec-commitment-link:hover .sec-commitment-readmore i { transform: translateX(4px); }

/* Commitments hierarchy tiered */
.sec-tier {
    margin-bottom: 36px;
}
/* Inside a tier, cards should fill the full width — 2 per row on desktop, 1 on mobile.
   Override the generic .sec-grid auto-fill behavior that was leaving empty columns
   when a tier only has 2 cards. */
.sec-tier .sec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 820px) {
    .sec-tier .sec-grid {
        grid-template-columns: 1fr;
    }
}
.sec-tier-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--sec-green); margin-bottom: 14px;
    padding: 6px 12px; border: 1px solid var(--sec-green-ring); border-radius: 999px;
    background: var(--sec-green-soft);
}

/* Deployment matrix */
.sec-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}
@media (max-width: 720px){ .sec-matrix{ grid-template-columns: 1fr; } }
.sec-matrix-col {
    background: var(--sec-panel);
    border: 1px solid var(--sec-border);
    border-radius: 14px;
    padding: 20px;
}
.sec-matrix-col h4 { font-size: 1.05rem; margin-bottom: 10px; color: #e2e8f0; }
.sec-matrix-col .badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
    padding: 3px 10px; border-radius: 999px;
    background: var(--sec-green-soft); border: 1px solid var(--sec-green-ring); color: #86efac;
    margin-bottom: 8px; text-transform: uppercase;
}
.sec-matrix-col ul li { font-size: 0.9rem; }

/* Sticky bottom security bar */
.sec-bottombar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10, 18, 33, 0.78);
    border-top: 1px solid rgba(34, 197, 94, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.8rem;
}
.sec-bottombar .left, .sec-bottombar .right {
    display: inline-flex; align-items: center; gap: 10px;
}
.sec-bottombar .light {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--sec-green); box-shadow: 0 0 8px var(--sec-green);
    animation: pulseDot 2.2s infinite;
}
.sec-bottombar .status-text { color: #bbf7d0; font-weight: 600; letter-spacing: 0.3px; }
.sec-bottombar .sec-bottombar-logo {
    height: 18px; opacity: 0.85; transition: opacity .2s;
}
.sec-bottombar .sec-bottombar-logo:hover { opacity: 1; }
.sec-bottombar a { color: #cbd5e1; }
.sec-bottombar a:hover { color: #fff; }
.sec-bottombar .divider { width: 1px; height: 14px; background: rgba(148,163,184,0.25); }

@media (max-width: 640px){
    .sec-bottombar { font-size: 0.72rem; padding: 8px 10px; }
    .sec-bottombar .hide-sm { display: none; }
}

/* Privacy link on forms */
.form-privacy-link {
    font-size: 0.72rem;
    color: #64748b;
    display: block;
    margin-top: 6px;
    text-align: left;
}
.form-privacy-link a {
    color: inherit; text-decoration: underline; text-decoration-color: rgba(100,116,139,0.45);
}
.form-privacy-link a:hover { color: #94a3b8; }
