/* =========================================================
   PHISHGUARD AI
   Premium Cybersecurity Interface
========================================================= */


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

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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #e8f1ec;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(34, 197, 94, 0.09),
            transparent 38%
        ),
        #050807;

    line-height: 1.5;

    overflow-x: hidden;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PAGE CONTAINER
   THIS FIXES THE LEFT-SHIFT PROBLEM
========================================================= */

.page {
    width: min(1180px, calc(100% - 40px));

    margin-inline: auto;

    position: relative;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;

    min-height: 86px;

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

    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}


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

    gap: 12px;
}


.brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(34, 197, 94, 0.35);

    border-radius: 10px;

    background:
        rgba(34, 197, 94, 0.07);

    box-shadow:
        inset 0 0 18px rgba(34, 197, 94, 0.05);
}


.brand-shield {
    color: #39e77b;

    font-size: 15px;

    transform: rotate(45deg);
}


.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}


.brand-text strong {
    font-size: 17px;
    font-weight: 800;

    letter-spacing: -0.5px;
}


.brand-text strong span {
    color: #35e778;
}


.brand-text small {
    margin-top: 5px;

    color: #64756b;

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

    letter-spacing: 1.7px;
}


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

    gap: 8px;

    color: #74877c;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.8px;
}


.api-status strong {
    color: #43e985;

    font-size: 9px;

    letter-spacing: 1.2px;
}


.status-pulse {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #32dc70;

    box-shadow:
        0 0 0 4px rgba(50, 220, 112, 0.09),
        0 0 14px rgba(50, 220, 112, 0.55);
}


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

.hero {
    text-align: center;

    padding:
        92px
        0
        58px;
}


.hero-badge {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 7px 12px;

    border: 1px solid rgba(34, 197, 94, 0.18);

    border-radius: 999px;

    background: rgba(34, 197, 94, 0.045);

    color: #46e986;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.7px;
}


.hero-badge span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #39e77b;

    box-shadow:
        0 0 10px rgba(57, 231, 123, 0.8);
}


.hero h1 {
    max-width: 850px;

    margin:
        22px
        auto
        18px;

    font-size:
        clamp(48px, 7vw, 82px);

    line-height: 0.98;

    letter-spacing: -4px;

    font-weight: 850;

    color: #f0f6f2;
}


.hero h1 span {
    display: block;

    color: #38e77a;
}


.hero-description {
    max-width: 650px;

    margin-inline: auto;

    color: #8a9b91;

    font-size: 15px;

    line-height: 1.8;
}


.hero-meta {
    margin-top: 30px;

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

    flex-wrap: wrap;

    gap: 12px;
}


.hero-meta span {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #53665a;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}


.hero-meta b {
    color: #35e778;
}


/* =========================================================
   SCANNER SECTION
========================================================= */

.scanner-section {
    width: 100%;

    margin-bottom: 110px;
}


.scanner-card {
    width: 100%;

    overflow: hidden;

    border:
        1px solid
        rgba(71, 94, 82, 0.55);

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(34, 197, 94, 0.055),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            #0c1511,
            #07100d 70%
        );

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


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

.scanner-top {
    min-height: 82px;

    padding:
        20px
        28px;

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

    border-bottom:
        1px solid
        rgba(148, 163, 184, 0.09);
}


.scanner-heading {
    display: flex;
    align-items: center;

    gap: 14px;
}


.scanner-symbol {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(34, 197, 94, 0.25);

    border-radius: 11px;

    background:
        rgba(34, 197, 94, 0.055);
}


.scanner-symbol span {
    width: 10px;
    height: 10px;

    border: 2px solid #39e77b;

    border-radius: 50%;

    box-shadow:
        0 0 14px rgba(57, 231, 123, 0.4);
}


.eyebrow,
.model-info span,
.input-footer,
.scanner-footer,
.section-kicker,
.card-label,
.result-overline,
.prediction-box span,
.result-item > span,
.confidence-header span {
    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.eyebrow {
    color: #3fe47d;
}


.scanner-heading h2 {
    margin-top: 3px;

    font-size: 17px;

    letter-spacing: -0.3px;

    color: #edf5ef;
}


.model-info {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 3px;
}


.model-info span {
    color: #50635a;
}


.model-info strong {
    color: #91a39a;

    font-size: 9px;

    letter-spacing: 1.2px;
}


/* =========================================================
   SCANNER BODY
========================================================= */

.scanner-body {
    padding: 34px 34px 30px;
}


.scanner-intro {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-bottom: 24px;
}


.section-number {
    color: #35e778;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 10px;

    font-weight: 800;
}


.scanner-intro h3 {
    color: #e8f2ec;

    font-size: 16px;
}


.scanner-intro p {
    margin-top: 4px;

    color: #708278;

    font-size: 12px;
}


/* =========================================================
   SCAN FORM
========================================================= */

.scan-form label {
    display: block;

    margin-bottom: 9px;

    color: #82958a;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


.input-wrapper {
    min-height: 72px;

    display: flex;
    align-items: center;

    padding: 8px;

    border:
        1px solid
        rgba(65, 105, 82, 0.75);

    border-radius: 13px;

    background: #030806;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-wrapper:focus-within {
    border-color: rgba(55, 231, 122, 0.65);

    box-shadow:
        0 0 0 4px rgba(55, 231, 122, 0.055),
        0 0 30px rgba(55, 231, 122, 0.05);
}


.input-prefix {
    height: 50px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding:
        0
        15px;

    border-right:
        1px solid
        rgba(148, 163, 184, 0.09);

    color: #4f6558;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;

    white-space: nowrap;
}


.lock-icon {
    color: #39e77b;

    font-size: 15px;
}


.input-wrapper input {
    min-width: 0;

    flex: 1;

    height: 54px;

    padding:
        0
        17px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #e9f5ed;

    font-size: 15px;
}


.input-wrapper input::placeholder {
    color: #3f5046;
}


.input-wrapper button {
    min-width: 142px;
    height: 54px;

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

    gap: 18px;

    border: 0;

    border-radius: 9px;

    background: #2cda6b;

    color: #041108;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.1px;

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


.input-wrapper button:hover {
    background: #45ed82;

    transform: translateY(-1px);

    box-shadow:
        0 10px 25px rgba(44, 218, 107, 0.18);
}


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


.input-wrapper button:disabled {
    cursor: wait;

    opacity: 0.65;

    transform: none;
}


.button-arrow {
    font-size: 17px;

    line-height: 1;
}


.input-footer {
    margin-top: 9px;

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

    color: #52655a;
}


.api-note {
    display: flex;
    align-items: center;

    gap: 7px;
}


.api-note i {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #35e778;
}


.enter-hint {
    color: #46574d;
}


/* =========================================================
   EXAMPLES
========================================================= */

.examples {
    margin-top: 18px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}


.examples > span {
    margin-right: 4px;

    color: #4f6257;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}


.example-btn {
    padding:
        6px
        10px;

    border:
        1px solid
        rgba(148, 163, 184, 0.12);

    border-radius: 6px;

    background:
        rgba(255, 255, 255, 0.02);

    color: #708277;

    font-size: 9px;

    transition: all 0.2s ease;
}


.example-btn:hover {
    border-color:
        rgba(55, 231, 122, 0.3);

    color: #47e985;

    background:
        rgba(55, 231, 122, 0.05);
}


/* =========================================================
   LOADING STATE
========================================================= */

.scan-status {
    min-height: 78px;

    margin-top: 22px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding:
        15px
        18px;

    border:
        1px solid
        rgba(55, 231, 122, 0.13);

    border-radius: 10px;

    background:
        rgba(55, 231, 122, 0.025);
}


.loading-spinner {
    width: 26px;
    height: 26px;

    border:
        2px solid
        rgba(55, 231, 122, 0.13);

    border-top-color: #35e778;

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.loading-copy {
    display: flex;
    flex-direction: column;

    flex: 1;
}


.loading-copy strong {
    color: #cfe1d5;

    font-size: 12px;
}


.loading-copy span {
    margin-top: 2px;

    color: #607168;

    font-size: 10px;
}


.scanning-label {
    color: #35e778;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.4px;
}


/* =========================================================
   RESULT
========================================================= */

.result-card {
    margin-top: 22px;

    overflow: hidden;

    border:
        1px solid
        rgba(55, 231, 122, 0.20);

    border-radius: 13px;

    background:
        rgba(55, 231, 122, 0.025);

    animation:
        resultIn 0.3s ease;
}


@keyframes resultIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.result-top {
    padding: 20px;

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

    gap: 20px;
}


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

    gap: 13px;
}


.result-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        rgba(34, 197, 94, 0.12);

    color: #45e981;

    font-size: 20px;
    font-weight: 900;
}


.result-overline {
    color: #668074;
}


.result-status h2 {
    margin-top: 2px;

    color: #e8f2eb;

    font-size: 19px;
}


.prediction-box {
    min-width: 130px;

    padding:
        10px
        14px;

    text-align: right;

    border:
        1px solid
        rgba(148, 163, 184, 0.09);

    border-radius: 8px;

    background:
        rgba(0, 0, 0, 0.15);
}


.prediction-box span {
    display: block;

    color: #607268;
}


.prediction-box strong {
    display: block;

    margin-top: 2px;

    color: #dbe9df;

    font-size: 11px;

    word-break: break-word;
}


.result-divider {
    height: 1px;

    background:
        rgba(148, 163, 184, 0.08);
}


.result-grid {
    padding: 18px 20px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.8fr);

    gap: 30px;
}


.result-item {
    min-width: 0;
}


.result-item > span {
    display: block;

    color: #607168;
}


.result-url strong {
    display: block;

    margin-top: 8px;

    color: #aebeb4;

    font-size: 12px;

    font-weight: 600;

    word-break: break-all;
}


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

    margin-bottom: 10px;
}


.confidence-header span {
    color: #607168;
}


.confidence-header strong {
    color: #49e985;

    font-size: 15px;
}


.confidence-track {
    width: 100%;
    height: 7px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(148, 163, 184, 0.10);
}


.confidence-bar {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background: #2edb6b;

    transition:
        width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   ERROR
========================================================= */

.error-box {
    margin-top: 22px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding:
        15px
        17px;

    border:
        1px solid
        rgba(239, 68, 68, 0.20);

    border-radius: 10px;

    background:
        rgba(239, 68, 68, 0.035);
}


.error-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background:
        rgba(239, 68, 68, 0.10);

    color: #f87171;

    font-weight: 900;
}


.error-box strong {
    display: block;

    color: #f08b8b;

    font-size: 11px;
}


.error-box span {
    display: block;

    margin-top: 2px;

    color: #806666;

    font-size: 10px;

    word-break: break-word;
}


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

.scanner-footer {
    min-height: 48px;

    padding:
        0
        28px;

    display: flex;
    align-items: center;

    gap: 25px;

    border-top:
        1px solid
        rgba(148, 163, 184, 0.08);

    color: #52655a;
}


.scanner-footer span {
    display: flex;
    align-items: center;

    gap: 7px;
}


.scanner-footer i {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #35e778;
}


/* =========================================================
   PIPELINE SECTION
========================================================= */

.pipeline-section {
    margin-bottom: 90px;
}


.section-heading {
    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap: 60px;

    align-items: end;

    margin-bottom: 28px;
}


.section-kicker {
    color: #35e778;
}


.section-heading h2 {
    margin-top: 8px;

    color: #edf5ef;

    font-size: 34px;

    line-height: 1.1;

    letter-spacing: -1.5px;
}


.section-heading p {
    max-width: 500px;

    justify-self: end;

    color: #718279;

    font-size: 12px;

    line-height: 1.8;
}


.pipeline-grid {
    display: grid;

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

    gap: 15px;
}


.pipeline-card {
    min-height: 275px;

    padding: 23px;

    display: flex;
    flex-direction: column;

    border:
        1px solid
        rgba(148, 163, 184, 0.10);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.008)
        );

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


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

    border-color:
        rgba(55, 231, 122, 0.22);

    background:
        rgba(55, 231, 122, 0.025);
}


.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.card-number {
    color: #3ee27b;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 9px;
    font-weight: 800;
}


.card-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(55, 231, 122, 0.16);

    border-radius: 9px;

    background:
        rgba(55, 231, 122, 0.035);

    color: #3ee27b;

    font-size: 15px;
}


.pipeline-card h3 {
    margin-top: 34px;

    color: #e2ece5;

    font-size: 17px;
}


.pipeline-card p {
    margin-top: 9px;

    color: #6f8177;

    font-size: 11px;

    line-height: 1.8;
}


.card-line {
    width: 100%;
    height: 1px;

    margin-top: auto;
    margin-bottom: 13px;

    background:
        rgba(148, 163, 184, 0.08);
}


.card-label {
    color: #4e6257;
}


/* =========================================================
   SECURITY NOTICE
========================================================= */

.security-notice {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    padding:
        21px
        23px;

    margin-bottom: 80px;

    border:
        1px solid
        rgba(245, 158, 11, 0.16);

    border-radius: 13px;

    background:
        rgba(245, 158, 11, 0.025);
}


.notice-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(245, 158, 11, 0.08);

    color: #f5b43b;

    font-size: 13px;
    font-weight: 900;
}


.notice-content strong {
    display: block;

    color: #efb64b;

    font-size: 12px;
}


.notice-content p {
    max-width: 850px;

    margin-top: 3px;

    color: #756d59;

    font-size: 10px;

    line-height: 1.7;
}


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

.footer {
    min-height: 85px;

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

    border-top:
        1px solid
        rgba(148, 163, 184, 0.09);
}


.footer-brand {
    display: flex;
    flex-direction: column;
}


.footer-brand strong {
    color: #dce9e0;

    font-size: 13px;
}


.footer-brand strong span {
    color: #38e77a;
}


.footer-brand span {
    margin-top: 3px;

    color: #4e6156;

    font-size: 8px;

    letter-spacing: 0.8px;
}


.footer-tech {
    display: flex;
    align-items: center;

    gap: 20px;

    color: #4d6055;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}


/* =========================================================
   UTILITY
========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .page {
        width: min(100% - 30px, 760px);
    }


    .hero {
        padding-top: 70px;
    }


    .section-heading {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .section-heading p {
        justify-self: start;
    }


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


    .pipeline-card {
        min-height: 220px;
    }


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

}


@media (max-width: 650px) {

    .page {
        width: min(100% - 22px, 560px);
    }


    .navbar {
        min-height: 72px;
    }


    .api-status .status-text {
        display: none;
    }


    .hero {
        padding:
            65px
            0
            42px;
    }


    .hero h1 {
        font-size: clamp(42px, 13vw, 64px);

        letter-spacing: -2.8px;
    }


    .hero-description {
        font-size: 13px;
    }


    .hero-meta {
        display: none;
    }


    .scanner-top {
        padding: 17px;

        align-items: flex-start;
    }


    .scanner-heading h2 {
        font-size: 14px;
    }


    .scanner-symbol {
        width: 34px;
        height: 34px;
    }


    .model-info {
        display: none;
    }


    .scanner-body {
        padding:
            24px
            17px;
    }


    .input-wrapper {
        display: block;

        padding: 8px;
    }


    .input-prefix {
        height: 36px;

        justify-content: flex-start;

        border-right: 0;

        border-bottom:
            1px solid
            rgba(148, 163, 184, 0.08);
    }


    .input-wrapper input {
        width: 100%;

        height: 55px;

        padding:
            0
            9px;
    }


    .input-wrapper button {
        width: 100%;
        min-width: 0;
    }


    .input-footer {
        align-items: flex-start;

        gap: 10px;
    }


    .api-note {
        line-height: 1.5;
    }


    .scanner-footer {
        padding:
            0
            17px;

        gap: 12px;

        overflow-x: auto;

        white-space: nowrap;
    }


    .scanner-footer span {
        flex-shrink: 0;
    }


    .result-top {
        flex-direction: column;

        align-items: flex-start;
    }


    .prediction-box {
        width: 100%;

        text-align: left;
    }


    .pipeline-card {
        min-height: 240px;
    }


    .security-notice {
        padding: 17px;
    }


    .footer {
        padding:
            25px
            0;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }


    .footer-tech {
        flex-wrap: wrap;

        gap: 10px;
    }

}


@media (max-width: 420px) {

    .brand-text strong {
        font-size: 15px;
    }


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


    .hero-description {
        font-size: 12px;
    }


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

}