:root {
    --bg: #070b14;
    --surface: rgba(12, 21, 39, 0.72);
    --surface-2: rgba(18, 31, 56, 0.68);
    --line: rgba(92, 160, 255, 0.28);
    --line-soft: rgba(130, 194, 255, 0.18);
    --text: #e8f3ff;
    --muted: #9db6d6;
    --accent: #4da3ff;
    --danger: #ff5f6d;
    --ok: #4bffb7;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "SF Pro Display", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

.background-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
            radial-gradient(1000px 600px at 10% 10%, rgba(57, 129, 255, 0.2), transparent 60%),
            radial-gradient(800px 500px at 90% 100%, rgba(28, 204, 255, 0.16), transparent 60%),
            linear-gradient(125deg, rgba(5, 10, 20, 0.94), rgba(8, 16, 32, 0.94));
}

.background-layer::before {
    content: "";
    position: absolute;
    inset: -16%;
    background:
            radial-gradient(620px 420px at 20% 18%, rgba(86, 168, 255, 0.2), transparent 62%),
            radial-gradient(560px 380px at 85% 20%, rgba(65, 216, 255, 0.18), transparent 60%),
            radial-gradient(720px 500px at 52% 86%, rgba(160, 112, 255, 0.16), transparent 64%);
    filter: blur(22px);
    opacity: 0.85;
    transform: translate3d(0, 0, 0);
    animation: bg-drift 24s ease-in-out infinite alternate;
}

.background-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    opacity: 0.2;
    transition: opacity 300ms ease;
}

@keyframes bg-drift {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    50% {
        transform: translate3d(2.5%, 1.5%, 0) scale(1.04);
    }
    100% {
        transform: translate3d(-1%, 2.5%, 0) scale(1.02);
    }
}

.container {
    position: relative;
    z-index: 1;
    width: min(1200px, 94vw);
    margin: 28px auto;
}

.glass-card {
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-card {
    padding: 28px;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.hero-header {
    text-align: center;
    margin-bottom: 20px;
}

.hero-logo-wrap {
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-header h1 {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-header p {
    margin: 10px 0 0;
    color: var(--muted);
    min-height: 22px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.meta-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(77, 163, 255, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.meta-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.ipv6-box {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(8, 18, 34, 0.55);
}

.ipv6-box header {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.copy-pill {
    width: 100%;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    background: rgba(77, 163, 255, 0.08);
    color: var(--text);
    cursor: pointer;
}

.copy-pill code {
    font-size: 0.95rem;
}

.badge-new {
    display: inline-block;
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.services {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    gap: 14px;
}

.service-group {
    width: 100%;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 14px;
    background: rgba(9, 17, 30, 0.5);
    text-align: center;
}

.service-group h2 {
    margin: 0 0 10px;
    font-size: 0.96rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
    text-align: center;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.service-pill {
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    background: rgba(77, 163, 255, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-pill span {
    font-size: inherit;
    line-height: inherit;
}

.services sup {
    text-transform: lowercase;
}

.service-pill:focus-visible {
    outline: 2px solid rgba(130, 194, 255, 0.7);
    outline-offset: 2px;
}

.service-pill.copyable {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.status-ok {
    color: var(--ok);
}

.status-down {
    color: var(--danger);
}

.status-nonhttp {
    color: var(--accent);
}

.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-neon {
    border: 1px solid rgba(77, 163, 255, 0.55);
    background: rgba(77, 163, 255, 0.16);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-neon.danger {
    border-color: rgba(255, 95, 109, 0.6);
    background: rgba(255, 95, 109, 0.15);
}

.icp-link {
    color: var(--muted);
    font-size: 0.88rem;
    text-decoration: none;
    text-align: center;
}

.toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(12, 24, 42, 0.9);
    color: var(--text);
}

@media (max-width: 768px) {
    .container {
        margin: 12px auto;
    }

    .hero-card {
        padding: 16px;
        width: 100%;
    }

    .hero-logo-wrap {
        width: 96px;
        height: 96px;
    }

    .meta-row {
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .meta-info {
        width: 100%;
    }

    .meta-chip {
        width: 100%;
        text-align: center;
    }

    .meta-actions {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .service-grid {
        gap: 6px;
    }

    .service-group {
        width: 100%;
    }

    .service-pill {
        width: 100%;
        justify-content: center;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
    }

    .btn-neon {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: min(980px, 95vw);
    }

    .service-pill {
        font-size: 0.92rem;
    }
}

