:root {
    --background: #070b12;
    --surface: #0d131d;
    --surface-hover: #121b28;

    --border: #1d2938;
    --border-hover: #2c4058;

    --text: #f5f7fa;
    --muted: #8b98a9;

    --accent: #4da3ff;
    --accent-hover: #318be5;

    --success: #35d07f;
    --danger: #ff5c5c;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}


/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}

button {
    font: inherit;
}


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 22px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--text);

    font-size: 21px;
    font-weight: 700;

    letter-spacing: -0.3px;
}

.status {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 10px
        rgba(53, 208, 127, 0.5);
}


/* =========================
   MAIN CONTAINER
========================= */

.container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding: 52px 24px 80px;
}


/* =========================
   HERO
========================= */

.hero {
    max-width: 760px;

    margin: 0 auto 56px;

    text-align: center;
}

.badge {
    display: inline-block;

    margin-bottom: 20px;

    padding: 7px 14px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);

    color: var(--muted);

    font-size: 13px;
}

.hero h1 {
    margin-bottom: 16px;

    color: var(--text);

    font-size: clamp(40px, 7vw, 70px);

    line-height: 1.05;

    letter-spacing: -2.5px;
}

.subtitle {
    max-width: 620px;

    margin: 0 auto 30px;

    color: var(--muted);

    font-size: 16px;
}


/* =========================
   PRIMARY BUTTON
========================= */

.primary-button {
    padding: 13px 24px;

    border: none;
    border-radius: 10px;

    background: var(--accent);

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button:hover {
    background: var(--accent-hover);

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px
        rgba(77, 163, 255, 0.2);
}

.primary-button:active {
    transform: translateY(0);
}


/* =========================
   NETWORK INFORMATION
========================= */

.network-info {
    display: grid;

    gap: 20px;

    margin-bottom: 60px;
}

.info-section {
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 22px;
}

.section-label {
    margin-bottom: 4px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.section-header h2 {
    color: var(--text);

    font-size: 21px;

    letter-spacing: -0.4px;
}


/* =========================
   SECONDARY BUTTON
========================= */

.secondary-button {
    padding: 9px 14px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--surface-hover);

    color: var(--text);

    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.secondary-button:hover {
    border-color: var(--accent);

    background: var(--surface);

    transform: translateY(-1px);
}


/* =========================
   INFORMATION GRID
========================= */

.info-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.info-grid-dns {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.info-item {
    min-width: 0;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--background);
}

.info-item span {
    display: block;

    margin-bottom: 7px;

    color: var(--muted);

    font-size: 12px;
}

.info-item strong {
    display: block;

    color: var(--text);

    font-size: 14px;

    overflow-wrap: anywhere;
}


/* =========================
   DASHBOARD
========================= */

.dashboard {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 60px;
}

.card {
    min-width: 0;
    min-height: 160px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    box-shadow: var(--shadow);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);

    border-color: var(--border-hover);

    background: var(--surface-hover);
}

.card-icon {
    margin-bottom: 18px;

    font-size: 25px;
}

.card-content {
    min-width: 0;
}

.card h2 {
    margin-bottom: 6px;

    color: var(--text);

    font-size: 15px;
    font-weight: 600;
}

.card p {
    color: var(--muted);

    font-size: 13px;

    word-break: break-word;
}


/* =========================
   NETWORK TOOLS
========================= */

.tools {
    margin-top: 10px;
}

.tools > h2 {
    margin-bottom: 20px;

    color: var(--text);

    font-size: 22px;

    letter-spacing: -0.5px;
}

.tool-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.tool-card {
    min-width: 0;
    min-height: 150px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    color: var(--text);

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);

    border-color: var(--accent);

    background: var(--surface-hover);
}

.tool-card:active {
    transform: translateY(-1px);
}

.tool-card span {
    display: block;

    margin-bottom: 15px;

    font-size: 25px;
}

.tool-card strong {
    display: block;

    margin-bottom: 5px;

    color: var(--text);

    font-size: 15px;
}

.tool-card small {
    color: var(--muted);

    font-size: 13px;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 26px 24px 35px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    text-align: center;

    font-size: 13px;
}

.footer p + p {
    margin-top: 6px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 980px) {

    .dashboard {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .tool-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .info-grid-dns {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {

    .header {
        padding: 18px 16px;
    }

    .container {
        padding: 38px 16px 60px;
    }

    .hero {
        margin-bottom: 44px;
    }

    .hero h1 {
        font-size: 42px;

        letter-spacing: -1.5px;
    }

    .subtitle {
        font-size: 15px;
    }

    .section-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .dashboard {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .tool-grid {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .info-grid,
    .info-grid-dns {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 18px;
    }

    .card,
    .tool-card {
        min-height: auto;
    }

    .card {
        padding: 20px;
    }

    .tool-card {
        padding: 20px;
    }
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 380px) {

    .logo {
        font-size: 18px;
    }

    .status {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .badge {
        font-size: 12px;
    }
  }
