/* =========================================================
   CVEWORKS - WHAT IS MY IP
   Light / Red / White visual identity
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f7f7f8;
    color: #202124;

    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e7;
}

.header-content {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.4px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background: #c90000;
    color: #ffffff;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.5px;
}

.logo-name {
    display: inline-flex;
    align-items: center;

    color: #202124;
}

.logo-cve-text {
    color: #202124;
}

.logo-works-text {
    color: #c90000;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {
    display: flex;
    align-items: center;

    gap: 32px;
}

.navigation a {
    color: #5f6368;

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.navigation a:hover {
    color: #c90000;
}


/* =========================================================
   AMAZON BANNERS
========================================================= */

.amazon-banner {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 15px auto;

    overflow: hidden;
}

.amazon-banner img {
    display: block;

    width: 100%;
    max-width: 1136px;
    height: auto;
}


/* =========================================================
   HERO
========================================================= */

.tool-hero {
    padding: 70px 0 48px;
}

.hero-badge {
    margin-bottom: 10px;

    color: #d71920;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.1em;

    text-align: center;
}

.tool-hero h1 {
    color: #171717;

    font-size: 46px;
    line-height: 1.1;

    letter-spacing: -0.035em;

    text-align: center;
}

.title-red {
    color: #d71920;
}

.hero-description {
    max-width: 780px;

    margin: 14px auto 0;

    color: #686868;

    font-size: 15px;
    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   SECTIONS
========================================================= */

.site-section {
    padding: 0 0 22px;
}

.section-title {
    margin-bottom: 16px;
}

.section-title span {
    display: block;

    margin-bottom: 3px;

    color: #d71920;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.1em;
}

.section-title h2 {
    color: #171717;

    font-size: 24px;
    line-height: 1.2;

    letter-spacing: -0.02em;
}

.section-title.compact {
    margin-bottom: 18px;
}

.section-label {
    display: inline-block;

    margin-bottom: 18px;
    padding: 9px 16px;

    color: #c90000;

    background: #ffffff;

    border: 1px solid #f3bcbc;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}


/* =========================================================
   PUBLIC IP CARD
========================================================= */

.ip-hero-card {
    padding: 32px;

    background: #ffffff;

    border: 1px solid #f1c4c6;
    border-radius: 15px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.035);
}

.section-eyebrow {
    color: #888888;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.1em;
}

.public-ip {
    margin-top: 12px;

    color: #171717;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    font-size: 38px;
    font-weight: 800;

    line-height: 1.25;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.ip-version {
    margin-top: 6px;

    color: #d71920;

    font-size: 15px;
    font-weight: 900;
}


/* =========================================================
   BUTTONS
========================================================= */

.actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 22px;
}

.btn-primary,
.btn-secondary {
    min-height: 42px;

    padding: 0 18px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.btn-primary {
    border: 1px solid #d71920;

    background: #d71920;

    color: #ffffff;

    box-shadow:
        0 5px 16px rgba(215, 25, 32, 0.18);
}

.btn-primary:hover {
    background: #bd151b;
    border-color: #bd151b;

    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid #d7d7d7;

    background: #ffffff;

    color: #555555;
}

.btn-secondary:hover {
    border-color: #d71920;

    background: #fff5f5;

    color: #d71920;
}


/* =========================================================
   CONNECTIVITY
========================================================= */

.connectivity-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.connectivity-card {
    min-height: 104px;

    display: flex;
    align-items: center;

    gap: 20px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #f1c4c6;
    border-radius: 14px;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.035);
}

.connectivity-number {
    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #fff1f1;

    color: #d71920;

    font-size: 24px;
    font-weight: 900;
}

.connectivity-title {
    color: #171717;

    font-size: 16px;
    font-weight: 800;
}

.status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 5px;

    min-width: 58px;

    padding: 4px 10px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.04em;

    line-height: 1.3;
}

.status.pass {
    background: #ecfdf3;
    color: #16a34a;
}

.status.fail {
    background: #fff1f2;
    color: #dc2626;
}

.status.warn {
    background: #fffbea;
    color: #ca8a04;
}

.status.neutral {
    background: #f1f5f9;
    color: #64748b;
}

.connection-note {
    margin-top: 10px;

    padding: 12px 14px;

    border: 1px solid #ededed;
    border-radius: 8px;

    background: #fafafa;

    color: #777777;

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   RESULT CARDS
========================================================= */

.result-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.card {
    padding: 24px;

    background: #ffffff;

    border: 1px solid #f1c4c6;
    border-radius: 14px;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.035);
}

.card h3 {
    padding-bottom: 14px;

    margin-bottom: 2px;

    color: #171717;

    font-size: 18px;

    line-height: 1.25;

    border-bottom: 1px solid #eeeeee;
}

.info-row {
    display: grid;

    grid-template-columns:
        145px minmax(0, 1fr);

    gap: 16px;

    padding: 12px 0;

    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: 0;
}

.label {
    color: #777777;

    font-size: 12px;
    font-weight: 700;
}

.value {
    min-width: 0;

    color: #252525;

    font-size: 13px;
    font-weight: 600;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   USER AGENT
========================================================= */

.user-agent-card {
    padding: 28px;
}

.user-agent-box {
    padding: 15px;

    margin-bottom: 14px;

    background: #fafafa;

    border: 1px solid #f1c4c6;
    border-radius: 9px;
}

.user-agent-box code {
    display: block;

    color: #333333;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    font-size: 12px;

    line-height: 1.65;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   ABOUT
========================================================= */

.about-tool {
    padding-bottom: 50px;
}

.about-tool p {
    color: #686868;

    font-size: 14px;

    line-height: 1.7;
}

.about-tool p + p {
    margin-top: 10px;
}

.privacy-note {
    margin-top: 16px;

    padding: 14px 16px;

    border: 1px solid #f1c4c6;
    border-radius: 9px;

    background: #fafafa;

    color: #777777;

    font-size: 12px;

    line-height: 1.65;
}

.privacy-note strong {
    color: #555555;
}


/* =========================================================
   HACKERDNA AFFILIATE
========================================================= */

.affiliate-section {
    padding: 64px 0;

    background: #f7f7f8;
}

.affiliate-box {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 38px 42px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.035);

    overflow: hidden;
}

.affiliate-box::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -120px;
    top: -130px;

    border-radius: 50%;

    background: #d71920;

    opacity: 0.035;

    pointer-events: none;
}

.affiliate-content {
    position: relative;

    z-index: 1;

    max-width: 760px;
}

.affiliate-box h2 {
    margin-top: 12px;

    color: #171717;

    font-size: 28px;
    line-height: 1.2;
}

.affiliate-box p {
    margin-top: 8px;

    color: #686868;

    font-size: 14px;
    line-height: 1.7;
}

.affiliate-button {
    position: relative;

    z-index: 1;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 46px;

    padding: 0 20px;

    border-radius: 8px;

    background: #d71920;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 5px 16px rgba(215, 25, 32, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.affiliate-button:hover {
    background: #bd151b;

    transform: translateY(-1px);
}

.affiliate-button span {
    font-size: 18px;
}

.affiliate-disclosure {
    margin-top: 13px !important;

    color: #999999 !important;

    font-size: 11px !important;
    line-height: 1.5 !important;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #ffffff;

    border-top: 1px solid #e4e4e6;
}

.footer-bottom {
    width: 100%;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    color: #92969a;

    font-size: 11px;
}

.footer-bottom-inner a {
    color: #c90000;
}

.footer-bottom-inner a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .result-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 1180px);
    }


    .header-content {
        height: 64px;
    }


    .navigation {
        gap: 16px;
    }


    .tool-hero {
        padding: 45px 0 32px;
    }


    .tool-hero h1 {
        font-size: 36px;
    }


    .hero-description {
        font-size: 14px;
    }


    .ip-hero-card {
        padding: 24px 22px;
    }


    .public-ip {
        font-size: 29px;
    }


    .connectivity-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .connectivity-card {
        min-height: 96px;
    }


    .card {
        padding: 22px;
    }


    .info-row {
        grid-template-columns: 1fr;

        gap: 4px;
    }


    .actions {
        flex-direction: column;

        align-items: stretch;
    }


    .btn-primary,
    .btn-secondary {
        width: 100%;
    }


    .affiliate-box {
        flex-direction: column;
        align-items: flex-start;

        gap: 24px;

        padding: 30px 26px;
    }


    .affiliate-button {
        width: 100%;
    }


    .footer-bottom-inner {
        align-items: flex-start;

        flex-direction: column;
    }

}


@media (max-width: 480px) {

    .navigation a {
        font-size: 12px;
    }


    .logo {
        gap: 8px;
    }


    .logo-name {
        font-size: 18px;
    }


    .logo-mark {
        width: 36px;
        height: 36px;
    }


    .tool-hero h1 {
        font-size: 32px;
    }


    .public-ip {
        font-size: 25px;
    }


    .connectivity-card {
        gap: 14px;

        padding: 18px;
    }


    .connectivity-number {
        width: 50px;
        height: 50px;

        flex-basis: 50px;
    }


    .affiliate-box h2 {
        font-size: 24px;
    }

}