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

body {
    font-family: 'Inter', sans-serif;
    background: #0b1020;
    color: #f1f5f9;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Header */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid #202a40;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
}

.logo-icon {
    background: #7667f5;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.highlight {
    color: #9487ff;
}

.model-status {
    font-size: 11px;
    letter-spacing: 1px;
    color: #aeb9cf;
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #32d69a;
    border-radius: 50%;
}


/* Hero */

.hero {
    text-align: center;
    padding: 65px 10px 45px;
}

.tag {
    color: #a99dff;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 49px);
    font-weight: 800;
    line-height: 1.2;
}

.hero h1 span {
    color: #9487ff;
}

.hero p {
    color: #98a6bf;
    max-width: 580px;
    margin: 18px auto 0;
    line-height: 1.7;
    font-size: 14px;
}


/* Main Card */

.main-card {
    background: #131c30;
    border: 1px solid #27334b;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

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

.section-heading p {
    color: #93a1b8;
    font-size: 13px;
    margin-top: 7px;
}

.model-tag {
    background: #28244b;
    color: #b6aaff;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 11px;
    white-space: nowrap;
}


/* Input */

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.input-box {
    background: #0c1426;
    border: 1px solid #2a3650;
    border-radius: 12px;
    padding: 16px;
}

.input-box:focus-within {
    border-color: #9487ff;
}

.input-box label {
    display: block;
    color: #a99dff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    height: 115px;
    background: transparent;
    border: none;
    outline: none;
    resize: vertical;
    color: white;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}

textarea::placeholder {
    color: #61708a;
}

.char-count {
    display: block;
    text-align: right;
    color: #75839b;
    font-size: 10px;
}


/* Button */

.compare-btn {
    width: 100%;
    margin-top: 22px;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(100deg, #7062ee, #9a72ed);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
}

.compare-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(125, 103, 245, 0.3);
}

.compare-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.status-message {
    text-align: center;
    color: #91a0b8;
    font-size: 12px;
    margin-top: 15px;
}


/* Results */

.results {
    margin-top: 35px;
    border-top: 1px solid #2b3850;
    padding-top: 28px;
}

.hidden {
    display: none;
}

.result-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.result-heading h2 {
    font-size: 18px;
}

.completed {
    color: #32d69a;
    font-size: 10px;
    font-weight: 700;
}


/* Score */

.score-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    background: #0c1426;
    border: 1px solid #293750;
    border-radius: 14px;
}

.score-circle {
    width: 145px;
    height: 145px;
    flex-shrink: 0;
    border-radius: 50%;
    background: conic-gradient(
        #9383ff 0deg,
        #9383ff 0deg,
        #28334b 0deg
    );
    display: grid;
    place-items: center;
}

.score-inner {
    width: 120px;
    height: 120px;
    background: #0c1426;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-inner h2 {
    font-size: 31px;
}

.score-inner span {
    font-size: 9px;
    color: #94a3b8;
    letter-spacing: 1px;
}

.score-info {
    flex: 1;
}

.score-info h3 {
    color: #a99dff;
    font-size: 19px;
    margin-bottom: 10px;
}

.score-info p {
    color: #a0aec2;
    font-size: 13px;
    line-height: 1.6;
}

.progress-track {
    height: 7px;
    background: #29364d;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7062ee, #a78bfa);
    border-radius: 10px;
    transition: width 0.6s;
}


/* Details */

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.detail-card {
    padding: 20px;
    background: #0c1426;
    border: 1px solid #293750;
    border-radius: 12px;
}

.detail-card span {
    font-size: 9px;
    color: #9a8dff;
    letter-spacing: 1px;
    font-weight: 700;
}

.detail-card h2 {
    margin: 12px 0 7px;
    font-size: 22px;
}

.detail-card p {
    color: #8d9bb1;
    font-size: 11px;
}


/* Embeddings */

.embedding-section {
    margin-top: 22px;
    background: #0c1426;
    padding: 22px;
    border: 1px solid #293750;
    border-radius: 12px;
}

.embedding-section h3 {
    font-size: 15px;
}

.embedding-section p {
    color: #94a3b8;
    font-size: 12px;
    margin: 8px 0 16px;
}

.vector-values {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.vector-item {
    background: #29254c;
    color: #c5baff;
    padding: 9px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-family: monospace;
}


/* Examples */

.examples {
    margin: 40px 0;
}

.examples h3 {
    font-size: 17px;
    margin-bottom: 18px;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.example-card {
    text-align: left;
    background: #131c30;
    border: 1px solid #293750;
    padding: 20px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.example-card:hover {
    border-color: #9383ff;
    transform: translateY(-3px);
}

.example-card span,
.example-card strong,
.example-card small {
    display: block;
}

.example-card span {
    color: #a99dff;
    font-size: 11px;
    margin-bottom: 15px;
}

.example-card strong {
    font-size: 13px;
}

.example-card small {
    color: #8e9cb3;
    margin-top: 8px;
    font-size: 11px;
}


/* Footer */

footer {
    border-top: 1px solid #253149;
    padding: 25px 0;
    text-align: center;
    color: #78869d;
    font-size: 11px;
    line-height: 2;
}


/* Mobile Responsive */

@media (max-width: 700px) {

    .container {
        width: 92%;
    }

    .header {
        gap: 12px;
    }

    .model-status {
        font-size: 8px;
    }

    .hero {
        padding: 45px 5px 30px;
    }

    .main-card {
        padding: 18px;
    }

    .input-grid,
    .details-grid,
    .example-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .score-card {
        flex-direction: column;
        text-align: center;
    }

    .score-info {
        width: 100%;
    }
}
