:root {
    --bg: #171717;
    --panel: #222222;
    --panel-soft: #2a2a2a;
    --text: #f5f5f5;
    --muted: #b7b7b7;
    --line: #3a3a3a;
    --accent: #c45a1a;
    --accent-strong: #ef7d2d;
    --accent-soft: rgba(239, 125, 45, 0.14);
    --success: #2f9e44;
    --error: #d94841;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(196, 90, 26, 0.16), transparent 28%),
        linear-gradient(180deg, #141414 0%, #1b1b1b 100%);
    color: var(--text);
    font-family: "Cascadia Code", "Fira Code", "JetBrains Mono", "Consolas", "Courier New", monospace;
}

body {
    display: flex;
    flex-direction: column;
}

.app-shell {
    width: min(1400px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 32px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.hero {
    min-height: 44vh;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
}

.hero-copy,
.hero-results,
.panel {
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(3.2rem, 6vw, 6.4rem);
    line-height: 0.98;
    margin: 0 0 18px;
    color: var(--text);
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    max-width: 42rem;
    line-height: 1.8;
}

.hero-results {
    padding: 24px;
    display: flex;
}

.result-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.95rem;
}

.status {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--line);
    background: #252525;
    color: var(--muted);
}

.status.working {
    background: var(--accent-soft);
    color: #ffb07a;
    border-color: rgba(239, 125, 45, 0.4);
}

.status.done {
    background: rgba(47, 158, 68, 0.14);
    color: #9be6a9;
    border-color: rgba(47, 158, 68, 0.4);
}

.status.error {
    background: rgba(217, 72, 65, 0.14);
    color: #ffaca7;
    border-color: rgba(217, 72, 65, 0.4);
}

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

.metric-card {
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, #2b2b2b, #232323);
    border: 1px solid var(--line);
}

.metric-label {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.metric-card h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    color: var(--accent-strong);
    word-break: break-word;
}

.result-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: 34vh;
}

.panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.panel-header h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
}

.panel-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.drop-zone {
    flex: 1;
    min-height: 280px;
    border: 2px dashed rgba(239, 125, 45, 0.45);
    border-radius: 22px;
    background: rgba(239, 125, 45, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: 0.2s ease;
}

.drop-zone.dragging {
    background: rgba(239, 125, 45, 0.12);
    border-color: var(--accent-strong);
    transform: translateY(-2px);
}

.drop-zone-content {
    text-align: center;
}

.drop-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.drop-subtitle {
    margin: 0 0 22px;
    color: var(--muted);
}

.primary-btn,
.secondary-btn {
    border: none;
    border-radius: 14px;
    padding: 16px 24px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.primary-btn {
    background: linear-gradient(180deg, var(--accent-strong), var(--accent));
    color: white;
    box-shadow: 0 12px 30px rgba(239, 125, 45, 0.22);
}

.secondary-btn {
    background: #333333;
    color: var(--text);
    border: 1px solid var(--line);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-1px);
}

.primary-btn:disabled,
.secondary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.mic-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: center;
}

.mic-visual {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
    background: #272727;
    border: 1px solid var(--line);
}

.mic-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #666666;
    box-shadow: 0 0 0 0 rgba(239, 125, 45, 0);
}

.mic-dot.active {
    background: var(--accent-strong);
    box-shadow: 0 0 0 10px rgba(239, 125, 45, 0.12);
}

.mic-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.mic-tip {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.app-footer {
    width: min(1400px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 0 0 26px;
    color: #9d9d9d;
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .hero,
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

    .app-shell {
        width: min(100vw - 24px, 1400px);
        padding-top: 16px;
    }
}


.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: softFadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }
.delay-5 { animation-delay: 0.58s; }
.delay-6 { animation-delay: 0.7s; }

.result-value,
.result-note {
    opacity: 1;
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.result-show {
    animation: resultFade 0.75s ease;
}

.result-note-show {
    animation: resultFade 0.75s ease;
}

@keyframes softFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes resultFade {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
