/* DataHunter Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --color-primary: #3B82F6;
    /* CTA Blue */
    --color-primary-hover: #2563EB;
    --color-text: #34495E;
    /* Dark Blue-Grey */
    --color-text-light: #64748B;
    --color-bg-light: #D6EAF8;
    /* Light Blue */
    --color-accent: #A9CCE3;
    /* Pastel Blue */
    --color-white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-pill: 9999px;
    --radius-lg: 0.75rem;
    --radius-md: 0.5rem;
    --transition-base: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light-blue {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .mobile-only {
        display: block !important;
    }

    /* Better mobile typography */
    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
        gap: 1.25rem;
    }

    .hero-cta .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 6rem 0 3rem;
    }
}

.mobile-only {
    display: none;
}

/* Navigation - Pill Menu */
.navbar {
    position: sticky;
    top: 1rem;
    z-index: 1000;
    padding: 0 1rem;
}

.nav-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition-base);
}

.nav-link:hover {
    background-color: var(--color-accent);
    color: var(--color-text);
}

.nav-link.active {
    background-color: var(--color-text);
    color: var(--color-white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
    /* Background handled by SVG layer */
}

.hero-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    /* Ensure content is above background */
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Benefits */
.benefit-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid #eee;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
    transition: var(--transition-base);
    /* Force fast transition on hover */
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* Hero Sections - Background Layers */
.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f0f9ff 0%, #eef2ff 50%, #f0f9ff 100%);
    z-index: 0;
}

.hero-svg-left,
.hero-svg-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    max-width: 600px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-svg-left {
    left: 0;
}

.hero-svg-right {
    right: 0;
}

/* Response adjustments for background decorations */
@media (max-width: 900px) {

    .hero-svg-left,
    .hero-svg-right {
        width: 300px;
        /* Fix width on smaller screens to ensure visibility */
        opacity: 0.6;
    }
}

@media (max-width: 600px) {

    .hero-svg-left,
    .hero-svg-right {
        width: 150px;
        /* Narrower on mobile to avoid overlapping text */
        opacity: 0.4;
    }
}

/* --- Hero Background Animations --- */

/* 1. Floating Movement */
@keyframes heroFloat {

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

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes heroFloatReverse {

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

    50% {
        transform: translateY(15px) rotate(-2deg);
    }
}

/* 2. Slow Rotation */
@keyframes heroRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 3. Data Flow (Dash Offset) */
@keyframes heroDashFlow {
    to {
        stroke-dashoffset: -20;
    }
}

/* 4. Pulsing Opacity */
@keyframes heroPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Application Classes */
.anim-float {
    animation: heroFloat 8s ease-in-out infinite;
}

.anim-float-rev {
    animation: heroFloatReverse 9s ease-in-out infinite;
}

.anim-rotate {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroRotate 30s linear infinite;
}

.anim-dash {
    stroke-dasharray: 5, 5;
    animation: heroDashFlow 1s linear infinite;
}

.anim-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroPulse 3s ease-in-out infinite;
}

/* --- Hero Background Shapes (User Provided) --- */
.data-shapes-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* Linke Grafik (Dreiecke/Netz) */
.shape-left {
    width: 400px;
    height: 100%;
    left: -50px;
    top: 0;
    background-image: url('data-left.svg');
    background-position: left center;
    animation: heroFloat 8s ease-in-out infinite;
}

/* Rechte Grafik (Nodes/Datenpunkte) */
.shape-right {
    width: 500px;
    height: 100%;
    right: -100px;
    top: 0;
    background-image: url('data-right.svg');
    background-position: right center;
    animation: heroFloatReverse 9s ease-in-out infinite;
}

/* Product Preview */
.product-preview {
    margin-top: 2rem;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #f0f0f0;
}

.product-img {
    height: 220px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-body {
    padding: 2rem;
}

/* Footer */
footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--color-white);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Animations & Eyecatchers --- */

/* 1. Dynamic Hero Background */
@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

.hero-animated {
    background: linear-gradient(-45deg, #f0f9ff, #e0f2fe, #dbeafe, #eff6ff);
    background-size: 400% 400%;
    animation: gradient-move 15s ease infinite;
}

/* 2. Floating Animation for Elements */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 3. Button Pulse / Glow */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

/* 4. Scroll Fade-In Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 5. Icon Hover Pop */
.benefit-icon {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.2) rotate(5deg);
    background-color: var(--color-bg-light);
}

/* Visual Demo Animation */
.demo-visual {
    position: relative;
    margin: 3rem auto;
    max-width: 800px;
    /* Height removed for flexibility */
}

.matching-animation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    min-height: 400px;
    position: relative;
}

.data-list {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 40%;
}

.data-item {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    font-family: 'Courier New', monospace;
    animation: slideInLeft 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.data-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.check-icon {
    display: inline-block;
    color: #10b981;
    /* Green for success */
    font-size: 1.2em;
    margin-left: 0.5rem;
    opacity: 0;
    transform: scale(0);
    animation: popSuccess 4s cubic-bezier(0.175, 0.885, 0.32, 1.5) infinite;
}

/* Add specific delays for the check icons based on their parent item appearance */
.data-item:nth-child(1) .check-icon {
    animation-delay: 0.6s;
}

.data-item:nth-child(2) .check-icon {
    animation-delay: 0.8s;
}

.data-item:nth-child(3) .check-icon {
    animation-delay: 1.0s;
}

@keyframes popSuccess {

    0%,
    5% {
        opacity: 0;
        transform: scale(0);
    }

    12% {
        opacity: 1;
        transform: scale(1.5);
    }

    20%,
    85% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.match-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--color-primary);
    animation: matchPulse 2s ease-in-out infinite;
    z-index: 10;
}

@media (max-width: 600px) {
    .matching-animation {
        flex-direction: column;
        min-height: auto;
        gap: 1.5rem;
        padding: 1rem;
    }

    .data-list {
        width: 100%;
        padding: 1rem;
    }

    .match-indicator {
        position: relative;
        top: auto;
        left: auto;
        transform: translate(0, 0) rotate(90deg);
        margin: 1rem 0;
        font-size: 2rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Adjust animation for mobile rotate */
    @keyframes matchPulseMobile {
        0% {
            transform: rotate(90deg) scale(1);
        }

        50% {
            transform: rotate(90deg) scale(1.1);
        }

        100% {
            transform: rotate(90deg) scale(1);
        }
    }

    .match-indicator {
        animation: matchPulseMobile 2s ease-in-out infinite;
    }

    .data-item {
        font-size: 0.85rem;
    }
}

@keyframes matchPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

/* TNT Validation Animation Styles */
.tnt-visual-box {
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.tnt-rocket-icon {
    position: absolute;
    font-size: 50px;
    top: -80px;
    left: 45%;
    transform: translateX(-50%) rotate(-45deg);
    opacity: 0;
    z-index: 10;
}

.tnt-step {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateX(30px);
    z-index: 5;
    width: 280px;
    /* Fixed width to center better */
    left: 50%;
    margin-left: -110px;
    /* Offset to center the icon circle */
}

.tnt-step-circle {
    width: 70px;
    height: 70px;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.tnt-step-icon {
    font-size: 30px;
}

.tnt-checkmark {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 24px;
    height: 24px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.tnt-step-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.tnt-line {
    position: absolute;
    left: 50%;
    transform: translateX(-75px);
    /* Align with the center of the 70px circle */
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 2px;
    z-index: 2;
}

/* Positions */
.tnt-pos-1 {
    top: 40px;
}

.tnt-pos-2 {
    top: 165px;
}

.tnt-pos-3 {
    top: 290px;
}

.tnt-line-1 {
    top: 110px;
    --h: 55px;
}

.tnt-line-2 {
    top: 235px;
    --h: 55px;
}

/* Animation Keyframes */
@keyframes tntSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tntCheckPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tntLineGrow {
    to {
        height: var(--h);
    }
}

@keyframes tntRocketLaunch {
    0% {
        opacity: 0;
        top: 350px;
        transform: translateX(-50%) rotate(-45deg) scale(0.5);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: -100px;
        transform: translateX(-50%) rotate(-45deg) scale(1.2);
    }
}

/* Download Hub Styles */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.hub-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-accent);
    /* Changed from primary to accent */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Both use accent color now per user request */
.hub-card.tnt {
    border-top-color: var(--color-accent);
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.hub-version-tag {
    font-family: monospace;
    font-weight: 700;
    background: var(--color-bg-light);
    color: var(--color-text);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hub-loader {
    border: 3px solid var(--color-bg-light);
    border-radius: 50%;
    border-top: 3px solid var(--color-accent);
    /* Changed from primary to accent */
    width: 20px;
    height: 20px;
    animation: hub-spin 1s linear infinite;
}

@keyframes hub-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hub-asset-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--color-accent);
    /* Changed from primary to accent */
    color: var(--color-text);
    /* Ensure contrast */
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hub-asset-link:hover {
    background: #95b9d1;
    /* Darker accent for hover */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}



.hub-asset-link.portable {
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
    color: var(--color-text);
}

.hub-asset-link.portable:hover {
    background: rgba(59, 130, 246, 0.1);
    /* Blue-ish hover for portable to match primary theme */
}

.badge-portable {
    font-size: 0.65rem;
    font-weight: 900;
    color: white;
    background: var(--color-primary);
    /* Changed from orange to primary blue */
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    animation: hub-pulse 2s infinite ease-in-out;
}

@keyframes hub-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.hub-changelog-container {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.hub-changelog {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding-right: 0.5rem;
}

.hub-changelog::-webkit-scrollbar {
    width: 4px;
}

.hub-changelog::-webkit-scrollbar-track {
    background: transparent;
}

.hub-changelog::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.hub-changelog h1,
.hub-changelog h2,
.hub-changelog h3 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
    color: var(--color-primary);
}

.hub-changelog ul {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.hub-changelog li {
    margin-bottom: 0.25rem;
}

.hub-tip {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    text-align: left;
}

.hub-tip-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    background: white;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
}


/* DataHunter Matching Animation Styles */
.dh-visual-box {
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.dh-scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dh-timer {
    position: absolute;
    top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    opacity: 0;
    transform: translateY(-20px);
}

.dh-timer-icon {
    font-size: 1.2rem;
}

.dh-timer-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.dh-document {
    width: 140px;
    height: 180px;
    background: var(--color-white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 15px;
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
}

.dh-doc-left {
    transform: translateX(-180px);
}

.dh-doc-right {
    transform: translateX(180px);
}

.dh-doc-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 5px;
}

.dh-doc-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dh-doc-line {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    width: 100%;
}

.dh-doc-line.highlight {
    background: #e2e8f0;
    width: 80%;
}

.dh-lightning {
    position: absolute;
    font-size: 3rem;
    color: #f59e0b;
    z-index: 15;
    opacity: 0;
    transform: scale(0);
}

.dh-success-check {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    z-index: 20;
    opacity: 0;
    transform: scale(0);
}

.dh-success-check::before {
    content: "✓";
    font-weight: bold;
}

.dh-export {
    position: absolute;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-text);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(20px);
}

/* DH Animation Keyframes */
@keyframes dhFadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dhSlideInDocLeft {
    to {
        opacity: 1;
        transform: translateX(-100px);
    }
}

@keyframes dhSlideInDocRight {
    to {
        opacity: 1;
        transform: translateX(100px);
    }
}

@keyframes dhHighlightPulse {
    0% {
        background: #e2e8f0;
    }

    50% {
        background: var(--color-primary);
        opacity: 0.7;
    }

    100% {
        background: var(--color-primary);
    }
}

@keyframes dhLightningBolt {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes dhPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Mini Animations for Product Cards --- */

.mini-visual-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.mini-match-wrap {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
}

/* Background Glow */
.mini-match-wrap::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    animation: miniGlowPulse 4s infinite ease-in-out;
}

.mini-data-list {
    display: none;
    /* Deprecated */
}

.mini-doc {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 90px;
    z-index: 2;
}

.mini-doc-icon {
    font-size: 1.5rem;
    color: var(--color-text-light);
}

.mini-doc:first-child .mini-doc-icon {
    color: #10b981;
    /* Excel Green */
}

.mini-data-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.mini-data-pill {
    width: 100%;
    /* Fill container */
    height: 6px;
    /* Thinner lines for doc look */
    background: #e2e8f0;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

/* Energized Scanner on Left Side */
.mini-doc:first-child .mini-data-pill::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    animation: miniMatchScan 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-match-line {
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #e2e8f0, var(--color-primary), #e2e8f0);
    background-size: 200% 100%;
    border-radius: 2px;
    z-index: 1;
    position: relative;
    opacity: 0.5;
}

/* The moving beam on the line */
.mini-match-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transform-origin: left;
    transform: scaleX(0);
    animation: miniLineConnect 4s infinite linear;
    box-shadow: 0 0 10px var(--color-primary);
}


.mini-check {
    position: absolute;
    right: -25px;
    top: -12px;
    color: #10b981;
    /* Explicit Green */
    font-size: 1.4rem;
    font-weight: 900;
    opacity: 0;
    transform: scale(0);
    animation: miniCheckPop 4s infinite ease-out;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
    z-index: 10;
}

.mini-check.c2 {
    animation-delay: 0.1s;
    /* Slight offset relative to base loop */
}

/* Documentation Link Styles */
.doc-link {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-left: -0.75rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
}

.doc-link:hover {
    background-color: #f1f5f9;
    color: var(--color-primary-dark);
    transform: translateX(5px);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--color-text);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Firefox fallback */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-text) #f1f5f9;
}

.mini-check.c3 {
    animation-delay: 0.2s;
}

/* Right side pills success state */
.mini-data-pill.success {
    animation: miniPulseSuccess 4s infinite;
}

/* Particle Burst Effect */
.mini-data-pill.success::before {
    content: '✦';
    position: absolute;
    right: -5px;
    /* Moved slightly out */
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: #10b981;
    font-size: 10px;
    opacity: 0;
    animation: miniParticleBurst 4s infinite;
}

/* --- KEYFRAMES (4s Loop) --- */

/* 0-1s: Scan left. 1-2s: Connect. 2-3.5s: Success. 3.5-4s: Reset. */

@keyframes miniGlowPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes miniMatchScan {
    0% {
        left: -100%;
    }

    30% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes miniLineConnect {

    0%,
    25% {
        transform: scaleX(0);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    45% {
        transform: scaleX(1);
        opacity: 1;
    }

    /* Connection made */
    85% {
        transform: scaleX(1);
        opacity: 0;
    }

    /* Fade out line */
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

@keyframes miniPulseSuccess {

    0%,
    45% {
        background: #e2e8f0;
        box-shadow: none;
        transform: scale(1);
    }

    50% {
        background: #dcfce7;
        /* Light Green Bg */
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
        transform: scale(1.05);
    }

    80% {
        background: #dcfce7;
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
        transform: scale(1);
    }

    100% {
        background: #e2e8f0;
        transform: scale(1);
    }
}

@keyframes miniCheckPop {

    0%,
    50% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }

    60% {
        opacity: 1;
        transform: scale(1.3) rotate(0deg);
    }

    70% {
        transform: scale(1);
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes miniParticleBurst {

    0%,
    55% {
        opacity: 0;
        transform: translate(0, -50%) scale(0);
    }

    65% {
        opacity: 1;
        transform: translate(15px, -80%) scale(1.2);
    }

    85% {
        opacity: 0;
        transform: translate(25px, -100%) scale(0);
    }

    100% {
        opacity: 0;
        transform: translate(25px, -100%) scale(0);
    }
}

/* 2. TNT Validation Animation */
.mini-tnt-doc {
    width: 100px;
    height: 130px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    position: relative;
    transform: rotateX(20deg) rotateY(-10deg);
}

.mini-tnt-line {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    margin-bottom: 0.5rem;
    border-radius: 3px;
}

.mini-tnt-line.math {
    width: 50%;
    background: var(--color-accent);
    opacity: 0.3;
}

.mini-tnt-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    animation: miniTntScan 3s infinite linear;
}

.mini-tnt-symbol {
    position: absolute;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-accent);
    opacity: 0;
    animation: miniTntSymbol 3s infinite;
}

@keyframes miniTntScan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

@keyframes miniTntSymbol {

    0%,
    20% {
        opacity: 0;
        transform: translateY(10px);
    }

    30%,
    80% {
        opacity: 0.6;
        transform: translateY(0);
    }

    90%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Floating Animation for the cards themselves */
.float-mini {
    animation: miniFloat 4s ease-in-out infinite;
}

@keyframes miniFloat {

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

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