/* Compact Overview Section */
.compact-overview {
    margin: 40px auto;
    text-align: center;
    padding: 40px 30px;
}

.compact-overview h2 {
    color: #6A0DAD;
    margin-bottom: 15px;
    font-size: 26px;
}

.compact-overview p {
    color: #B0B0B0;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-compact {
    background: #1B1B1F;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6A0DAD, #7d29d2);
}

.feature-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.15);
    border-color: #6A0DAD;
}

.feature-compact h3 {
    color: white;
    margin: 15px 0 8px 0;
    font-size: 16px;
}

.feature-compact p {
    color: #B0B0B0;
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
}

/* Intelligence Showcase */
.intelligence-showcase {
    margin: 50px auto;
    text-align: center;
    padding: 40px 30px;
}

.intelligence-showcase h2 {
    color: #6A0DAD;
    margin-bottom: 10px;
    font-size: 28px;
}

.intelligence-showcase>p {
    color: #B0B0B0;
    margin-bottom: 40px;
    font-size: 16px;
}

.capabilities-section {
    max-width: 800px;
    margin: 0 auto;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.capability-stat {
    background: #1B1B1F;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.capability-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6A0DAD, #7d29d2);
}

.capability-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 13, 173, 0.2);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #6A0DAD;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-description {
    color: #B0B0B0;
    font-size: 14px;
}

/* Findings Section */
.findings-section h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 30px;
    text-align: center;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.finding-item {
    background: #1B1B1F;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.finding-item:hover {
    transform: translateY(-2px);
    border-color: #6A0DAD;
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.15);
}

.finding-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(106, 13, 173, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.finding-item span {
    color: #B0B0B0;
    font-size: 14px;
    font-weight: 500;
}

.metadata-details {
    color: #777;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 5px;
    font-style: italic;
}

/* Tooltip System */
.finding-item::before {
    content: attr(data-example);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #1B1B1F;
    color: #6A0DAD;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1200;
    border: 1px solid #6A0DAD;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.3);
    font-family: 'Courier New', monospace;
    pointer-events: none;
    /* Default to top */
    bottom: 100%;
    margin-bottom: 10px;
}

.finding-item::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6A0DAD;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1200;
    pointer-events: none;
    /* Default to top */
    bottom: 100%;
    margin-bottom: 4px;
}

.finding-item:hover::before,
.finding-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Dynamic tooltip positioning based on grid position */
.findings-grid {
    position: relative;
}

/* For items that would overflow at the top, show tooltip below */
.finding-item.tooltip-below::before {
    bottom: auto;
    top: 100%;
    margin-top: 10px;
    margin-bottom: 0;
}

.finding-item.tooltip-below::after {
    bottom: auto;
    top: 100%;
    margin-top: 4px;
    margin-bottom: 0;
    border-top: none;
    border-bottom: 6px solid #6A0DAD;
}

/* Special styles for "more" item */
.finding-more {
    border: 2px dashed #6A0DAD;
    background: rgba(106, 13, 173, 0.05);
    position: relative;
    overflow: hidden;
}

.finding-more::before {
    /* Override default tooltip for shimmer effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6A0DAD, transparent);
    animation: shimmer 2s infinite;
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    white-space: inherit;
}

/* Separate tooltip for finding-more */
.finding-more:hover::before {
    /* Keep the shimmer effect */
    content: '';
    animation: shimmer 2s infinite;
}

.finding-more::after {
    content: attr(data-example);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1B1B1F;
    color: #6A0DAD;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1200;
    border: 1px solid #6A0DAD;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.3);
    font-family: 'Courier New', monospace;
    pointer-events: none;
    margin-bottom: 10px;
}

.finding-more:hover::after {
    opacity: 1;
    visibility: visible;
}

.finding-more span {
    color: #6A0DAD;
    font-weight: 600;
}

.finding-more .metadata-details {
    color: #999;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-compact {
        padding: 20px 10px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 18px;
    }

    .findings-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .finding-item {
        padding: 15px 12px;
    }

    .finding-icon {
        width: 35px;
        height: 35px;
    }

    .finding-item span {
        font-size: 13px;
    }

    .metadata-details {
        font-size: 11px;
    }

    /* Adjust tooltip for mobile */
    .finding-item::before,
    .finding-more::after {
        font-size: 11px;
        padding: 6px 10px;
        max-width: 250px;
        white-space: normal;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .features-horizontal {
        grid-template-columns: 1fr;
    }

    .capability-stat {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 16px;
    }

    .findings-section h3 {
        font-size: 20px;
    }
}
/* Desktop hover */
@media (hover: hover) {

    .finding-item:hover::before,
    .finding-item:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile touch interactions */
@media (hover: none) {
    .finding-item {
        cursor: pointer;
    }

    .finding-item.tooltip-active::before,
    .finding-item.tooltip-active::after {
        opacity: 1;
        visibility: visible;
    }

    .finding-item::before {
        font-size: 13px;
        padding: 10px 14px;
        max-width: 280px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
        text-align: center;
    }

    .finding-item::after {
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 8px;
        border-bottom-width: 8px;
    }
}

/* Dynamic tooltip positioning */
.finding-item.tooltip-below::before {
    bottom: auto;
    top: 100%;
    margin-top: 10px;
    margin-bottom: 0;
}

.finding-item.tooltip-below::after {
    bottom: auto;
    top: 100%;
    margin-top: 4px;
    margin-bottom: 0;
    border-top: none;
    border-bottom: 6px solid #6A0DAD;
}

/* Special handling for finding-more on mobile */
@media (hover: none) {
    .finding-more::after {
        font-size: 13px;
        padding: 10px 14px;
        max-width: 280px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
        text-align: center;
    }

    .finding-more.tooltip-active::after {
        opacity: 1;
        visibility: visible;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .finding-item::before,
    .finding-more::after {
        font-size: 12px;
        padding: 12px 16px;
        max-width: 300px;
        border-radius: 8px;
    }

    .finding-item::after {
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 10px;
        border-bottom-width: 10px;
    }
}

@media (max-width: 480px) {

    .finding-item::before,
    .finding-more::after {
        font-size: 11px;
        padding: 10px 12px;
        max-width: 250px;
        left: 10px;
        right: 10px;
        transform: none;
    }

    .finding-item::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.buy-now-btn{
    margin-top:10px;
    background: linear-gradient(90deg, #6A0DAD, #7d29d2);
    padding: 14px;
    border-radius: 10px;
    color:white;
    border-color:transparent;
    cursor: pointer;
    transition:ease 0.3s;
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.15);
}
.buy-now-btn:hover{
    transition:ease 0.3s;
    scale: 1.1;
    border-color:#9b59b6;
}
.buy-now-btn a{
    text-decoration: none;
    color:white;
}