:root {
    --bg: #07111f;
    --surface: rgba(15, 29, 49, .78);
    --surface-2: rgba(24, 42, 67, .72);
    --text: #f6f8fc;
    --muted: #9eb0c9;
    --line: rgba(255,255,255,.09);
    --shadow: 0 28px 80px rgba(0,0,0,.34);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 12%, rgba(29,78,216,.22), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(124,58,237,.16), transparent 29%),
        linear-gradient(145deg, #050b14, #0a1728 50%, #07111f);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .24;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 52px 0 32px; position: relative; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.eyebrow { color: #74a8ff; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 800; }
h1 { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.hero p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.hero-status { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; background: rgba(8,20,35,.65); border: 1px solid var(--line); border-radius: 999px; color: #bdcbe0; white-space: nowrap; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #f5b942; box-shadow: 0 0 0 5px rgba(245,185,66,.12); }
.hero-status.healthy .pulse { background: #39d98a; box-shadow: 0 0 0 5px rgba(57,217,138,.12); }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.stat {
    min-height: 126px; padding: 20px; border: 1px solid var(--line); border-radius: 20px;
    background: linear-gradient(145deg, rgba(20,37,61,.88), rgba(10,22,39,.8)); box-shadow: 0 16px 42px rgba(0,0,0,.18);
}
.stat-label { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.stat strong { display: block; margin-top: 14px; font-size: 1.45rem; letter-spacing: -.03em; }
.stat small { color: var(--muted); }
.meter { height: 6px; margin-top: 16px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.meter span { display:block; width:0; height:100%; background: linear-gradient(90deg,#4f8cff,#8f67ff); border-radius:inherit; transition: width .55s ease; }
.tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tool-card {
    --accent: #4f8cff;
    min-height: 315px; display:flex; flex-direction:column; position:relative; overflow:hidden;
    padding: 22px; border:1px solid var(--line); border-radius:24px;
    background: linear-gradient(160deg, rgba(23,42,69,.92), rgba(9,20,36,.91));
    box-shadow: var(--shadow); transition: transform .22s ease, border-color .22s ease;
}
.tool-card::after { content:""; position:absolute; width:160px; height:160px; right:-60px; top:-70px; border-radius:50%; background:var(--accent); filter:blur(60px); opacity:.13; }
.tool-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.accent-blue { --accent:#3b82f6; } .accent-green { --accent:#27c982; } .accent-orange { --accent:#ff9e44; }
.accent-red { --accent:#ff5b67; } .accent-purple { --accent:#9b6cff; } .accent-brown { --accent:#c89a68; }
.tool-top { display:flex; align-items:center; justify-content:space-between; position:relative; z-index:1; }
.tool-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; background: color-mix(in srgb, var(--accent) 18%, transparent); color:var(--accent); border:1px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.tool-icon svg { width:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.service-state { display:inline-flex; gap:7px; align-items:center; color:#aab8cc; font-size:.78rem; }
.service-state i { width:8px; height:8px; border-radius:50%; background:#f3b84b; }
.service-state.online i { background:#39d98a; box-shadow:0 0 0 4px rgba(57,217,138,.1); }
.service-state.offline i { background:#ff5b67; box-shadow:0 0 0 4px rgba(255,91,103,.1); }
.tool-content { margin-top:38px; position:relative; z-index:1; }
.tool-content h2 { margin:0; font-size:1.45rem; letter-spacing:-.035em; }
.tool-content h3 { margin:7px 0 14px; color:var(--accent); font-size:.9rem; }
.tool-content p { margin:0; color:var(--muted); line-height:1.6; font-size:.92rem; }
.tool-link {
    margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%;
    padding:13px 15px; color:#fff; text-decoration:none; background:rgba(255,255,255,.055);
    border:1px solid var(--line); border-radius:13px; font-weight:750; font-size:.9rem; position:relative; z-index:1;
}
.tool-link:hover { background: color-mix(in srgb, var(--accent) 15%, rgba(255,255,255,.04)); }
.tool-link svg { width:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.button-link { cursor:pointer; font:inherit; }
footer { margin-top:26px; display:flex; justify-content:space-between; color:#71849f; font-size:.8rem; }
@media (max-width: 920px) { .stats { grid-template-columns:repeat(2,1fr); } .tools-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 620px) {
    .shell { width:min(100% - 24px,1180px); padding-top:30px; }
    .hero { align-items:flex-start; flex-direction:column; }
    .stats,.tools-grid { grid-template-columns:1fr; }
    .tool-card { min-height:285px; }
    footer { gap:8px; flex-direction:column; }
}
