:root {
    --bg: #f4efe6;
    --bg-deep: #e8dfcf;
    --panel: rgba(255, 252, 245, 0.84);
    --panel-strong: rgba(255, 250, 242, 0.94);
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --ink: #152033;
    --muted: #637086;
    --line: rgba(21, 32, 51, 0.11);
    --gold: #d9982a;
    --teal: #0f766e;
    --teal-deep: #0a4f55;
    --teal-soft: rgba(15, 118, 110, 0.12);
    --coral: #d45f3a;
    --success: #1c8a63;
    --danger: #b0412d;
    --shadow: 0 28px 70px rgba(31, 36, 48, 0.12);
    --shadow-soft: 0 18px 34px rgba(31, 36, 48, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(217, 152, 42, 0.28), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(15, 118, 110, 0.2), transparent 20%),
        linear-gradient(180deg, #fcf8f0 0%, var(--bg) 52%, var(--bg-deep) 100%);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.page-shell {
    position: relative;
    overflow: hidden;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.7;
    pointer-events: none;
}

.ambient-a {
    width: 260px;
    height: 260px;
    top: 100px;
    right: -40px;
    background: rgba(217, 152, 42, 0.38);
}

.ambient-b {
    width: 240px;
    height: 240px;
    left: -50px;
    bottom: 80px;
    background: rgba(15, 118, 110, 0.16);
}

.hero,
.workspace,
.result-panel {
    position: relative;
    z-index: 1;
}

.hero-copy,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero {
    margin-bottom: 24px;
}

.hero-copy {
    padding: 40px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(246, 252, 251, 0.74)),
        var(--panel-strong);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--teal-deep), var(--teal));
    color: #fffdf7;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(10, 79, 85, 0.24);
}

.brand-name,
.brand-tagline {
    margin: 0;
}

.brand-name {
    font-size: 1.08rem;
    font-weight: 800;
}

.brand-tagline {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.eyebrow,
.panel-kicker {
    margin: 0 0 10px;
    color: var(--teal-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.panel h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.02;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 5vw, 5rem);
}

.hero-text {
    max-width: 60ch;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-badges,
.supporting-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges {
    margin-top: 24px;
}

.hero-badges span,
.supporting-pills span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 118, 110, 0.14);
    font-size: 0.92rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.metric-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.metric-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card strong {
    font-size: 1rem;
}

.workspace {
    display: block;
    margin-bottom: 24px;
}

.panel {
    padding: 28px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-intro {
    margin-bottom: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.panel-intro p {
    margin: 0;
}

.dropzone {
    position: relative;
    display: grid;
    gap: 18px;
    min-height: 300px;
    padding: 32px 28px;
    place-items: center;
    border-radius: var(--radius-lg);
    border: 1.5px dashed rgba(10, 79, 85, 0.24);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 247, 0.78));
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dropzone:hover,
.dropzone.is-dragging {
    transform: translateY(-2px);
    border-color: rgba(10, 79, 85, 0.56);
    box-shadow: 0 24px 48px rgba(15, 118, 110, 0.12);
}

.dropzone.has-file {
    border-style: solid;
    background:
        linear-gradient(145deg, rgba(242, 252, 249, 0.96), rgba(255, 255, 255, 0.88));
}

.dropzone-art {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background:
        conic-gradient(from 160deg, rgba(217, 152, 42, 0.84), rgba(15, 118, 110, 0.78), rgba(217, 152, 42, 0.84));
    padding: 1px;
}

.drop-pill {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 29px;
    background: rgba(255, 250, 242, 0.96);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dropzone-copy {
    text-align: center;
}

.dropzone-copy h3 {
    margin: 0 0 10px;
    font-size: 1.65rem;
}

.dropzone-copy p {
    margin: 0;
    color: var(--muted);
    max-width: 34ch;
}

.supporting-pills {
    margin-top: 16px;
}

.hidden-config-form {
    margin-top: 20px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
}

.primary-button,
.ghost-button,
.text-button,
.download-link {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-button,
.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    color: #fffdf7;
    background: linear-gradient(135deg, var(--teal-deep), var(--teal));
    box-shadow: 0 16px 28px rgba(10, 79, 85, 0.24);
}

.primary-button:hover,
.download-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 32px rgba(10, 79, 85, 0.28);
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.primary-button:disabled:hover {
    transform: none;
}

.ghost-button,
.text-button {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    border: 1px solid rgba(21, 32, 51, 0.1);
}

.ghost-button:hover,
.text-button:hover {
    transform: translateY(-1px);
    border-color: rgba(10, 79, 85, 0.24);
    background: rgba(255, 255, 255, 0.94);
}

.inline-note,
.file-meta,
.progress-detail,
.result-subtitle {
    color: var(--muted);
}

.file-card,
.progress-card,
.result-body {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
}

.file-card,
.progress-card {
    gap: 16px;
    margin-top: 16px;
    padding: 16px 18px;
}

.file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-card {
    display: grid;
    gap: 14px;
}

.file-name,
.progress-label,
.result-title {
    margin: 0;
    font-weight: 800;
}

.file-meta,
.progress-detail,
.result-subtitle,
.result-title + .result-subtitle {
    margin-top: 6px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--teal-soft);
}

.progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--coral), var(--teal));
    transition: width 220ms ease;
}

.result-body {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}

.result-state.is-success .result-title {
    color: var(--success);
}

.result-state.is-error .result-title {
    color: var(--danger);
}

.hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 20px 14px 32px;
    }

    .hero-copy,
    .panel {
        padding: 22px;
    }

    .panel-head,
    .action-row,
    .file-card,
    .result-body {
        align-items: stretch;
    }

    .panel-head,
    .file-card,
    .result-body,
    .hero-actions {
        flex-direction: column;
    }
}
