/* =================================================================
   Home Page Styles - FULLY THEME COMPATIBLE
   ================================================================= */

/* =================================================================
   CLEAN BACKGROUND - NO GRADIENTS
   ================================================================= */

/* Skeleton Loading Styles for Home Page */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-secondary) 0%,
            var(--bg-hover) 50%,
            var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-stat-number {
    display: inline-block;
}

.skeleton-text {
    display: block;
}



/* ===== PARTICLES ===== */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent !important;
}

#hero-canvas {
    width: 100%;
    height: 100%;
}

/* =================================================================
   RESPONSIVE DESIGN - Mobile First
   ================================================================= */

/* Mobile (< 768px) - Base styles above are mobile-first */

/* Tablet and up (>= 768px) */
@media (min-width: 768px) {
    .hero-main-heading {
        font-size: 4rem;
    }

    .hero-main-subtitle {
        font-size: 1.5rem;
    }
}

/* Desktop and up (>= 1024px) */
@media (min-width: 1024px) {
    .hero-main-heading {
        font-size: 4.5rem;
    }

    .hero-main-subtitle {
        font-size: 1.75rem;
    }
}

/* Large Desktop (>= 1920px) */
@media (min-width: 1920px) {
    .hero-main-heading {
        font-size: 5rem;
    }
}

/* Mobile specific overrides (< 768px) */
@media (max-width: 767px) {
    .hero-gradient-background {
        height: 100vh;
    }

    .hero-main-heading {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-main-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-md);
    }

    /* Stack any grid layouts vertically on mobile */
    .skeleton-stat-number {
        font-size: 1.5rem;
    }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
    .hero-main-heading {
        font-size: 2rem;
    }

    .hero-main-subtitle {
        font-size: 0.875rem;
    }
}


/* =================================================================
   CSS Grid Fallbacks with @supports
   ================================================================= */

/* Fallback for browsers without CSS Grid support */
@supports not (display: grid) {

    /* Any grid layouts in home page would use flexbox fallback */
    .hero-stats-floating {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-stats-floating>* {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
    }
}

/* =================================================================
   Backdrop Filter Fallbacks
   ================================================================= */

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {

    /* Increase background opacity for elements that use backdrop-filter */
    .glass-hero-card,
    .floating-stat-card {
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

/* =================================================================
   Reduced Motion Support
   ================================================================= */

@media (prefers-reduced-motion: reduce) {

    /* Disable all animations for users who prefer reduced motion */
    .skeleton,
    .floating-stat-card,
    .hero-gradient-background::before {
        animation: none !important;
    }

    @keyframes skeleton-loading {

        0%,
        100% {
            background-position: 0% 0;
        }
    }

    @keyframes float-gentle {

        0%,
        100% {
            transform: translateY(0px);
        }
    }
}

/* =================================================================
   Browser-Specific Fixes
   ================================================================= */

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {

    /* Fix for Safari's handling of gradient backgrounds */
    .hero-gradient-background {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* =================================================================
   Accessibility - Focus Styles for Home Page Elements
   ================================================================= */

/* Hero action buttons focus */
.hero-actions-modern .btn:focus-visible {
    outline: 3px solid var(--primary-400);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3);
}

/* Floating stat cards focus (when interactive) */
.floating-stat-card:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Hero badge focus (if interactive) */
.hero-badge:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* =================================================================
   Reduced Motion - Home Page Specific
   ================================================================= */

@media (prefers-reduced-motion: reduce) {

    /* Disable skeleton loading animation */
    .skeleton {
        animation: none !important;
        background: var(--bg-secondary);
    }

    /* Disable floating stat animations */
    .floating-stat-1,
    .floating-stat-2,
    .floating-stat-3,
    .floating-stat-4 {
        animation: none !important;
    }

    /* Disable hero particles animation */
    .hero-particles {
        animation: none !important;
    }

    /* Remove hover transforms on home page */
    .floating-stat-card:hover {
        transform: none !important;
    }

    .hero-actions-modern .btn:hover {
        transform: none !important;
    }

    /* Keep glow effect but remove animation */
    .btn-glow-effect {
        transition: none !important;
    }

.btn-hero-primary-new:hover .btn-glow-effect {
        left: 0 !important;
    }
}

.browser-hint-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: var(--spacing-lg);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1000;
}

.browser-hint-banner svg {
    color: #6366f1;
    flex-shrink: 0;
}

.browser-hint-banner span {
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .browser-hint-banner {
        flex-direction: row;
        align-items: flex-start;
    }
}

.browser-hint-tag {
    position: fixed;
    top: 88px;
    right: var(--spacing-lg);
    left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(var(--bg-primary-rgb, 10 10 10), 0.85);
    border: 1px solid rgba(99, 102, 241, 0.45);
    color: var(--text-primary, #ffffff);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
    z-index: 10000;
    backdrop-filter: blur(10px) saturate(140%);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(-8px);
    animation: bannerSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes bannerSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.browser-hint-tag svg {
    color: #6366f1;
    flex-shrink: 0;
}

.browser-hint-tag .tag-dismiss {
    margin-left: 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.browser-hint-tag .tag-dismiss:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .browser-hint-tag {
        top: 72px;
        right: var(--spacing-sm);
        left: var(--spacing-sm);
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
        font-size: 0.75rem;
    }
}

/* =================================================================
   REDESIGNED HERO SECTION - MODERN SPLIT LAYOUT
   ================================================================= */

/* Compact hero band: the exploited spotlight right below it must already show
   on the first screen instead of hiding behind a full-height stage. */
.hero-section-redesigned {
    min-height: 0;
    display: flex;
    align-items: center;
    padding: var(--spacing-2xl) 0 3rem;
    position: relative;
}

.hero-section-redesigned .hero-content-side {
    gap: var(--spacing-lg);
}

.hero-section-redesigned .heading-line-1,
.hero-section-redesigned .heading-line-2 {
    font-size: clamp(2.4rem, 4.6vw, 3.4rem);
}

.hero-section-redesigned .heading-line-2 {
    margin-top: -0.35rem;
}

.hero-section-redesigned .heading-accent {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.hero-section-redesigned .hero-main-description {
    font-size: 1rem;
    line-height: 1.6;
}

.hero-section-redesigned .hero-trust-indicators {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    padding-top: 0.25rem;
}

/* One compact row so it stays clear of the trust indicators above it */
.hero-section-redesigned .scroll-indicator-new {
    bottom: 0.6rem;
    min-height: 0;
    flex-direction: row;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.hero-section-redesigned .scroll-indicator-new .scroll-icon {
    width: 18px;
    height: 18px;
}

/* Hero Grid Layout */
.hero-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

/* ===== LEFT SIDE: CONTENT ===== */
.hero-content-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Brand Badge */
.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-2xl);
    width: fit-content;
}

.brand-icon {
    color: #6366f1;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Main Heading */
.hero-main-heading {
    margin: 0;
    line-height: 1.1;
}

.heading-line-1,
.heading-line-2 {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-line-2 {
    margin-top: -0.5rem;
}

.heading-accent {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: var(--spacing-sm);
}

/* Description */
.hero-main-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    max-width: 540px;
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-hero-primary-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-hero-primary-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-hero-secondary-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary-new:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

/* Trust Indicators */
.hero-trust-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.trust-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* ===== RIGHT SIDE: STATS CARDS ===== */
.hero-stats-side {
    position: relative;
}

/* Scroll Indicator */
.scroll-indicator-new {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 0;
    right: 0;
    width: max-content;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    color: inherit;
    text-decoration: none;
    min-height: 44px;
}

.scroll-indicator-new:hover,
.scroll-indicator-new:focus-visible { opacity: 1; }
.scroll-indicator-new:focus-visible { outline: 2px solid var(--primary-400); outline-offset: 4px; }

@keyframes bounce-scroll {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.scroll-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-icon {
    color: var(--text-secondary);
    animation: bounce-scroll 2s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-grid-modern {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }

    .heading-line-1,
    .heading-line-2 {
        font-size: 3rem;
    }

}

@media (max-width: 768px) {

    .heading-line-1,
    .heading-line-2 {
        font-size: 2.5rem;
    }

    .heading-accent {
        font-size: 1.25rem;
    }

    .hero-main-description {
        font-size: 1rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
    }

    .btn-hero-primary-new,
    .btn-hero-secondary-new {
        width: 100%;
        justify-content: center;
    }

}

@media (max-width: 480px) {

    .heading-line-1,
    .heading-line-2 {
        font-size: 2rem;
    }

    .hero-brand-badge {
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .brand-name {
        font-size: 1rem;
    }

}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator-new .scroll-icon {
        animation: none !important;
    }

    .btn-hero-primary-new:hover,
    .btn-hero-secondary-new:hover {
        transform: none !important;
    }
}

/* =================================================================
   THREAT PULSE — live severity ring + newest CVE ticker (hero)
   ================================================================= */
.threat-pulse-shell {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
}

.threat-pulse {
    --tp-critical: var(--severity-critical);
    --tp-high: var(--severity-high);
    --tp-medium: var(--severity-medium);
    --tp-low: var(--severity-low);
    --tp-unscored: #64748b;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background:
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.16), transparent 55%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.threat-pulse-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.threat-pulse-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
}

.tp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: tp-live-ping 2s ease-out infinite;
}

.threat-pulse--offline .threat-pulse-live {
    color: var(--text-muted);
}

.threat-pulse--offline .tp-live-dot {
    animation: none;
    box-shadow: none;
}

@keyframes tp-live-ping {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.threat-pulse-body {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--spacing-xl);
    align-items: center;
}

.threat-pulse-empty { min-height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .55rem; padding: 1.6rem; text-align: center; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); background: var(--glass-bg); color: var(--text-secondary); line-height: 1.5; }
.threat-pulse-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: .25rem; border-radius: 16px; background: rgba(99,102,241,.13); color: var(--primary-400); }
.threat-pulse-empty-icon svg { width: 27px; height: 27px; }
.threat-pulse-empty--error .threat-pulse-empty-icon { background: rgba(245,158,11,.12); color: #d97706; }
.threat-pulse-empty strong { color: var(--text-primary); font-size: 1rem; }

/* Ring */
.threat-pulse-ring-wrap {
    position: relative;
    width: 200px;
    height: 200px;
}

.threat-pulse-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.tp-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 14;
}

.tp-arc {
    fill: none;
    stroke-width: 14;
    stroke-linecap: butt;
    transition: stroke-width 0.2s ease, filter 0.2s ease;
    animation: tp-reveal 0.8s ease-out both;
    animation-delay: var(--delay, 0ms);
}

.tp-arc-link:hover .tp-arc,
.tp-arc-link:focus-visible .tp-arc {
    stroke-width: 18;
    filter: drop-shadow(0 0 8px currentColor);
}

.tp-arc-link:focus-visible {
    outline: none;
}

.tp-arc--critical { stroke: var(--tp-critical); color: var(--tp-critical); }
.tp-arc--high { stroke: var(--tp-high); color: var(--tp-high); }
.tp-arc--medium { stroke: var(--tp-medium); color: var(--tp-medium); }
.tp-arc--low { stroke: var(--tp-low); color: var(--tp-low); }
.tp-arc--unscored { stroke: var(--tp-unscored); color: var(--tp-unscored); }

@keyframes tp-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tp-pulse {
    fill: rgba(99, 102, 241, 0.08);
    stroke: rgba(99, 102, 241, 0.35);
    stroke-width: 1;
    transform-box: fill-box;
    transform-origin: center;
    animation: tp-breathe 3.2s ease-in-out infinite;
}

@keyframes tp-breathe {
    0%, 100% { transform: scale(0.92); opacity: 0.5; }
    50% { transform: scale(1.04); opacity: 1; }
}

.threat-pulse-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.tp-total {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.tp-total-label {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Legend */
.threat-pulse-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tp-legend-item a {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.tp-legend-item a:hover,
.tp-legend-item a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.tp-legend-item.is-empty a {
    opacity: 0.45;
}

.tp-legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--tp-unscored);
}

.tp-legend-item--critical .tp-legend-swatch { background: var(--tp-critical); box-shadow: 0 0 8px var(--tp-critical); }
.tp-legend-item--high .tp-legend-swatch { background: var(--tp-high); }
.tp-legend-item--medium .tp-legend-swatch { background: var(--tp-medium); }
.tp-legend-item--low .tp-legend-swatch { background: var(--tp-low); }

.tp-legend-count {
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.tp-legend-pct {
    min-width: 3ch;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Ticker */
.threat-pulse-ticker {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--spacing-md);
}

.tp-ticker-head {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.tp-ticker-viewport {
    --tp-row: 2rem;
    height: calc(var(--tp-row) * 4);
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.tp-ticker-track {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: tp-scroll 28s linear infinite;
}

.tp-ticker-viewport:hover .tp-ticker-track,
.tp-ticker-viewport:focus-within .tp-ticker-track {
    animation-play-state: paused;
}

@keyframes tp-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.tp-ticker-item,
.tp-ticker-item a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
}

.tp-ticker-item {
    height: var(--tp-row);
    border-left: 2px solid var(--tp-unscored);
    padding-left: 0.6rem;
}

.tp-ticker-item a {
    color: var(--text-secondary);
    text-decoration: none;
    width: 100%;
}

.tp-ticker-item a:hover .tp-ticker-id,
.tp-ticker-item a:focus-visible .tp-ticker-id {
    color: var(--text-primary);
}

.tp-ticker-item--critical { border-left-color: var(--tp-critical); }
.tp-ticker-item--high { border-left-color: var(--tp-high); }
.tp-ticker-item--medium { border-left-color: var(--tp-medium); }
.tp-ticker-item--low { border-left-color: var(--tp-low); }

.tp-ticker-id {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-ticker-score {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.tp-ticker-item--critical .tp-ticker-score { color: var(--tp-critical); }
.tp-ticker-item--high .tp-ticker-score { color: var(--tp-high); }

.tp-ticker-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.threat-pulse-foot {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

/* Skeleton while the fragment loads */
.threat-pulse--skeleton .skeleton-pill {
    display: inline-block;
    width: 90px;
    height: 12px;
    border-radius: 999px;
}

.threat-pulse--skeleton .skeleton-ring {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    mask: radial-gradient(circle, transparent 60%, #000 61%);
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
}

.threat-pulse--skeleton .skeleton-line {
    display: block;
    height: 14px;
    margin: 0.55rem 0;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .threat-pulse-shell {
        margin-left: 0;
        max-width: none;
    }

    /* Keep the link below the taller, single-column hero instead of over the ticker. */
    .scroll-indicator-new {
        position: static;
        width: fit-content;
        margin: var(--spacing-2xl) auto 0;
    }
}

@media (max-width: 560px) {
    .threat-pulse {
        padding: var(--spacing-lg);
    }

    .threat-pulse-body {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .threat-pulse-legend {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-arc,
    .tp-pulse,
    .tp-live-dot,
    .tp-ticker-track {
        animation: none !important;
    }

    .tp-ticker-item--clone {
        display: none;
    }
}

/* Keep long translated feature labels at the same size as their neighbours. */
.features-enhanced .feature-badge {
    font-size: 0.75rem;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.features-enhanced .feature-header { gap: 0.75rem; }
.features-enhanced .feature-icon-enhanced { flex-shrink: 0; }
.comparison-table .plan-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    color: var(--primary-300);
    font-size: 0.6875rem;
    font-weight: 500;
}
.comparison-table .feature-check-icon,
.comparison-table .feature-cross-icon { vertical-align: middle; }
.comparison-table .feature-cross-icon { color: var(--text-secondary); }
.comparison-table .plan-cell-note {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 400;
}
.comparison-api-note {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}
.faq-heading { margin: 0; }
button.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}
.faq-question > span { font-size: 1.125rem; font-weight: 600; }
.faq-question:focus-visible { outline: 2px solid var(--primary-400); outline-offset: -2px; }
.faq-answer[hidden] { display: none; }

/* =================================================================
   Exploited Spotlight (home page): the most critical actively exploited
   CVEs, one slide at a time, every slide linking to the detail view.
   ================================================================= */

.exploited-spotlight-section {
    --spotlight-accent: #fca5a5;
    --spotlight-orange: #fdba74;
    --spotlight-critical: #f87171;
    --spotlight-high: #fb923c;
    position: relative;
    padding: 1.25rem 0 2rem;
    overflow: hidden;
}

:root[data-theme="light"] .exploited-spotlight-section {
    --spotlight-accent: #b91c1c;
    --spotlight-orange: #9a3412;
    --spotlight-critical: #b91c1c;
    --spotlight-high: #9a3412;
}

.exploited-spotlight-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.25rem;
    max-width: 1080px;
    margin: 0 auto 1.25rem;
    text-align: left;
}

.exploited-spotlight-header .hacker-news-badge {
    margin: 0;
    grid-row: 1 / span 2;
}

.exploited-spotlight-header .hacker-news-title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin: 0;
}

.exploited-spotlight-header .hacker-news-description {
    font-size: 0.95rem;
    margin: 0;
    max-width: none;
}

.exploited-spotlight-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -10%;
    width: 70%;
    height: 60%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(220, 38, 38, 0.14), transparent);
    pointer-events: none;
}

.exploited-spotlight-badge {
    color: var(--spotlight-accent);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.24);
}

.exploited-spotlight-header .hacker-news-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, #ef4444 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.exploited-spotlight-shell {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
}

.exploited-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.25rem;
    align-items: stretch;
}

.exploited-spotlight-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-lg);
}

.exploited-spotlight-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.exploited-spotlight-window {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.07);
    color: var(--spotlight-accent);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.exploited-spotlight-stage {
    display: grid;
    position: relative;
    min-height: 240px;
}

.exploited-spotlight-slide {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: linear-gradient(160deg, rgba(127, 29, 29, 0.32), var(--bg-card, rgba(10, 10, 10, 0.9)) 58%);
    color: var(--text-primary);
    text-decoration: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s ease, visibility 0s linear 0.55s;
}

.exploited-spotlight-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(239, 68, 68, 0.55);
    opacity: 0.3;
    pointer-events: none;
    animation: exploited-spotlight-pulse 3.4s ease-in-out infinite;
}

.exploited-spotlight-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.exploited-spotlight-slide:hover,
.exploited-spotlight-slide:focus-visible {
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.exploited-spotlight-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.exploited-spotlight-kev,
.exploited-spotlight-ransomware {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
}

.exploited-spotlight-kev {
    color: var(--spotlight-accent);
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.exploited-spotlight-kev-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #ef4444;
    animation: exploited-spotlight-ping 2.2s ease-out infinite;
}

.exploited-spotlight-ransomware {
    color: var(--spotlight-orange);
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.exploited-spotlight-date {
    margin-left: auto;
}

.exploited-spotlight-main {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.exploited-spotlight-score {
    flex: 0 0 auto;
    width: 5.25rem;
    padding: 0.8rem 0.5rem;
    text-align: center;
    border-radius: var(--radius-md);
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.03);
}

.exploited-spotlight-score-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.exploited-spotlight-score-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.exploited-spotlight-score--critical { color: var(--spotlight-critical); }
.exploited-spotlight-score--high { color: var(--spotlight-high); }
.exploited-spotlight-score--medium { color: #facc15; }
.exploited-spotlight-score--low { color: #4ade80; }
.exploited-spotlight-score--unscored { color: var(--text-muted); }

.exploited-spotlight-copy {
    min-width: 0;
}

.exploited-spotlight-id {
    margin: 0 0 0.35rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.exploited-spotlight-product {
    margin: 0 0 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.exploited-spotlight-summary {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exploited-spotlight-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--spotlight-accent);
}

.exploited-spotlight-cta svg {
    transition: transform 0.2s ease;
}

.exploited-spotlight-slide:hover .exploited-spotlight-cta svg,
.exploited-spotlight-slide:focus-visible .exploited-spotlight-cta svg {
    transform: translateX(3px);
}

.exploited-spotlight-rail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exploited-spotlight-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.exploited-spotlight-dot:hover,
.exploited-spotlight-dot:focus-visible {
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--text-primary);
    outline: none;
}

.exploited-spotlight-dot.is-active {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.08);
    color: var(--text-primary);
}

.exploited-spotlight-dot-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.exploited-spotlight-dot-score {
    font-size: 0.85rem;
    font-weight: 800;
}

.exploited-spotlight-dot-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.exploited-spotlight.is-rotating .exploited-spotlight-dot.is-active .exploited-spotlight-dot-progress {
    animation: exploited-spotlight-progress var(--spotlight-interval, 6500ms) linear forwards;
}

.exploited-spotlight-foot {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.exploited-spotlight-foot a {
    margin-left: 0.35rem;
    color: var(--spotlight-accent);
    font-weight: 600;
}

/* Skeleton while the fragment loads */
.exploited-spotlight--skeleton .exploited-spotlight-slide {
    gap: 0.9rem;
}

.exploited-skel { display: block; }
.exploited-skel-pill { width: 6rem; height: 1.4rem; border-radius: 999px; }
.exploited-skel-title { width: 55%; height: 1.8rem; }
.exploited-skel-line { width: 90%; height: 1rem; }
.exploited-skel-line.is-short { width: 60%; }
.exploited-skel-dot { height: 2.9rem; border-radius: var(--radius-md); }

@keyframes exploited-spotlight-progress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes exploited-spotlight-ping {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
    70% { box-shadow: 0 0 0 0.55rem rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes exploited-spotlight-pulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.85; }
}

@media (max-width: 900px) {
    .exploited-spotlight {
        grid-template-columns: 1fr;
    }

    .exploited-spotlight-rail {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .exploited-spotlight-dot {
        flex: 0 0 auto;
    }
}

@media (max-width: 600px) {
    .exploited-spotlight-section {
        padding-top: 1.5rem;
    }

    .exploited-spotlight-header {
        grid-template-columns: 1fr;
    }

    .exploited-spotlight-header .hacker-news-badge {
        grid-row: auto;
        justify-self: start;
    }

    .exploited-spotlight-slide {
        padding: 1.25rem;
    }

    .exploited-spotlight-main {
        flex-direction: column;
    }

    .exploited-spotlight-date {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exploited-spotlight-slide,
    .exploited-spotlight-slide::after,
    .exploited-spotlight-kev-dot,
    .exploited-spotlight-dot-progress,
    .exploited-spotlight-cta svg {
        animation: none !important;
        transition: none !important;
    }
}
