@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');


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


:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #111827;
    --primary-hover: #273449;
    --accent: #2563eb;
    --success-bg: #ecfdf5;
    --success: #047857;
}


body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}


.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


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

.header {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;

    padding: 28px 0;

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

    border-bottom: 1px solid var(--border);
}


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


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

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

    border-radius: 12px;

    background: var(--primary);
    color: white;

    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
}


.brand h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    font-weight: 700;
}


.brand p {
    margin-top: 2px;
    font-size: 13px;
    color: var(--muted);
}


.model-badge {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 100px;

    background: white;

    font-size: 12px;
    font-weight: 600;
    color: #374151;
}


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

    border-radius: 50%;

    background: #10b981;
}


/* =========================
   MAIN
========================= */

.main {
    width: min(850px, calc(100% - 40px));

    margin: 0 auto;

    padding: 65px 0 40px;

    flex: 1;
}


/* =========================
   INTRO
========================= */

.intro {
    text-align: center;
    margin-bottom: 38px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 15px;

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

    letter-spacing: 1.8px;

    color: var(--accent);
}


.intro h2 {
    max-width: 680px;

    margin: 0 auto;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;

    letter-spacing: -1.8px;
}


.intro h2 span {
    color: var(--accent);
}


.intro p {
    max-width: 600px;

    margin: 18px auto 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.7;
}


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

.prediction-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 10px 30px rgba(17, 24, 39, 0.05);
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 28px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);
}


.card-header h3 {
    font-family: "Space Grotesk", sans-serif;

    font-size: 20px;
}


.card-header p {
    margin-top: 5px;

    font-size: 13px;

    color: var(--muted);
}


.step {
    padding: 6px 10px;

    border-radius: 6px;

    background: #f3f4f6;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #6b7280;
}


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

.form-grid {
    display: grid;

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

    gap: 20px;
}


.form-group {
    display: flex;
    flex-direction: column;
}


.form-group label {
    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 600;
}


.form-group input,
.form-group select {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    background: white;

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

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


.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


.form-group small {
    margin-top: 6px;

    color: #9ca3af;

    font-size: 11px;
}


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

.predict-btn {
    width: 100%;

    margin-top: 28px;

    padding: 14px 18px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    border: none;

    border-radius: 9px;

    background: var(--primary);

    color: white;

    font-family: inherit;

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

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}


.predict-btn:hover {
    background: var(--primary-hover);

    transform: translateY(-1px);
}


.arrow {
    font-size: 18px;

    transition: transform 0.2s;
}


.predict-btn:hover .arrow {
    transform: translateX(4px);
}


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

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

    padding: 25px;

    display: flex;
    align-items: center;

    gap: 18px;

    border: 1px solid #a7f3d0;

    border-radius: 14px;

    background: var(--success-bg);
}


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

    flex-shrink: 0;

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

    border-radius: 50%;

    background: #d1fae5;

    color: var(--success);

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


.result-label {
    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: var(--success);
}


.result-card h3 {
    margin-top: 3px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 25px;
}


.result-card p {
    margin-top: 5px;

    color: #4b5563;

    font-size: 12px;
}


/* =========================
   DISCLAIMER
========================= */

.disclaimer {
    display: flex;

    gap: 10px;

    margin-top: 18px;

    padding: 15px 17px;

    border-radius: 10px;

    background: #f1f5f9;

    color: #64748b;

    font-size: 11px;

    line-height: 1.6;
}


.disclaimer span {
    font-size: 14px;
}


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

footer {
    width: min(1120px, calc(100% - 40px));

    margin: 0 auto;

    padding: 22px 0;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: #9ca3af;

    font-size: 11px;
}


footer span {
    margin: 0 6px;
}


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

@media (max-width: 650px) {

    .header {
        width: calc(100% - 28px);

        padding: 20px 0;
    }


    .model-badge {
        display: none;
    }


    .main {
        width: calc(100% - 28px);

        padding-top: 45px;
    }


    .prediction-card {
        padding: 22px;
    }


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


    .intro h2 {
        font-size: 34px;
    }


    footer {
        width: calc(100% - 28px);

        flex-direction: column;

        gap: 8px;

        text-align: center;
    }

}