/* ==========================================================================
   GlobalVPS.site - Human-Crafted Modern Stylesheet & Micro-Animations
   Engineered for clean developer aesthetics, high contrast & authentic feel
   ========================================================================== */

/* --------------------------------------------------------------------------
   Root Variables & Typography
   -------------------------------------------------------------------------- */
:root {
    --brand-primary: #2563eb;
    --brand-dark: #0f172a;
    --brand-slate: #1e293b;
    --brand-cyan: #0284c7;
    --brand-emerald: #10b981;
    --brand-amber: #f59e0b;
    --glow-blue: rgba(37, 99, 235, 0.2);
    --glow-cyan: rgba(6, 182, 212, 0.2);
    --border-light: #e2e8f0;
}

/* Base smooth scrolling & typography enhancements */
html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Interactive Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
    }
    50% {
        box-shadow: 0 0 25px rgba(37, 99, 235, 0.35);
    }
}

@keyframes terminalCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes ledBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}

@keyframes meterFill {
    from { width: 0%; }
    to { width: var(--meter-target, 100%); }
}

/* Animation utility classes */
.animate-float {
    animation: subtleFloat 4s ease-in-out infinite;
}

.animate-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #38bdf8;
    vertical-align: middle;
    margin-left: 2px;
    animation: terminalCursor 1s step-end infinite;
}

.led-indicator {
    animation: ledBlink 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Cards, Glassmorphism & Elevation
   -------------------------------------------------------------------------- */
.host-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: #ffffff;
}

.host-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

.winner-card {
    position: relative;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid #2563eb;
    box-shadow: 0 14px 34px -10px rgba(37, 99, 235, 0.15);
}

.winner-card:hover {
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.25);
}

.hero-backdrop {
    background-color: #0b1120;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18), transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.12), transparent 40%),
        radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
}

/* --------------------------------------------------------------------------
   Realistic Developer Terminal Window
   -------------------------------------------------------------------------- */
.terminal-box {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-header {
    background: #0f172a;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
}

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

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot-red { background: #ef4444; }
.terminal-dot-yellow { background: #f59e0b; }
.terminal-dot-green { background: #10b981; }

.terminal-body {
    padding: 18px;
    color: #cbd5e1;
    font-size: 12.5px;
    line-height: 1.65;
    overflow-x: auto;
}

/* --------------------------------------------------------------------------
   Metric Progress Bars & Micro Indicators
   -------------------------------------------------------------------------- */
.benchmark-track {
    background: #1e293b;
    border-radius: 9999px;
    height: 7px;
    overflow: hidden;
}

.benchmark-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Comparison Table Aesthetics
   -------------------------------------------------------------------------- */
.table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.table-row-item {
    transition: background-color 0.15s ease;
}

.table-row-item:hover {
    background-color: #f8fafc;
}

/* Mobile swipe refinement */
.swipe-prompt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

/* Touch refinements */
.btn-press:active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}
