
:root {
    --bg: #090d16;
    --panel: #111827;
    --panel-hover: #172235;
    --border: #243149;
    --text: #f1f5f9;
    --muted: #8795aa;
    --accent: #60a5fa;
    --green: #34d399;
    --red: #fb7185;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.header {
    height: 70px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: #0c1220;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 750;
}

.logo-icon {
    background: #2563eb;
    color: white;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.container {
    width: min(1100px, 90%);
    margin: auto;
}

.hero {
    padding: 75px 0 40px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 750;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 58px);
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    color: var(--muted);
    font-size: 15px;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ip-card {
    background: linear-gradient(145deg, #152239, #101827);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    min-width: 0;
}

.card-top,
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.protocol {
    color: var(--accent);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
}

.protocol.ipv6 {
    color: #a78bfa;
}

.card-status {
    color: var(--green);
    font-size: 12px;
}

.card-status.error {
    color: var(--red);
}

.ip-value {
    font-size: clamp(19px, 3vw, 30px);
    font-weight: 750;
    margin: 30px 0;
    overflow-wrap: anywhere;
}

.card-bottom {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    color: var(--muted);
    font-size: 12px;
}

button {
    border: 1px solid var(--border);
    background: #1d2b43;
    color: white;
    padding: 8px 13px;
    border-radius: 7px;
    cursor: pointer;
}

button:hover {
    background: #2b4264;
}

.section {
    margin-top: 65px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.info-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 18px;
    min-width: 0;
    transition: background .2s;
}

.info-card:hover {
    background: var(--panel-hover);
}

.info-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.info-card strong {
    display: block;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.technical-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 20px;
}

.technical-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 12px;
}

.technical-card p {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 35px 0;
    margin-top: 70px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 750px) {
    .header {
        padding: 0 5%;
    }

    .container {
        width: 90%;
    }

    .hero {
        padding-top: 55px;
    }

    .ip-grid {
        grid-template-columns: 1fr;
    }

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

    footer {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}
