/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary { background-color: #080808; color: white; }
.btn-primary:hover { background-color: #222; color: white; }

.btn-secondary { background-color: white; color: #080808; border: 1px solid #E5E7EB; }
.btn-secondary:hover { background-color: #F3F4F6; color: #080808; }

.btn-accent { background-color: #8FFF08; color: #080808; }
.btn-accent:hover { background-color: #7BE007; color: #080808; }

.btn-ghost { background-color: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; }
.btn-ghost:hover { background-color: rgba(255,255,255,0.1); color: white; }

.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ─── Cards ─── */
.card {
    background-color: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #E5E7EB;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-dark { background-color: #111118; border-color: #1F2937; color: white; }
.card-dark h3, .card-dark h4 { color: white; }
.card-dark p { color: #9CA3AF; }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-dark .card-icon { background-color: #1F2937; }

.card-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.card-body { color: #6B7280; line-height: 1.7; }
.card-dark .card-body { color: #9CA3AF; }

/* ─── Navigation ─── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.nav-logo img { height: 32px; }
.nav-logo svg { display: block; }

/* Logo text color: default dark */
.nav-logo svg text:first-child { fill: #080808; }

/* Nav dark variant: logo + links white */
.site-nav.nav-dark .nav-logo svg text:first-child { fill: white; }
.site-nav.nav-dark.scrolled .nav-logo svg text:first-child { fill: #080808; }

/* Nav menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item { position: relative; }

.nav-item a {
    padding: 8px 14px;
    color: #080808;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
    display: block;
    white-space: nowrap;
}

.nav-item a:hover { background-color: rgba(0, 0, 0, 0.05); color: #080808; }

/* Dark nav variant */
.site-nav.nav-dark .nav-item a { color: rgba(255, 255, 255, 0.85); }
.site-nav.nav-dark .nav-item a:hover { background-color: rgba(255, 255, 255, 0.1); color: white; }

/* Scrolled revert to dark text */
.site-nav.nav-dark.scrolled .nav-item a { color: #080808; }
.site-nav.nav-dark.scrolled .nav-item a:hover { background-color: rgba(0, 0, 0, 0.05); }

/* Light nav variant (explicit) */
.site-nav.nav-light { background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.site-nav.nav-light .nav-item a { color: #080808; }
.site-nav.nav-light .nav-logo svg text:first-child { fill: #080808 !important; }

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.3s;
    list-style: none;
    z-index: 1001;
}

.nav-dropdown li { list-style: none; }

.nav-dropdown a {
    padding: 10px 16px !important;
    color: #080808 !important;
    border-radius: 8px;
    font-size: 14px !important;
}

.nav-dropdown a:hover { background-color: #F3F4F6 !important; }

.has-dropdown:hover .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Nav CTA */
.nav-cta {
    margin-left: 16px;
    padding: 8px 20px !important;
    font-size: 14px !important;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1001;
    gap: 6px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #080808;
    transition: all 0.3s;
    border-radius: 1px;
}

/* Dark nav toggle */
.site-nav.nav-dark .mobile-toggle span { background-color: white; }
.site-nav.nav-dark.scrolled .mobile-toggle span { background-color: #080808; }
.site-nav.nav-light .mobile-toggle span { background-color: #080808; }

/* Toggle active (X) */
.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: #080808; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: #080808; }

/* ─── Footer ─── */
.site-footer {
    background-color: #080808;
    color: white;
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #8FFF08;
    font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col a {
    color: #9CA3AF;
    text-decoration: none;
    line-height: 2.4;
    font-size: 14px;
    transition: color 0.3s;
    display: block;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #1F2937;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #6B7280;
}

.footer-info p { margin-bottom: 4px; color: #6B7280; font-size: 13px; }

.footer-social { display: flex; gap: 16px; align-items: flex-start; }
.footer-social a { color: #6B7280; text-decoration: none; transition: color 0.3s; line-height: 1; }
.footer-social a:hover { color: #8FFF08; }

/* ─── Badge ─── */
.badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-critical { background-color: #FEE2E2; color: #991B1B; }
.badge-high { background-color: #FEF3C7; color: #92400E; }
.badge-medium { background-color: #DBEAFE; color: #1E40AF; }
.badge-low { background-color: #D1FAE5; color: #065F46; }

/* ─── Accordion ─── */
.accordion-item { border-bottom: 1px solid #E5E7EB; }

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: #080808;
    font-family: inherit;
    line-height: 1.4;
    gap: 16px;
}

.accordion-trigger::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.accordion-item.active .accordion-trigger::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content { max-height: 600px; }

.accordion-inner {
    padding-bottom: 24px;
    color: #6B7280;
    line-height: 1.7;
}

/* ─── Tabs ─── */
.tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-trigger {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-weight: 500;
    color: #6B7280;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 15px;
    white-space: nowrap;
}

.tab-trigger:hover { color: #080808; }
.tab-trigger.active { color: #080808; border-bottom-color: #8FFF08; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Timeline ─── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #E5E7EB;
}

.timeline-item { position: relative; margin-bottom: 32px; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #8FFF08;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #E5E7EB;
}

.timeline-time {
    font-size: 14px;
    color: #6B7280;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.timeline-content { margin-top: 8px; }

/* ─── Stats ─── */
.stat-card { text-align: center; }
.stat-value { font-size: 48px; font-weight: 800; color: #080808; line-height: 1; }
.stat-label { font-size: 14px; color: #6B7280; margin-top: 8px; }

.section-dark .stat-value { color: white; }

/* ─── Risk Gauge ─── */
.risk-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#EF4444 0% 70%, #1F2937 70% 100%);
}

.risk-gauge::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #0A0A0F;
    border-radius: 50%;
}

.risk-gauge-value {
    position: relative;
    font-size: 32px;
    font-weight: 800;
    z-index: 1;
    color: white;
}
