@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0b1e;
    color: #e9e5f5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Сетка трафика (canvas на весь экран) */
#net-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* Бесшовные волны: ширина ровно 2 экрана, сдвиг на 50% = идеальный цикл */
.bg-waves { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.bg-waves svg {
    position: absolute; height: 100%;
    width: 200%; left: 0;
    opacity: 0.55;
}
.wave1 { animation: drift 20s linear infinite; }
.wave2 { animation: drift 28s linear infinite; opacity: 0.42 !important; top: 30% !important; }
.wave3 { animation: drift 36s linear infinite; opacity: 0.28 !important; top: 55% !important; }
@keyframes drift { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Лучи трафика (canvas рисует) */
.ray { display: none; }

.wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 40px; }

.header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.header svg { width: 46px; height: 46px; filter: drop-shadow(0 0 18px rgba(139,92,246,0.5)); transition: transform 0.3s ease; }
.header svg:hover { transform: scale(1.08) rotate(-3deg); }
.logo-text { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.logo-text span {
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; font-weight: 600;
}
.live-badge {
    margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3);
    font-size: 12px; font-weight: 600; color: #34d399; letter-spacing: 0.1em;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px rgba(52,211,153,0.8); animation: pulse 1.5s infinite; }
.subhead { color: #9d94c8; font-size: 14px; margin-bottom: 28px; }

.card {
    background: rgba(30, 22, 58, 0.55);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 14px 44px rgba(88, 28, 135, 0.45);
}
.card-title { font-size: 15px; font-weight: 600; color: #c4b5fd; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }

.svc { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(139,92,246,0.12); transition: padding-left 0.2s ease; }
.svc:hover { padding-left: 8px; }
.svc:last-child { border-bottom: none; }
.svc-name { font-size: 14px; color: #cfc9e8; font-family: 'SF Mono', ui-monospace, monospace; flex: 1; }
.svc-mono { font-size: 12px; color: #8b7fb8; font-family: 'SF Mono', ui-monospace, monospace; }
.svc-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #34d399; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px rgba(52,211,153,0.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metrics.wide { grid-template-columns: repeat(4, 1fr); }
.metric {
    background: rgba(124,58,237,0.10); border: 1px solid rgba(139,92,246,0.18);
    border-radius: 12px; padding: 16px; text-align: center;
    transition: background 0.25s ease, transform 0.25s ease;
}
.metric:hover { background: rgba(124,58,237,0.2); transform: scale(1.04); }
.metric-val { font-size: 22px; font-weight: 700; color: #c4b5fd; font-variant-numeric: tabular-nums; }
.metric-lbl { font-size: 11px; color: #8b7fb8; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

.chart { display: flex; align-items: flex-end; gap: 5px; height: 90px; margin-top: 16px; }
.chart.tall { height: 140px; }
.bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #a78bfa, #7c3aed); opacity: 0.8; min-height: 4%; transition: height 0.4s ease, opacity 0.2s ease; }
.bar:hover { opacity: 1; }
.chart-label { text-align: center; font-size: 11px; color: #6d6398; margin-top: 10px; text-transform: uppercase; letter-spacing: 0.05em; }

.big-metric { font-size: 52px; font-weight: 700; text-align: center; color: #c4b5fd; font-variant-numeric: tabular-nums; padding: 12px 0; text-shadow: 0 0 30px rgba(139,92,246,0.4); }

.info { font-size: 13.5px; color: #b0a8d4; line-height: 1.75; }
.info b { color: #ddd6fe; }

.footer { text-align: center; margin-top: 32px; font-size: 12.5px; color: #6d6398; line-height: 1.9; }
.footer a { color: #a78bfa; text-decoration: none; transition: color 0.2s ease, text-shadow 0.2s ease; }
.footer a:hover { color: #c4b5fd; text-shadow: 0 0 12px rgba(167,139,250,0.6); }
.footer .engine {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; padding: 5px 14px;
    background: rgba(124,58,237,0.12); border: 1px solid rgba(139,92,246,0.25);
    border-radius: 999px; font-size: 11.5px; color: #b0a8d4;
    transition: background 0.2s ease;
}
.engine:hover { background: rgba(124,58,237,0.25); }
.engine .e-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.6); }

@media (prefers-reduced-motion: reduce) {
    #net-canvas, .wave1, .wave2, .wave3, .dot, .live-dot { animation: none !important; }
    * { transition: none !important; }
}
