:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(24px);
    
    --glow-blue: #3b82f6;
    --glow-red: #ef4444;
    --glow-green: #22c55e;
    --glow-purple: #a855f7;
    --glow-orange: #f97316;
    --glow-teal: #14b8a6;
    --glow-pink: #ec4899;
}

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

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

/* Background Mesh Animation */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.color-blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(59, 130, 246, 0.4); /* Blue */
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(168, 85, 247, 0.3); /* Purple */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: rgba(20, 184, 166, 0.3); /* Teal */
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    padding: 12px 24px;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.btn-primary {
    background: #ffffff;
    color: #000000 !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 180px 20px 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Grid */
.bento-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

.bento-grid {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
}

.bento-card {
    border-radius: 32px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.card-tall {
    grid-column: span 2;
    grid-row: span 2;
}

.card-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.1);
}

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

/* Glow Effects */
.blue-glow { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); color: var(--glow-blue); }
.red-glow { box-shadow: 0 0 30px rgba(239, 68, 68, 0.5); color: var(--glow-red); }
.green-glow { box-shadow: 0 0 30px rgba(34, 197, 94, 0.5); color: var(--glow-green); }
.purple-glow { box-shadow: 0 0 30px rgba(168, 85, 247, 0.5); color: var(--glow-purple); }
.orange-glow { box-shadow: 0 0 30px rgba(249, 115, 22, 0.5); color: var(--glow-orange); }
.teal-glow { box-shadow: 0 0 30px rgba(20, 184, 166, 0.5); color: var(--glow-teal); }
.pink-glow { box-shadow: 0 0 30px rgba(236, 72, 153, 0.5); color: var(--glow-pink); }


.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-tall h3 {
    font-size: 2rem;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-tall p {
    font-size: 1.1rem;
}

/* Mockups inside cards */
.split-content {
    display: flex;
    height: 100%;
    align-items: center;
}

.text-side {
    flex: 1;
}

.visual-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
}

.secure-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.secure-progress-bar .fill {
    height: 100%;
    width: 0%;
    background: var(--glow-red);
    animation: loading 3s infinite;
}

.progress-text {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--glow-red);
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.terminal-style {
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 24px;
}

.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-font {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a0a0a0;
}

.mt-auto {
    margin-top: auto;
}

/* Footer */
.footer {
    padding: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* Animations */
.slide-up-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }

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

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-tall {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .card-tall, .card-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .split-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .visual-side {
        padding-left: 0;
        padding-top: 20px;
        width: 100%;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .navbar { padding: 20px; }
    .nav-links a:not(.btn-primary) { display: none; }
}

/* Interactive Demo CSS */
.interactive-demo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

.mac-desktop {
    width: 900px;
    max-width: 100%;
    height: 600px;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    overflow: hidden;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
}
.mac-desktop::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); }

.mac-menubar {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 28px;
    background: rgba(30,30,30,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 13px;
    z-index: 1000;
}
.menubar-right { display: flex; gap: 8px; align-items: center; }

.systray-icon {
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
}
.systray-icon:hover, .systray-icon.active {
    background: rgba(255,255,255,0.2);
}

.desktop-item {
    position: absolute;
    top: 150px; left: 20px;
    width: 80px;
    text-align: center;
    z-index: 10;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}
@media (min-width: 768px) {
    .desktop-item { left: 200px; }
}
.desktop-item:hover, .desktop-item.selected { background: rgba(255,255,255,0.1); }
.item-icon { font-size: 50px; margin-bottom: 5px; }
.item-name { font-size: 13px; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

/* NATIVE MAC MENU CSS */
.mac-menu {
    position: absolute;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
    background: rgba(40, 40, 40, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.2);
    padding: 5px;
    min-width: 240px;
    list-style: none;
    color: #ececec;
    font-size: 13.5px;
    margin: 0;
}

.mac-menu.visible { opacity: 1; pointer-events: auto; }

.mac-menu li {
    padding: 4px 10px 4px 25px;
    margin: 1px 0;
    border-radius: 5px;
    cursor: default;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* The icon column on the left */
.mac-menu li .m-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mac-menu li .m-icon.mono {
    opacity: 0.8;
    filter: grayscale(1) brightness(2);
}

.mac-menu li .m-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mac-menu li:hover {
    background-color: #0a60ff;
    color: #fff;
}

.mac-menu li.disabled {
    opacity: 0.4;
    pointer-events: none;
    color: #d1d1d1;
}

/* Menu Header */
.mac-menu .menu-header {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    padding: 5px 10px;
    margin-top: 5px;
}
.mac-menu .menu-header:hover {
    background-color: transparent;
    color: #999;
}

.mac-menu .divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 5px 0;
    padding: 0;
}
.mac-menu .divider:hover { background: rgba(255,255,255,0.1); }

/* Submenu Logic */
.has-submenu > .arrow {
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.mac-submenu {
    position: absolute;
    left: calc(100% - 4px);
    top: -5px;
    display: none;
    opacity: 1;
    pointer-events: auto;
}

/* Show submenu on hover */
.has-submenu:hover > .mac-submenu {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Specific positions for Popups */
#alert-popup, #analysis-popup, #compress-popup, #terminal-popup, #panel-popup {
    position: absolute;
    z-index: 3000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}
#alert-popup.visible, #analysis-popup.visible, #compress-popup.visible, #terminal-popup.visible, #panel-popup.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
#alert-popup img { max-width: 300px; width: 100%; display: block; border-radius: 12px; }
#analysis-popup img { max-width: 400px; width: 100%; display: block; border-radius: 12px; }
#compress-popup img { max-width: 380px; width: 100%; display: block; border-radius: 12px; }
#terminal-popup img { max-width: 500px; width: 100%; display: block; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
#panel-popup img { max-width: 600px; width: 100%; display: block; border-radius: 12px; }

#systray-menu {
    top: 28px;
    right: 15px;
    left: auto;
}

.filename-overlay {
    position: absolute;
    top: 50.4%;
    left: 8.5%;
    background-color: #282828;
    color: #ececec;
    font-size: 13.5px;
    font-weight: 600;
    padding: 2px 50px 2px 2px;
    letter-spacing: 0.2px;
}

.terminal-overlay {
    position: absolute;
    top: 30px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background-color: #1e1e1e;
    color: #d8d8d8;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 11.5px;
    line-height: 1.4;
    padding: 5px;
    text-align: left;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    white-space: pre;
}

/* Systray specific overrides */
#systray-menu {
    min-width: 280px;
}
#systray-menu li {
    padding: 4px 10px;
}
#systray-menu li .menu-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
#systray-menu li .m-icon {
    position: static;
    transform: none;
}
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-green { background-color: #34c759; box-shadow: 0 0 5px rgba(52,199,89,0.5); }
.status-red { background-color: #ff3b30; box-shadow: 0 0 5px rgba(255,59,48,0.5); }
.right-icon { opacity: 0.5; font-size: 12px; margin-left: 15px; }
.right-text { opacity: 0.5; font-size: 11px; margin-left: 15px; }

/* Archive Animation */
.archive-animation-container {
    position: relative;
    height: 80px;
    width: 150px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.archive-file {
    position: relative;
    width: 25px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.archive-box {
    width: 70px;
    height: 50px;
    background: rgba(168, 85, 247, 0.15);
    border: 2px solid var(--glow-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: pulseBox 3s infinite;
}

.zip-text {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    font-weight: 800;
    font-family: monospace;
    color: var(--glow-purple);
    text-shadow: 0 0 10px var(--glow-purple);
}

/* Animations */
.file-1 { animation: packFile1 3s infinite; }
.file-2 { animation: packFile2 3s infinite; }
.file-3 { animation: packFile3 3s infinite; }

@keyframes packFile1 {
    0%, 10% { transform: translate(0, 0) scale(1); opacity: 1; }
    20%, 80% { transform: translate(80px, 20px) scale(0); opacity: 0; }
    90%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes packFile2 {
    0%, 20% { transform: translate(0, 0) scale(1); opacity: 1; }
    30%, 80% { transform: translate(80px, 0px) scale(0); opacity: 0; }
    90%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes packFile3 {
    0%, 30% { transform: translate(0, 0) scale(1); opacity: 1; }
    40%, 80% { transform: translate(80px, -20px) scale(0); opacity: 0; }
    90%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes pulseBox {
    0%, 40% { transform: scale(1); box-shadow: none; }
    50% { transform: scale(1.15); box-shadow: 0 0 20px var(--glow-purple); }
    60%, 100% { transform: scale(1); box-shadow: none; }
}


/* Finder Mockup Animation */
.finder-style {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 120px;
}

.finder-header {
    background: #2a2a2a;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mac-dots {
    display: flex;
    gap: 6px;
    width: 60px;
}

.finder-title {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #a0a0a0;
    font-weight: 500;
    margin-right: 60px;
}

.finder-body {
    position: relative;
    height: 90px;
    background: #1e1e1e;
}

.finder-scene {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    padding: 10px;
    opacity: 0;
    animation: cycleScenes 12s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.f-scene-1 { animation-delay: 0s; }
.f-scene-2 { animation-delay: 4s; }
.f-scene-3 { animation-delay: 8s; }

.toast-action {
    position: absolute;
    top: 5px;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    color: #ccc;
}

.f-files {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.f-file, .f-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #e0e0e0;
}

.f-file::before {
    content: '📄';
    font-size: 24px;
    margin-bottom: 4px;
}

.f-folder::before {
    content: '📁';
    font-size: 24px;
    margin-bottom: 4px;
}

.f-arrow {
    font-size: 16px;
    color: var(--glow-blue);
    animation: arrowMove 1s infinite alternate;
}

.f-cut-file {
    opacity: 0.5;
    animation: fileCut 4s infinite;
}

.f-terminal-popup {
    width: 150px;
    height: 65px;
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    margin-top: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    animation: popupScale 4s infinite;
}

.term-header {
    background: #333;
    font-size: 8px;
    padding: 2px 5px;
    color: #aaa;
}

.term-body {
    padding: 5px;
    font-family: monospace;
    font-size: 10px;
    color: #4ade80;
}

.new-file-anim {
    animation: popupScale 4s infinite;
}

@keyframes cycleScenes {
    0%, 5% { opacity: 0; transform: translateY(5px); }
    10%, 28% { opacity: 1; transform: translateY(0); }
    33%, 100% { opacity: 0; transform: translateY(-5px); }
}

@keyframes fileCut {
    0%, 20% { opacity: 1; transform: scale(1); }
    30%, 80% { opacity: 0.4; transform: scale(0.95); }
    90%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes arrowMove {
    0% { transform: translateX(-3px); }
    100% { transform: translateX(3px); }
}

@keyframes popupScale {
    0%, 10% { transform: scale(0.8); opacity: 0; }
    20%, 80% { transform: scale(1); opacity: 1; }
    90%, 100% { transform: scale(0.8); opacity: 0; }
}

/* RedQuitter Animation */
.redquitter-anim-container {
    position: relative;
    height: 120px;
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rq-window {
    width: 180px;
    height: 110px;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: windowClose 6s infinite;
    display: flex;
    flex-direction: column;
}

.rq-header {
    background: #2a2a2a;
    padding: 6px;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px 8px 0 0;
}

.rq-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.rq-red { background: #ff5f56; position: relative; }
.rq-yellow { background: #ffbd2e; }
.rq-green { background: #27c93f; }

/* The pulse when clicked */
.rq-red::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: white;
    opacity: 0;
    animation: clickFlash 6s infinite;
}

.rq-body {
    flex: 1;
    background: #1e1e1e;
    border-radius: 0 0 8px 8px;
}

.rq-cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 10;
    animation: cursorMove 6s infinite;
}

@keyframes cursorMove {
    0% { transform: translate(40px, 30px); opacity: 0; }
    10% { transform: translate(40px, 30px); opacity: 1; }
    40%, 48% { transform: translate(-78px, -46px); opacity: 1; }
    52% { transform: translate(-78px, -46px) scale(0.85); opacity: 1; }
    56% { transform: translate(-78px, -46px); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes clickFlash {
    0%, 48% { opacity: 0; }
    52% { opacity: 0.8; }
    56%, 100% { opacity: 0; }
}

@keyframes windowClose {
    0%, 55% { transform: scale(1); opacity: 1; filter: brightness(1); }
    57% { transform: scale(1.15); opacity: 1; filter: brightness(2) drop-shadow(0 0 20px rgba(255,59,48,0.8)); }
    62% { transform: scale(0); opacity: 0; filter: brightness(0); }
    90%, 100% { transform: scale(0); opacity: 0; }
}

.title-fit {
    font-size: 1.15rem !important;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.rq-battery {
    position: absolute;
    z-index: 5;
    opacity: 0;
    color: #27c93f;
    animation: batteryPulse 6s infinite;
}

.rq-battery svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px rgba(39, 201, 63, 0.9));
}

@keyframes batteryPulse {
    0%, 63% { opacity: 0; transform: scale(0.5); }
    66% { opacity: 1; transform: scale(1.2); }
    72% { opacity: 1; transform: scale(1); }
    85% { opacity: 1; transform: scale(1.1); }
    95%, 100% { opacity: 0; transform: scale(0.5); }
}


.rq-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rq-text {
    font-size: 11px;
    font-weight: 500;
    color: #ff5f56;
    animation: textBlink 1.5s infinite alternate;
}

@keyframes textBlink {
    0% { opacity: 0.3; }
    100% { opacity: 1; text-shadow: 0 0 5px rgba(255, 95, 86, 0.6); }
}

/* Diagnostics Animation */
.diag-anim-container {
    position: relative;
    height: 180px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.diag-file {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.diag-filename {
    font-size: 13px;
    color: #ccc;
    margin-top: 4px;
    font-family: monospace;
}
.diag-glass {
    position: absolute;
    font-size: 36px;
    z-index: 10;
    top: 5px;
    left: -5px;
    animation: glassScan 6s infinite;
}
.diag-tooltip {
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    animation: tooltipAppear 6s infinite;
    white-space: nowrap;
}
@keyframes glassScan {
    0%, 10% { transform: translate(-20px, 30px); opacity: 0; }
    15% { transform: translate(-20px, 30px); opacity: 1; }
    30%, 85% { transform: translate(30px, 5px); opacity: 1; }
    90%, 100% { transform: translate(30px, 5px); opacity: 0; }
}
@keyframes tooltipAppear {
    0%, 35% { opacity: 0; transform: translateX(-10px); }
    40%, 85% { opacity: 1; transform: translateX(0); }
    90%, 100% { opacity: 0; }
}

/* Instant Copy Animation */
.copy-anim-container {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    margin-top: 10px;
}
.copy-doc {
    font-size: 34px;
    z-index: 5;
}
.copy-lines {
    position: absolute;
    left: 45px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.copy-bit {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #ffbd2e; /* Orange/Yellow */
    opacity: 0;
    text-shadow: 0 0 5px rgba(255, 189, 46, 0.8);
    letter-spacing: 1px;
}
.bit-1 { animation: bitFly 4s infinite 0.2s; }
.bit-2 { animation: bitFly 4s infinite 0.6s; }
.bit-3 { animation: bitFly 4s infinite 1.0s; }
.bit-4 { animation: bitFly 4s infinite 1.4s; }

.copy-board {
    font-size: 34px;
    position: relative;
    z-index: 5;
}
.copy-text {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    color: #27c93f;
    opacity: 0;
    animation: checkPop 4s infinite;
}
.copy-check {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 14px;
    background: #27c93f;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    animation: checkPop 4s infinite;
}

@keyframes bitFly {
    0%, 20% { transform: translateX(0); opacity: 0; }
    30% { opacity: 1; }
    60% { transform: translateX(85px); opacity: 0; }
    100% { transform: translateX(85px); opacity: 0; }
}

@keyframes checkPop {
    0%, 65% { transform: scale(0); opacity: 0; }
    70%, 90% { transform: scale(1.2); opacity: 1; }
    95%, 100% { transform: scale(0); opacity: 0; }
}
