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

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080b14;
    color: #dbeafe;
    min-height: 100vh;
    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */

.grid-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;

    background-image:
        linear-gradient(rgba(79, 124, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 124, 255, 0.07) 1px, transparent 1px);

    background-size: 55px 55px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 85%
    );

    z-index: -3;
}


.bg-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.12;
    z-index: -2;
}


.glow-one {
    top: -220px;
    left: -150px;
    background: #2563eb;
}


.glow-two {
    top: 250px;
    right: -250px;
    background: #22d3ee;
}


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

.container {
    width: min(1050px, 92%);
    margin: 0 auto;
    padding: 85px 0 45px;
}


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

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


.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 9px 17px;

    border: 1px solid rgba(37, 99, 235, 0.55);
    border-radius: 999px;

    color: #22d3ee;

    background: rgba(34, 211, 238, 0.05);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;

    box-shadow:
        0 0 25px rgba(34, 211, 238, 0.06);

    margin-bottom: 24px;
}


.badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22d3ee;

    box-shadow:
        0 0 10px #22d3ee;
}


h1 {
    font-size: clamp(52px, 9vw, 88px);

    line-height: 0.95;

    letter-spacing: -5px;

    margin-bottom: 20px;

    color: #4f7cff;

    text-shadow:
        0 0 35px rgba(79, 124, 255, 0.28);
}


h1 span {
    color: #4f7cff !important;
}


.subtitle {
    font-size: 27px;

    font-weight: 600;

    margin-bottom: 14px;

    color: #22d3ee !important;

    letter-spacing: -0.5px;
}


.description {
    max-width: 680px;

    margin: auto;

    color: #94a3b8;

    line-height: 1.75;

    font-size: 16px;
}


/* =========================================================
   SEARCH CARD
========================================================= */

.search-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 39, 0.98),
            rgba(11, 17, 30, 0.98)
        );

    border: 1px solid #263d70;

    border-radius: 22px;

    padding: 30px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45),
        0 0 45px rgba(37, 99, 235, 0.05);

    overflow: hidden;
}


.search-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 12%;

    width: 76%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        #2563eb,
        #22d3ee,
        transparent
    );

    opacity: 0.7;
}


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

.search-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 28px;
}


.search-title {
    font-size: 18px;

    font-weight: 700;

    color: #e0ecff;

    margin-bottom: 6px;
}


.search-subtitle {
    color: #64748b;

    font-size: 13px;
}


.ai-status {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 7px 11px;

    border-radius: 999px;

    border: 1px solid rgba(34, 211, 238, 0.2);

    background: rgba(34, 211, 238, 0.05);

    color: #67e8f9;

    font-size: 11px;

    font-weight: 600;

    white-space: nowrap;
}


.ai-status span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #22d3ee;

    box-shadow: 0 0 9px #22d3ee;
}


/* =========================================================
   LABEL
========================================================= */

.search-card label {
    display: block;

    margin-bottom: 11px;

    color: #93c5fd;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   INPUT
========================================================= */

.input-row {
    display: flex;

    gap: 12px;
}


.input-wrapper {
    position: relative;

    flex: 1;

    min-width: 0;
}


.search-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-54%);

    color: #4f7cff;

    font-size: 24px;

    line-height: 1;

    pointer-events: none;
}


input {
    width: 100%;

    height: 58px;

    padding: 0 18px 0 48px;

    border: 1px solid #334b7a;

    border-radius: 12px;

    outline: none;

    background: #080b14;

    color: #dbeafe;

    font-size: 15px;

    transition: 0.25s ease;
}


input::placeholder {
    color: #52627d;
}


input:hover {
    border-color: #3e5d96;
}


input:focus {
    border-color: #4f7cff;

    box-shadow:
        0 0 0 3px rgba(79, 124, 255, 0.10),
        0 0 25px rgba(37, 99, 235, 0.08);
}


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

button {
    position: relative;

    height: 58px;

    padding: 0 18px 0 22px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #22d3ee
        );

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    min-width: 145px;

    box-shadow:
        0 10px 30px rgba(37, 99, 235, 0.28);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;
}


button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 35px rgba(34, 211, 238, 0.24);
}


button:active {
    transform: translateY(0);
}


button:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


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

    line-height: 1;
}


/* =========================================================
   EXAMPLE
========================================================= */

.example {
    margin-top: 14px;

    color: #52627d;

    font-size: 12px;
}


.example span {
    color: #60a5fa;

    font-weight: 600;

    margin-right: 5px;
}


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

.error {
    margin-top: 20px;

    padding: 15px 18px;

    border-radius: 12px;

    background: rgba(127, 29, 29, 0.15);

    border: 1px solid #633044;

    color: #fda4af;

    font-size: 14px;

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


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

.result {
    margin-top: 30px;

    padding: 38px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 39, 0.98),
            rgba(11, 17, 30, 0.98)
        );

    border: 1px solid #263d70;

    line-height: 1.75;

    overflow-x: auto;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35);
}


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

.result h1,
.result h2,
.result h3 {
    margin-top: 30px;

    margin-bottom: 14px;
}


.result h1 {
    font-size: 31px;

    letter-spacing: -1px;

    color: #4f7cff;

    padding-bottom: 16px;

    border-bottom: 1px solid #263d70;
}


.result h2 {
    font-size: 22px;

    color: #22d3ee;

    padding-bottom: 7px;
}


.result h3 {
    font-size: 17px;

    color: #60a5fa;
}


.result p {
    margin-bottom: 15px;

    color: #bfdbfe;
}


.result li {
    margin-left: 25px;

    margin-bottom: 8px;

    color: #bfdbfe;
}


/* =========================================================
   LINKS
========================================================= */

.result a {
    color: #22d3ee;

    text-decoration: none;

    border-bottom: 1px solid rgba(34, 211, 238, 0.3);
}


.result a:hover {
    color: #67e8f9;
}


/* =========================================================
   TABLE
========================================================= */

.result table {
    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    margin: 22px 0;

    overflow: hidden;

    border: 1px solid #334b7a;

    border-radius: 12px;
}


.result th,
.result td {
    border-bottom: 1px solid #263d70;

    padding: 13px;

    text-align: left;

    vertical-align: top;

    font-size: 14px;
}


.result th {
    background: #172554;

    color: #22d3ee;

    font-weight: 700;
}


.result td {
    color: #bfdbfe;

    background: rgba(8, 11, 20, 0.35);
}


.result tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   HORIZONTAL LINE
========================================================= */

.result hr {
    border: none;

    border-top: 1px solid #263d70;

    margin: 25px 0;
}


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

.hidden {
    display: none !important;
}


.loader {
    display: inline-block;

    width: 17px;

    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.35);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


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

footer {
    text-align: center;

    margin-top: 48px;

    color: #52627d;

    font-size: 12px;

    letter-spacing: 0.3px;
}


footer strong {
    color: #64748b;
}


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

@media (max-width: 700px) {

    .container {
        width: min(94%, 1050px);

        padding-top: 50px;
    }


    .hero {
        margin-bottom: 35px;
    }


    h1 {
        font-size: clamp(45px, 15vw, 70px);

        letter-spacing: -3px;
    }


    .subtitle {
        font-size: 22px;
    }


    .description {
        font-size: 14px;
    }


    .search-card {
        padding: 22px;
    }


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

        flex-direction: column;

        margin-bottom: 22px;
    }


    .input-row {
        flex-direction: column;
    }


    button {
        width: 100%;
    }


    .result {
        padding: 24px 20px;
    }


    .result table {
        min-width: 650px;
    }

}


@media (max-width: 420px) {

    .badge {
        font-size: 9px;

        letter-spacing: 1.3px;

        padding: 8px 12px;
    }


    h1 {
        font-size: 45px;
    }


    .search-card {
        border-radius: 17px;
    }

}
