/* ===== DESIGN TOKENS ===== */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --border: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.4);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #818cf8;
    --accent-bright: #a5b4fc;
    --gradient-start: #6366f1;
    --gradient-end: #8b5cf6;
    --gradient-alt: #06b6d4;

    --positive: #34d399;
    --neutral: #fbbf24;
    --negative: #f87171;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.accent { color: var(--accent); }

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end), var(--gradient-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAV ===== */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__logo-icon { font-size: 1.5rem; }

.nav__badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-bright);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero__bg-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== HEADER ===== */
.header {
    position: relative;
    overflow: hidden;
    padding-bottom: 24px;
}

a.nav__logo { color: inherit; text-decoration: none; }
a.nav__logo:hover .nav__logo-text { opacity: 0.85; }

/* ===== DEMO BANNER ===== */
.demo-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 18px;
    padding: 9px 16px;
    font-size: 0.85rem;
    color: #e0e7ff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.28), rgba(139, 92, 246, 0.28));
    border-top: 1px solid rgba(129, 140, 248, 0.35);
    border-bottom: 1px solid rgba(129, 140, 248, 0.35);
}
.demo-banner a { color: #fff; font-weight: 600; text-decoration: none; }
.demo-banner a:hover { text-decoration: underline; }
.demo-banner[hidden] { display: none; }
.demo-buttons[hidden] { display: none; }
.demo-buttons { margin-bottom: 32px; }
.demo-buttons__grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .demo-buttons__grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== STEPS ===== */
.steps {
    padding: 32px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.step-card {
    position: relative;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.step-card__number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.step-card__icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.step-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
    padding: 40px 0;
}

.upload-zone {
    max-width: 640px;
    margin: 0 auto 32px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 60px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: var(--shadow-glow);
}

.upload-zone__icon {
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.8;
}

.upload-zone__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-zone__subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Demo Buttons */
.demo-buttons {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.demo-buttons__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.demo-buttons__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.demo-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: var(--font);
}

.demo-btn:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.demo-btn__icon { font-size: 1.5rem; }

.demo-btn__text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.demo-btn__text small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Progress */
.progress-container {
    max-width: 640px;
    margin: 40px auto 0;
    animation: fadeIn 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.progress-step.active { color: var(--accent-bright); }
.progress-step.done { color: var(--positive); }

.progress-step__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .progress-step__dot {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    animation: pulse 1.5s infinite;
}

.progress-step.done .progress-step__dot {
    background: var(--positive);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
    transition: width 0.5s ease;
    background-size: 100% 100%;
}

.progress-bar__fill.processing {
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25) 10px,
        transparent 10px,
        transparent 20px
    ), linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    background-size: 28px 28px, 100% 100%;
    animation: moveStripes 1s linear infinite, glowPulse 2s ease-in-out infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 28px 0, 0 0; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px var(--gradient-start); }
    50% { box-shadow: 0 0 20px var(--gradient-end); }
    100% { box-shadow: 0 0 5px var(--gradient-start); }
}

.progress-status {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dots-pulse::after {
    content: '';
    display: inline-block;
    width: 1.2em; /* fixed width so text doesn't jump */
    text-align: left;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* ===== RESULTS ===== */
.results-section {
    padding: 80px 0;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.metric-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metric-card__value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.metric-card__max {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.metric-card__detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Sentiment Bar */
.sentiment-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.sentiment-bar__fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

/* Score Dots */
.score-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.score-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.score-dot.filled {
    background: var(--accent);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.5);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.result-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.result-panel__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.result-panel__header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Transcript */
.transcript-content {
    padding: 20px 24px;
    max-height: 600px;
    overflow-y: auto;
}

.transcript-msg {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.transcript-msg__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.transcript-msg__avatar.manager {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-bright);
}

.transcript-msg__avatar.client {
    background: rgba(6, 182, 212, 0.2);
    color: var(--gradient-alt);
}

.transcript-msg__body {
    flex: 1;
}

.transcript-msg__name {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.transcript-msg__name.manager { color: var(--accent-bright); }
.transcript-msg__name.client { color: var(--gradient-alt); }

.transcript-msg__text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Analysis Panel */
.analysis-panel {
    display: flex;
    flex-direction: column;
}

.analysis-block {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.analysis-block:last-child { border-bottom: none; }

.analysis-block h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.analysis-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.analysis-reasoning {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* Action List */
.action-list {
    list-style: none;
}

.action-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.action-list li:last-child { border-bottom: none; }

.action-list li::before {
    content: '☐';
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

/* CRM Card */
.crm-card {
    background: rgba(99, 102, 241, 0.03);
}

.crm-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.crm-field {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.crm-field__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.crm-field__value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Try Another */
.try-another {
    text-align: center;
    margin-top: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== ERROR BANNER ===== */
.error-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-sm);
    margin: 0 auto 24px;
    max-width: 640px;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: scale(0.95); }
}

.error-banner__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.error-banner__body {
    flex: 1;
}

.error-banner__body strong {
    display: block;
    color: var(--negative);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.error-banner__body p {
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.error-banner__close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: color 0.2s ease;
}

.error-banner__close:hover {
    color: var(--text-primary);
}

/* Demo limit message: the system worked as intended,
   so it should look like information, not like a failure. */
.error-banner--notice {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.35);
}

.error-banner--notice .error-banner__body strong {
    color: var(--accent-bright);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .metrics-row { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: 1fr; }
    .demo-buttons__grid { grid-template-columns: 1fr; }
    .crm-fields { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .metrics-row { grid-template-columns: 1fr; }
}/* ===== CRM HISTORY CARDS ===== */
.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.history-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.history-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.history-card__date {
    font-size: 12px;
    color: var(--text-secondary);
}
.history-card__duration {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
}
.history-card__client {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.history-card__company {
    font-size: 14px;
    color: var(--text-secondary);
}
.history-card__footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}
.badge--score-high { background: rgba(52, 211, 153, 0.15); color: var(--positive); }
.badge--score-mid { background: rgba(251, 191, 36, 0.15); color: var(--neutral); }
.badge--score-low { background: rgba(248, 113, 113, 0.15); color: var(--negative); }
.badge--sentiment-positive { border: 1px solid var(--positive); color: var(--positive); }
.badge--sentiment-neutral { border: 1px solid var(--neutral); color: var(--neutral); }
.badge--sentiment-negative { border: 1px solid var(--negative); color: var(--negative); }

.crm-edit-input {
    width: 100%;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.crm-edit-input:focus {
    border-color: var(--accent);
}

/* ===== DRAWER (SIDEBAR) ===== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-overlay--open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
}
.drawer--open {
    transform: translateX(0);
}
.drawer--expanded {
    width: 1200px;
}

.drawer__detail {
    width: 800px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    padding: 32px;
    overflow-y: auto;
}
.drawer__list {
    width: 400px;
    flex-shrink: 0;
    padding: 32px;
    overflow-y: auto;
    background: var(--bg-secondary);
}

@media (max-width: 1200px) {
    .drawer--expanded {
        width: 100vw;
    }
    .drawer__detail {
        width: calc(100vw - 400px);
    }
}
@media (max-width: 768px) {
    .drawer__detail {
        width: 100vw;
        border-right: none;
    }
    .drawer__list {
        width: 100vw;
    }
    .drawer {
        width: 100vw;
    }
    /* On mobile, when expanded, we slide the content entirely */
    .drawer--expanded {
        justify-content: flex-start;
    }
}

.history-card__summary {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== RECENT CALLS (main page) ===== */
.recent-calls {
    margin-top: 40px;
}
.recent-calls__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.recent-calls__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.recent-calls__link {
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.recent-calls__link:hover {
    color: var(--accent-bright);
}
.recent-calls__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recent-call-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.recent-call-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}
.recent-call-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.recent-call-card__client {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.recent-call-card__meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== NEW COMPACT TITLE STYLES ===== */
.main-title-container {
    text-align: center;
    margin-bottom: 32px;
}
.main-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.main-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    /* Header & Nav */
    .nav {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .nav__actions {
        width: 100%;
        justify-content: center;
    }
    
    /* Upload Section */
    .main-title {
        font-size: 1.8rem;
    }
    .main-subtitle {
        font-size: 0.9rem;
    }
    .upload-zone {
        padding: 32px 16px;
    }
    .upload-zone__icon {
        font-size: 2rem;
    }
    .upload-zone__title {
        font-size: 1rem;
    }
    
    /* Progress */
    .progress-steps {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    /* Steps / How it works */
    .steps {
        padding: 24px 0;
    }
    .steps__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .step-card {
        padding: 16px;
    }
    
    /* Results */
    .metrics-row {
        flex-direction: column;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    /* Recent calls */
    .recent-call-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .recent-calls__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
