:root {
    --primary: #4facfe;
    /* Much more vibrant blue */
    --primary-glow: rgba(79, 172, 254, 0.4);
    --bg-dark: #0a0e14;
    --bg-card: #141923;
    --text-dark: #e0e0e0;
    --glass-bg: rgba(20, 25, 35, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

    /* Highlight Colors */
    --hl-yellow: #ffeb3b;
    --hl-blue: #29b6f6;
    --hl-green: #66bb6a;
    --hl-pink: #f48fb1;
    --current-hl: var(--hl-blue);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    /* Always Dark */
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.8s ease;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* Dynamic Highlight Text */
.dynamic-hl {
    background-color: var(--current-hl);
    color: #000;
    /* Reverted to black */
    padding: 2px 8px;
    border-radius: 6px;
    transition: background-color 1s ease;
    font-weight: 700;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #4facfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: var(--text-dark);
    width: 44px;
    /* Unified Width */
    height: 44px;
    /* Unified Height */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.sun-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    width: 100%;
    position: relative;
    overflow: visible;
    /* Allow blurs to bleed and be handled by mask */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-bg-effects {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 120%;
    /* Taller than hero to avoid edge cutting */
    z-index: 1;
    pointer-events: none;
    /* Smoother vertical mask to ensure fade-out at both ends */
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.blob {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    /* Significantly increased intensity */
    animation: blob-float 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
    mix-blend-mode: screen;
}

.blob-1 {
    top: 10%;
    right: 15%;
    /* Concentrated behind mockup */
    background: radial-gradient(circle, #4facfe 0%, transparent 75%);
    animation-duration: 25s;
}

.blob-2 {
    bottom: 5%;
    right: 10%;
    /* Concentrated behind mockup */
    background: radial-gradient(circle, #00f2fe 0%, transparent 75%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    /* Center of the hero */
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7000ff 0%, transparent 75%);
    opacity: 0.5;
    animation-duration: 40s;
    animation-delay: -10s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, -50px) scale(1.2);
    }

    66% {
        transform: translate(-50px, 100px) scale(0.8);
    }

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

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
    animation: particle-float 10s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

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

.hero-content,
.hero-mockup {
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-mockup {
    flex: 1.2;
    min-width: 400px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Browser Mockup */
.hero-mockup {
    flex: 1.2;
    min-width: 400px;
}

.browser-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-frame.mockup-light {
    background: #fff;
}

.browser-frame.mockup-light .browser-header {
    background: #f1f3f4;
}

.browser-frame.mockup-light .url-bar {
    background: #fff;
    border: 1px solid #ddd;
}

.browser-frame.mockup-light .browser-body {
    color: #333;
}

.browser-frame.mockup-dark {
    background: #1e2530;
}

.browser-frame.mockup-dark .browser-header {
    background: #2d3644;
}

.browser-frame.mockup-dark .url-bar {
    background: #1e2530;
    border: 1px solid #444;
}

.browser-frame.mockup-dark .browser-body {
    color: #eee;
}

/* --- Highlighter Styles --- */
.hl {
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
    color: #000;
    transition: background-color 0.3s ease;
}

.hl.yellow {
    background-color: #ffeb3b;
}

.hl.blue {
    background-color: #29b6f6;
}

.hl.green {
    background-color: #66bb6a;
}

.hl.pink {
    background-color: #f48fb1;
}

.hl.orange {
    background-color: #ffb74d;
}

/* Mockup Specific Theme Overrides */
.browser-frame.mockup-light .floating-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #333;
}

.browser-frame.mockup-light .panel-header {
    color: #1a1a1a;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.browser-frame.mockup-light .panel-input {
    background: #f5f5f5;
    color: #555;
}

.browser-frame.mockup-light .panel-tools svg {
    color: #444;
}

.browser-header {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}

.url-bar {
    flex: 1;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 10px;
    color: #888;
}

.browser-body {
    padding: 40px;
    position: relative;
    min-height: 400px;
}

.page-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.floating-panel {
    position: absolute;
    top: 50px;
    right: 30px;
    width: 220px;
    padding: 20px;
    font-size: 14px;
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {

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

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

.panel-header {
    font-weight: bold;
    border-bottom: none !important;
    padding: 0 0 4px 0 !important;
    margin: 0 0 8px 0 !important;
    background: transparent !important;
    line-height: 1.2 !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

.panel-header * {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    line-height: inherit !important;
    font-size: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
}

.panel-input {
    background: rgba(255, 255, 255, 0.08);
    /* Lighter background for better contrast in dark mode */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Define the boundaries */
    color: #eee;
    font-family: inherit;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: pre-line;
}

.panel-tools {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Features Section (Categorized) */
.features {
    padding: 2rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 5rem;
}

.features-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.category-block {
    margin-bottom: 4rem;
}

.category-title {
    display: flex;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

.category-title span {
    position: relative;
    z-index: 1;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* Softer, cleaner shadow */
    font-size: inherit !important;
    /* Force inheritance to resist extension overrides */
}

/* Marker Highlighter pseudo-element */
.category-title span::after {
    content: "";
    position: absolute;
    left: -15px;
    right: -15px;
    bottom: 1px;
    height: 50%;
    background: #fff200;
    /* Vibrant fluorescent yellow */
    opacity: 0.85;
    z-index: -1;
    transform: scaleX(0) skewX(-15deg);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255, 242, 0, 0.4);
    /* Subtle glow for "fluorescent" feel */
}

/* Trigger animation when hovering anywhere in the category-block */
.category-block:hover .category-title span::after {
    transform: scaleX(1) skewX(-15deg);
}

/* 2-Column Feature Grid */
.sub-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Exactly 2 columns */
    gap: 2rem;
}

@media (max-width: 900px) {
    .features {
        padding: 3rem 1.5rem;
    }

    .sub-feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .feature-card {
        padding: 1.25rem;
        border-radius: 16px;
        text-align: left;
        display: block;
    }

    .feature-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 1.25rem;
    }

    .feature-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Flowing Light Border Card */
.feature-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Important for border positioning */
    transition: transform 0.4s ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from var(--angle), transparent 70%, #00f2fe, #4facfe, transparent);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s;
    animation: rotate-light 4s linear infinite;
    animation-play-state: paused;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate-light {
    to {
        --angle: 360deg;
    }
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    /* The mask thickness */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%), var(--bg-card);
    border-radius: 19px;
    z-index: -1;
}

/* Specific Keyword Highlights for Batch Card */
.interactive-card-batch span {
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 0 1px;
    /* Minimal padding for natural default flow */
    border-radius: 4px;
    display: inline-block;
}


.interactive-card-batch:hover .word-hl-yellow {
    background: #ffeb3b;
    /* Vibrant Yellow */
    color: #000;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
    transform: translateY(-2px);
}

.interactive-card-batch:hover .word-hl-green {
    background: #66bb6a;
    /* Vibrant Green */
    color: #000;
    box-shadow: 0 0 10px rgba(102, 187, 106, 0.5);
    transform: translateY(-2px);
}

.interactive-card-batch:hover .word-hl-blue {
    background: #29b6f6;
    /* Vibrant Blue */
    color: #000;
    box-shadow: 0 0 10px rgba(41, 182, 246, 0.5);
    transform: translateY(-2px);
}

/* Spotlight Effect for Immersive Spotlight Card */
.interactive-card-spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    /* Use a radial gradient that follows custom properties set by JS */
    background: radial-gradient(circle 150px at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.75) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
    pointer-events: none;
}

.interactive-card-spotlight:hover .spotlight-overlay {
    opacity: 1;
}

.interactive-card-spotlight:hover {
    background-color: #0c0c0c !important;
}

.interactive-card-spotlight:hover::after {
    opacity: 0 !important;
}

/* Smart Data Cleanup Animation */
.interactive-card-clean {
    position: relative;
    overflow: hidden;
}

.data-clean-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.filter-line {
    position: absolute;
    top: 40%;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(to right, transparent, #00f2fe 20%, #00f2fe 80%, transparent);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    opacity: 0;
    border-radius: 4px;
    transition: opacity 0.4s ease;
}

.interactive-card-clean:hover .filter-line {
    opacity: 1;
    animation: filter-line-breathe 2.5s infinite ease-in-out;
}

@keyframes filter-line-breathe {

    0%,
    100% {
        transform: scaleX(0.85) scaleY(0.8);
        opacity: 0.5;
        filter: blur(1px);
    }

    50% {
        transform: scaleX(1) scaleY(1.2);
        opacity: 1;
        filter: blur(0px);
    }
}

.data-particle {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #4facfe;
    /* Default clean color */
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
}

.data-particle.raw {
    color: #39ff14;
    /* Neon Green for dirty data */
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.data-particle.cleaned {
    color: #00f2fe;
    /* Cyan for cleaned data */
    text-shadow: 0 0 5px rgba(0, 242, 254, 0.5);
}

/* Bilingual Toggle Effect - Robust Height Handling */
.interactive-card-bilingual {
    position: relative;
}

.interactive-card-bilingual h3,
.interactive-card-bilingual p {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
}

.text-cn,
.text-en {
    grid-area: 1 / 1;
    /* Overlay both in the same grid cell */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

/* Default state: CN */
body[data-lang="cn"] .interactive-card-bilingual .text-en {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
}

body[data-lang="cn"] .interactive-card-bilingual .text-cn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hover: CN -> EN */
body[data-lang="cn"] .interactive-card-bilingual:hover .text-cn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
}

body[data-lang="cn"] .interactive-card-bilingual:hover .text-en {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Default state: EN */
body[data-lang="en"] .interactive-card-bilingual .text-cn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
}

body[data-lang="en"] .interactive-card-bilingual .text-en {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hover: EN -> CN */
body[data-lang="en"] .interactive-card-bilingual:hover .text-en {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
}

body[data-lang="en"] .interactive-card-bilingual:hover .text-cn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


/* Glassmorphism Slide Effect - Optimized for Flicker-free Animation */
.interactive-card-glass {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* Create a new stacking context to prevent filter bleed */
}

.glass-slide {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* High quality backdrop filter */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);

    /* Hardware acceleration to fix flickering */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    pointer-events: none;
}

.interactive-card-glass:hover .glass-slide {
    transform: translate3d(166%, 0, 1px);
    /* Use 3D transform for GPU rendering */
}


/* Security Wall & Content Rush Effect (Offline Card) */
.interactive-card-offline {
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wall-barrier {
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 6px;
    background: linear-gradient(to bottom, #00f2fe, #4facfe, #00f2fe);
    background-size: 100% 200%;
    opacity: 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 15px rgba(0, 242, 254, 0.4);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.interactive-card-offline:hover .wall-barrier {
    opacity: 1;
    animation:
        neon-wall-flow 1.5s linear infinite,
        wall-collision-flash 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.interactive-card-offline:hover .privacy-content {
    animation: content-rush-and-bounce 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes neon-wall-flow {
    0% {
        background-position: 0% 0%;
    }

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

@keyframes content-rush-and-bounce {
    0% {
        transform: translateX(0);
    }

    35% {
        transform: translateX(0);
    }

    45% {
        transform: translateX(-25px);
    }

    /* Hits the wall */
    55% {
        transform: translateX(15px);
    }

    /* Bounces back */
    70% {
        transform: translateX(0);
    }

    /* Settle */
    100% {
        transform: translateX(0);
    }
}

@keyframes wall-collision-flash {

    0%,
    40% {
        background: linear-gradient(to bottom, #00f2fe, #4facfe, #00f2fe);
        box-shadow: 2px 0 15px rgba(0, 242, 254, 0.4);
        transform: scaleY(1);
    }

    45%,
    50% {
        background: linear-gradient(to bottom, #ff0000, #ff4d4d, #ff0000);
        box-shadow: 5px 0 25px rgba(255, 0, 0, 0.8);
        transform: scaleY(1.05);
        /* Slight impact stretch */
    }

    55%,
    100% {
        background: linear-gradient(to bottom, #00f2fe, #4facfe, #00f2fe);
        box-shadow: 2px 0 15px rgba(0, 242, 254, 0.4);
        transform: scaleY(1);
    }
}


.interactive-card-offline:hover .feature-icon-wrapper {
    background:
        radial-gradient(circle at center, rgba(57, 255, 20, 0.3) 0%, transparent 70%),
        #000;
    border-color: rgba(57, 255, 20, 0.6);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
    color: #39ff14;
    transform: scale(1.1);
}

/* Live Monitoring Scanner Animation */
.interactive-card-monitor {
    position: relative;
    overflow: hidden;
}

.scanner-frame {
    position: absolute;
    inset: 1.5rem;
    /* Following internal content padding */
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.4s ease, inset 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-card-monitor:hover .scanner-frame {
    opacity: 1;
    inset: 1rem;
    /* Snapping in effect */
}

.scanner-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #0066ff;
}

.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.scan-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    left: 0;
    background: linear-gradient(to right, transparent, #00f2fe, transparent);
    box-shadow: 0 0 15px #00f2fe, 0 0 30px rgba(0, 242, 254, 0.4);
    opacity: 0;
}

.interactive-card-monitor:hover .scan-line {
    opacity: 1;
    animation: monitor-scan-sweep 3s ease-in-out infinite;
}

@keyframes monitor-scan-sweep {
    0% {
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.monitor-keyword {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 2px;
    padding: 0 2px;
}

.interactive-card-monitor:hover .monitor-keyword {
    animation: keyword-detect-toggle 6s step-end infinite;
}

@keyframes keyword-detect-toggle {
    0% {
        background: transparent;
        color: inherit;
        box-shadow: none;
    }

    40% {
        /* Scan 1 passes keyword around 40-60% of width */
        background: #ffeb3b;
        color: #000;
        box-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
        transform: scale(1.05);
    }

    50% {
        transform: scale(1);
    }

    /* Stay highlighted after Scan 1 */
    90% {
        /* Scan 2 passes keyword */
        background: transparent;
        color: inherit;
        box-shadow: none;
        transform: scale(1);
    }

    100% {
        background: transparent;
    }
}

/* Accuracy / Case-Sensitive Effect */
.interactive-card-case {
    overflow: hidden;
}

.case-typing-container {
    position: absolute;
    top: 4.4rem;
    /* Aligned with icon center */
    left: 8.5rem;
    /* Positioned to the right of the icon */
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
    letter-spacing: -1px;
}

.interactive-card-case:hover .case-typing-container {
    opacity: 0.3;
    /* Subtle background appearance */
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    /* Thinner cursor */
    height: 2.22rem;
    /* Matches font size roughly */
    background-color: var(--primary);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {
    50% {
        opacity: 0;
    }
}




.interactive-card-case:hover .feature-icon-wrapper {
    background: #000;
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    color: var(--primary);
    transform: scale(1.1);
}

/* 6 Curated Themes - Neon Diffuse Effect */
.interactive-card-themes:hover h3 {
    /* 弥散霓虹渐变 */
    background: linear-gradient(90deg,
            #00f2fe, #4facfe, #7928ca, #ff0080, #f6d365, #00f2fe);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neon-text-flow 5s linear infinite;
    /* 柔和弥散光晕 */
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5)) drop-shadow(0 0 20px rgba(121, 40, 202, 0.2));
    transition: all 0.5s ease;
}

@keyframes neon-text-flow {
    to {
        background-position: 200% center;
    }
}

.interactive-card-themes:hover .feature-icon-wrapper {
    background: #000;
    border-color: #4facfe;
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.4);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* Logical Grouping Card Animation (Split and Reunite) */
.interactive-card-group:hover .feature-icon-wrapper {
    background: #000;
    border-color: #00f2fe;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

.interactive-card-group:hover .bar-left,
.interactive-card-group:hover .bar-right {
    transform-box: fill-box;
    transform-origin: center;
}

.interactive-card-group:hover .bar-left {
    animation: bar-move-left 1.2s cubic-bezier(0.19, 1, 0.22, 1) infinite alternate;
}

.interactive-card-group:hover .bar-right {
    animation: bar-move-right 1.2s cubic-bezier(0.19, 1, 0.22, 1) infinite alternate;
}

@keyframes bar-move-left {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-150px);
        opacity: 0.6;
    }

    100% {
        transform: translateX(-50px);
        opacity: 0.9;
    }
}

@keyframes bar-move-right {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(150px);
        opacity: 0.6;
    }

    100% {
        transform: translateX(50px);
        opacity: 0.9;
    }
}





.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #000;
    /* Pure black for maximum contrast */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    /* Brighter in default state */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    /* To contain the bleeding colors */
}

.feature-card:hover .feature-icon-wrapper {
    /* Corner color bleeding similar to the reference */
    background:
        radial-gradient(circle at 0% 110%, rgba(57, 255, 20, 0.5) 0%, transparent 60%),
        radial-gradient(circle at 100% -10%, rgba(0, 102, 255, 0.5) 0%, transparent 60%),
        #000;
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow:
        0 0 30px rgba(0, 102, 255, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.15);
}

.feature-icon-wrapper svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.8));
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    font-size: 1rem;
    opacity: 0.6;
    line-height: 1.7;
}

/* Privacy */
.privacy {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
}

/* CTA */
.cta {
    padding: 4rem 2rem;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 2rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    /* Brighter general text */
    font-size: 0.9rem;
}

footer a {
    color: #4facfe;
    /* Explicitly vibrant blue */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

footer a:hover {
    color: #00f2fe;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-mockup {
        min-width: 100%;
    }

    .floating-panel {
        display: block;
        transform-origin: top right;
        transform: scale(0.75) translateY(0);
        right: 10px;
        top: 20px;
        animation: floating-mobile 4s ease-in-out infinite;
    }

    @keyframes floating-mobile {

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

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

/* --- Mockup Specific Overrides (Forced Visibility) --- */
#mockup-frame .hl.yellow {
    background-color: #ffeb3b !important;
    color: #000 !important;
}

#mockup-frame .hl.blue {
    background-color: #29b6f6 !important;
    color: #000 !important;
}

#mockup-frame .hl.green {
    background-color: #66bb6a !important;
    color: #000 !important;
}

#mockup-frame .hl.pink {
    background-color: #f48fb1 !important;
    color: #000 !important;
}

#mockup-frame .hl.orange {
    background-color: #ffb74d !important;
    color: #000 !important;
}

/* Forced Light Mode for Extension Panel - Enhanced Glassmorphism */
#mockup-frame.mockup-light .floating-panel {
    background: rgba(255, 255, 255, 0.4) !important;
    /* increased transparency */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    color: #1a1a1a !important;
}

#mockup-frame.mockup-light .panel-header {
    color: #000 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

#mockup-frame.mockup-light .panel-input {
    background: #f0f0f0 !important;
    color: #444 !important;
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
}

#mockup-frame.mockup-light .panel-tools svg {
    color: #333 !important;
}