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

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

    background:
        radial-gradient(
            circle at top left,
            #172554,
            #020617 45%
        );

    color: #e5e7eb;

    min-height: 100vh;
}


.navbar {
    height: 76px;

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

    padding: 0 7%;

    border-bottom:
        1px solid rgba(255,255,255,.08);

    background:
        rgba(2,6,23,.75);

    backdrop-filter: blur(15px);
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-icon {
    width: 42px;
    height: 42px;

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

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #22d3ee
        );

    font-weight: 800;
}


.brand-name {
    font-size: 17px;
    font-weight: 700;
}


.brand-subtitle {
    font-size: 11px;
    color: #94a3b8;
}


.nav-links {
    display: flex;
    gap: 30px;
}


.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
}


.nav-links a:hover {
    color: white;
}


.container {
    width: 86%;
    max-width: 1250px;

    margin: auto;

    padding:
        70px 0
        100px;
}


.hero {
    max-width: 850px;

    margin-bottom: 55px;
}


.badge {
    display: inline-block;

    padding: 7px 12px;

    border-radius: 100px;

    background:
        rgba(99,102,241,.12);

    border:
        1px solid rgba(99,102,241,.3);

    color: #a5b4fc;

    font-size: 11px;

    letter-spacing: 1.2px;

    font-weight: 700;
}


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

    line-height: 1.05;

    margin:
        22px 0;

    letter-spacing: -3px;
}


.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #818cf8,
            #22d3ee
        );

    -webkit-background-clip: text;
    color: transparent;
}


.hero p {
    color: #94a3b8;

    font-size: 17px;

    line-height: 1.7;

    max-width: 720px;
}


.workspace {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 25px;
}


.card {
    background:
        rgba(15,23,42,.75);

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 22px;

    padding: 28px;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.2);
}


.card-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}


.step {
    width: 42px;
    height: 42px;

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

    border-radius: 12px;

    background:
        rgba(99,102,241,.15);

    color: #a5b4fc;

    font-weight: 700;

    font-size: 13px;
}


.card h2 {
    font-size: 19px;
}


.card-header p {
    color: #64748b;

    font-size: 13px;

    margin-top: 4px;
}


.upload-area {
    min-height: 280px;

    border:
        1.5px dashed
        #334155;

    border-radius: 18px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    cursor: pointer;

    transition: .2s;
}


.upload-area:hover {
    border-color: #6366f1;

    background:
        rgba(99,102,241,.05);
}


.upload-icon {
    width: 55px;
    height: 55px;

    border-radius: 50%;

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

    background:
        rgba(99,102,241,.15);

    color: #a5b4fc;

    font-size: 25px;

    margin-bottom: 15px;
}


.upload-area h3 {
    font-size: 16px;
}


.upload-area p {
    color: #64748b;

    font-size: 13px;

    margin-top: 7px;
}


.upload-area span {
    margin-top: 20px;

    color: #818cf8;

    font-size: 12px;
}


.upload-area input {
    display: none;
}


textarea {
    width: 100%;

    height: 280px;

    resize: none;

    padding: 20px;

    border-radius: 16px;

    border:
        1px solid #334155;

    background:
        #020617;

    color: #e2e8f0;

    font-family: inherit;

    font-size: 14px;

    line-height: 1.6;

    outline: none;
}


textarea:focus {
    border-color: #6366f1;
}


.textarea-footer {
    margin-top: 10px;

    text-align: right;

    color: #475569;

    font-size: 12px;
}


.action-section {
    display: flex;

    justify-content: center;

    margin:
        35px 0;
}


.primary-button {
    border: none;

    padding:
        16px 26px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #06b6d4
        );

    color: white;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    gap: 35px;

    box-shadow:
        0 10px 30px
        rgba(99,102,241,.25);

    transition: .2s;
}


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


.loading {
    text-align: center;

    padding: 60px;
}


.loader {
    width: 45px;
    height: 45px;

    border:
        4px solid
        #1e293b;

    border-top-color:
        #6366f1;

    border-radius: 50%;

    animation:
        spin 1s linear infinite;

    margin:
        0 auto 20px;
}


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


.loading p {
    color: #64748b;

    margin-top: 8px;
}


.hidden {
    display: none !important;
}


.results {
    background:
        rgba(15,23,42,.75);

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 22px;

    padding: 35px;
}


.results-header {
    display: flex;

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

    margin-bottom: 30px;
}


.results-header h2 {
    margin-top: 15px;

    font-size: 28px;
}


.score {
    width: 100px;
    height: 100px;

    border-radius: 50%;

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

    border:
        5px solid #6366f1;

    font-size: 25px;

    font-weight: 800;

    color: #a5b4fc;
}


.result-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;
}


.result-card {
    background:
        #020617;

    border:
        1px solid #1e293b;

    border-radius: 17px;

    padding: 25px;
}


.result-card h3 {
    margin-bottom: 15px;

    font-size: 15px;
}


.result-card p {
    color: #94a3b8;

    line-height: 1.7;

    font-size: 14px;
}


footer {
    text-align: center;

    color: #475569;

    font-size: 12px;

    padding-bottom: 30px;
}


@media (max-width: 850px) {

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

    .navbar {
        padding: 0 5%;
    }

    .container {
        width: 90%;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

}