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

body {
    font-family: 'Inter', sans-serif;
    background: #f6f7fb;
    color: #20243a;
}

.navbar {
    height: 75px;
    padding: 0 8%;
    background: white;
    border-bottom: 1px solid #e9eaf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    background: #6558df;
    color: white;
    padding: 9px 13px;
    border-radius: 10px;
}

.nav-label {
    color: #6558df;
    font-size: 13px;
    font-weight: 600;
}

.container {
    max-width: 1150px;
    margin: auto;
    padding: 65px 25px 30px;
}

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

.tag {
    color: #6558df;
    background: #eeecff;
    padding: 9px 15px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.2;
    margin: 25px 0 15px;
    font-weight: 800;
}

.hero h1 span {
    color: #6558df;
}

.hero p {
    color: #777d91;
    font-size: 15px;
    line-height: 1.7;
    max-width: 600px;
    margin: auto;
}

.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.input-card,
.output-card {
    background: white;
    padding: 27px;
    border: 1px solid #e9eaf0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(30, 35, 70, 0.04);
    min-width: 0;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 10px;
}

.card-heading h2 {
    font-size: 18px;
    margin-bottom: 7px;
}

.card-heading p {
    font-size: 12px;
    color: #9095a5;
}

.step {
    font-size: 10px;
    font-weight: 700;
    color: #6558df;
    white-space: nowrap;
}

textarea {
    width: 100%;
    height: 230px;
    resize: vertical;
    border: 1px solid #e5e6ee;
    border-radius: 10px;
    padding: 16px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
    outline: none;
    color: #30354b;
    background: #fcfcfe;
}

textarea:focus {
    border-color: #6558df;
    box-shadow: 0 0 0 3px rgba(101, 88, 223, 0.08);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    margin: 12px 0 22px;
    color: #9095a5;
    font-size: 12px;
}

.text-button {
    border: none;
    background: none;
    color: #6558df;
    cursor: pointer;
    font-weight: 600;
}

.settings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
}

select {
    padding: 10px 15px;
    border: 1px solid #e5e6ee;
    border-radius: 8px;
    background: white;
    color: #30354b;
    outline: none;
}

.summarize-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 9px;
    background: #6558df;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.summarize-btn:hover {
    background: #5144c5;
    transform: translateY(-2px);
}

.summarize-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.privacy-note {
    text-align: center;
    color: #a0a3b1;
    font-size: 10px;
    margin-top: 14px;
}

.empty-state,
.loading-state {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-icon {
    width: 65px;
    height: 65px;
    background: #f0eeff;
    color: #6558df;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 35px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #9095a5;
    font-size: 12px;
    line-height: 1.7;
    max-width: 260px;
}

.loading-state p {
    font-weight: 600;
    margin-top: 20px;
}

.loading-state span {
    color: #9095a5;
    font-size: 12px;
    margin-top: 8px;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #eceaff;
    border-top-color: #6558df;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.result-state {
    padding-top: 10px;
}

#summaryOutput {
    font-size: 14px;
    line-height: 1.9;
    color: #41465a;
    min-height: 190px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f7f6ff;
    padding: 17px 10px;
    border-radius: 10px;
    margin: 20px 0;
    gap: 5px;
}

.result-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.result-stats span {
    font-size: 10px;
    color: #9095a5;
}

.result-stats strong {
    font-size: 18px;
    color: #6558df;
}

.copy-btn {
    width: 100%;
    padding: 13px;
    border: 1px solid #6558df;
    border-radius: 9px;
    color: #6558df;
    background: white;
    font-weight: 700;
    cursor: pointer;
}

.copy-btn:hover {
    background: #f3f1ff;
}

.error-state {
    padding: 15px;
    background: #fff0f0;
    color: #c03939;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

footer {
    text-align: center;
    margin-top: 45px;
    color: #999eae;
    font-size: 11px;
}

@media (max-width: 750px) {
    .workspace {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 45px 16px 25px;
    }

    .navbar {
        padding: 0 18px;
    }

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