/* Root Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Navigation */
.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav .back-btn {
    color: var(--text-secondary);
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    margin-left: 8px;
}

.nav .back-btn:hover {
    color: var(--primary-color);
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover span {
    background: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav a {
        padding: 12px 16px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav .back-btn {
        margin-left: 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(96, 165, 250, 0.28), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(167, 139, 250, 0.24), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #172554 48%, #312e81 100%);
    color: white;
    padding: 88px 0 112px;
}

.hero::after {
    position: absolute;
    right: -120px;
    bottom: -220px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 72px;
    align-items: center;
}

.hero-content {
    display: block;
    max-width: 680px;
    margin: 0;
    padding: 0;
    text-align: left;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 12px;
    border: 1px solid rgba(147, 197, 253, 0.32);
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.28);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-eyebrow span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #22c55e;
    color: #052e16;
}

.hero-title {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(42px, 5.2vw, 66px);
    font-weight: 750;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.hero-title span {
    color: #93c5fd;
}

.hero-subtitle {
    max-width: 620px;
    margin-bottom: 30px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn-primary {
    background: #fff;
    color: #1e3a8a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.hero-btn-secondary {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bfdbfe;
    font-size: 13px;
}

.hero-proof {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(16px);
}

.hero-proof-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.proof-kicker {
    display: block;
    margin-bottom: 5px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-proof h2 {
    max-width: 340px;
    font-size: 21px;
    line-height: 1.35;
}

.proof-pill {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    font-size: 11px;
    font-weight: 700;
}

.proof-list {
    display: grid;
    gap: 14px;
    margin: 0 0 26px;
    list-style: none;
}

.proof-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.proof-list li > span {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    background: rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
    font-weight: 800;
}

.proof-list strong,
.proof-list small {
    display: block;
}

.proof-list strong {
    margin-bottom: 2px;
    font-size: 14px;
}

.proof-list small {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 13px;
    background: rgba(15, 23, 42, 0.34);
}

.stat strong {
    margin-bottom: 3px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.stat span {
    color: #bfdbfe;
    font-size: 10px;
    line-height: 1.35;
}

/* Upload Section */
.upload-section {
    position: relative;
    z-index: 2;
    padding: 0 0 72px;
}

.portfolio-import-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    max-width: 900px;
    margin: -54px auto 28px;
    padding: 24px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
    box-shadow: 0 14px 38px rgba(30, 64, 175, 0.12);
}

.portfolio-import-card[hidden] { display: none; }
.portfolio-import-card h2 { margin: 4px 0 7px; font-size: 1.25rem; }
.portfolio-import-card p { margin: 0; color: #475569; font-size: 0.86rem; }
.portfolio-import-kicker { color: #1d4ed8; font-size: 0.7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-bullet-list { grid-column: 1 / -1; display: grid; gap: 8px; }
.portfolio-bullet { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; background: #fff; color: #334155; font-size: .8rem; }
.portfolio-bullet button { flex: 0 0 auto; border: 0; color: #1d4ed8; background: transparent; font: inherit; font-size: .72rem; font-weight: 750; cursor: pointer; }

.upload-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: -48px auto 0;
    border: 1px solid rgba(203, 213, 225, 0.7);
}

.upload-header {
    text-align: center;
    margin-bottom: 32px;
}

.upload-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.upload-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.upload-area {
    border: 2px dashed #bfdbfe;
    border-radius: var(--radius-md);
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.upload-area:hover,
.upload-area:focus-visible {
    border-color: var(--primary-color);
    background: #eff6ff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    background-color: rgba(37, 99, 235, 0.05);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.upload-area h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.upload-area p {
    color: var(--text-secondary);
    margin: 12px 0;
}

.upload-hint {
    font-size: 13px !important;
    color: var(--text-light) !important;
    margin-top: 20px !important;
}

/* Role Selector */
.role-selector {
    margin: 0 0 30px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.role-selector label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.role-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.role-select:hover {
    border-color: var(--primary-color);
}

.role-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.custom-role-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    transition: all 0.2s;
}

.custom-role-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.job-match-panel {
    margin-bottom: 30px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    background: #f8fbff;
}

.job-match-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.job-match-toggle h3 {
    margin-bottom: 3px;
    font-size: 16px;
}

.job-match-toggle h3 span,
.optional-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.job-match-toggle p,
.job-match-fields p {
    color: var(--text-secondary);
    font-size: 13px;
}

.switch-label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.switch-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.job-match-fields {
    padding: 20px;
    border-top: 1px solid #dbeafe;
}

.job-match-fields[hidden],
.job-match-results[hidden] {
    display: none;
}

.job-match-fields label {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 700;
}

.job-match-fields input,
.job-match-fields textarea {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-primary);
    font: inherit;
}

.job-match-fields textarea {
    min-height: 170px;
    resize: vertical;
}

.job-match-fields input:focus,
.job-match-fields textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.job-match-fields textarea[aria-invalid="true"] {
    border-color: var(--danger-color);
}

.privacy-note {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin: -3px 0 0;
    padding: 10px 12px;
    border-radius: 7px;
    background: #ecfdf5;
    color: #166534 !important;
}

.field-error {
    min-height: 20px;
    margin-top: 7px;
    color: #b91c1c !important;
    font-weight: 600;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-icon {
    font-size: 32px;
}

.file-meta {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    font-size: 16px;
}

.file-size {
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-actions {
    text-align: center;
    margin-top: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-icon {
    font-size: 18px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    padding: 60px 0;
}

/* Missing Sections Card */
.missing-sections-card {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.alert-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.missing-sections-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.missing-section-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.missing-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.priority-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.priority-high {
    background: rgba(255, 255, 255, 0.3);
}

.priority-medium {
    background: rgba(255, 255, 255, 0.2);
}

.priority-low {
    background: rgba(255, 255, 255, 0.1);
}

.missing-section-item strong {
    font-size: 16px;
}

.missing-section-item p {
    font-size: 14px;
    opacity: 0.95;
    margin: 0;
}

.score-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.score-header h3 {
    font-size: 28px;
    font-weight: 700;
}

.score-header-actions {
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.score-ring {
    transform: rotate(-90deg);
}

.score-ring-background {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 12;
}

.score-ring-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1s ease-out, stroke 0.3s ease;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.score-max {
    font-size: 24px;
    color: var(--text-secondary);
}

.score-verdict {
    flex: 1;
    max-width: 400px;
}

.score-verdict h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.score-verdict p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Job-description matching */
.job-match-results {
    margin-bottom: 40px;
    padding: 32px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.job-match-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.result-kicker {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.job-match-result-header h3 {
    margin-bottom: 5px;
    font-size: 24px;
}

.job-match-result-header p:not(.result-kicker),
.heuristic-note {
    color: var(--text-secondary);
    font-size: 14px;
}

.match-score {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
}

.match-score strong {
    color: var(--primary-color);
    font-size: 36px;
    line-height: 1;
}

.match-score span {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 11px;
}

.match-meter {
    height: 11px;
    overflow: hidden;
    margin: 22px 0 10px;
    border-radius: 999px;
    background: var(--bg-tertiary);
}

.match-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #10b981);
    transition: width .6s ease-out;
}

.heuristic-note {
    margin-bottom: 24px;
}

.term-columns,
.evidence-guidance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.term-columns > div,
.evidence-guidance > div {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.term-columns h4,
.evidence-guidance h4 {
    margin-bottom: 12px;
    font-size: 15px;
}

.term-columns h4 span {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.term-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    list-style: none;
}

.term-list li {
    max-width: 100%;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.term-list.matched li {
    background: #dcfce7;
    color: #166534;
}

.term-list.missing li {
    background: #fff7ed;
    color: #9a3412;
}

.term-list .empty-term {
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    font-style: italic;
}

.evidence-guidance {
    margin-top: 20px;
}

.evidence-suggestion {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    color: #334155;
    font-size: 13px;
}

.evidence-suggestion:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.evidence-suggestion strong {
    display: block;
    margin-bottom: 3px;
}

.before-after {
    display: grid;
    gap: 9px;
}

.before-after p {
    padding: 10px;
    border-left: 3px solid var(--warning-color);
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
}

.before-after p + p {
    border-left-color: var(--success-color);
}

.truth-note {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.analysis-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h4 {
    font-size: 18px;
    font-weight: 600;
}

.score-badge {
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 1s ease-out, background-color 0.3s ease;
}

.issue-list {
    list-style: none;
    flex: 1;
    margin-bottom: 0;
}

.issue-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-tertiary);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.issue-list li:last-child {
    border-bottom: none;
}

.issue-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
    margin-top: 6px;
    flex-shrink: 0;
}

.issue-list li.success::before {
    background: var(--success-color);
}

.issue-list li.warning::before {
    background: var(--warning-color);
}

.issue-list li.error::before {
    background: var(--danger-color);
}

.issue-list li.error::before {
    background: var(--danger-color);
}

/* Improvement Actions */
.improvement-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--bg-tertiary);
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-body h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--primary-color);
}

.modal-body pre {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0;
}

.suggestion-box {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    border-left: 4px solid var(--primary-color);
}

.suggestion-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 15px;
}

.suggestion-box p {
    margin: 6px 0;
    font-size: 14px;
}

.suggestion-box .before {
    color: var(--danger-color);
    font-weight: 500;
}

.suggestion-box .after {
    color: var(--success-color);
    font-weight: 500;
}

.verb-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.verb-tag {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.metric-category {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 12px 0;
}

.metric-category strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--text-primary);
}

.metric-category ul {
    margin: 8px 0;
    padding-left: 20px;
}

.metric-category li {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success-color);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-weight: 600;
    font-size: 15px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Recommendations */
.recommendations-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.recommendations-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommendation-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.recommendation-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.recommendation-item p {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.5;
}

.results-actions {
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: #ffffff;
}

.how-it-works .section-title {
    color: var(--text-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    margin-top: 56px;
}

.step {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 24px 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
    border-color: #c7d2fe;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.step h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    margin: 8px 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 64px 0 92px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-title {
        font-size: clamp(38px, 12vw, 50px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-proof {
        padding: 22px;
    }

    .hero-proof-header {
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .score-display {
        flex-direction: column;
        gap: 30px;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .upload-card {
        margin-top: -32px;
        padding: 24px;
    }

    .portfolio-import-card {
        grid-template-columns: 1fr;
        margin-top: -34px;
    }

    .portfolio-bullet-list { grid-column: auto; }

    .upload-area {
        padding: 40px 20px;
    }

    .job-match-toggle,
    .job-match-result-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .match-score {
        align-items: flex-start;
    }

    .term-columns,
    .evidence-guidance {
        grid-template-columns: 1fr;
    }

    @media (max-width: 480px) {
        .container {
            padding: 0 16px;
        }

        .hero-actions,
        .hero-btn {
            width: 100%;
        }

        .hero-privacy {
            align-items: flex-start;
        }

        .upload-area {
            padding: 34px 16px;
        }
    }
    
    .improvement-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .missing-section-header {
        flex-wrap: wrap;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Version History Styles */
.modal-large {
    max-width: 900px;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.version-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.version-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.version-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.version-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

.version-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-score-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.version-delta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.version-delta.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.version-delta.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.version-delta.neutral {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.version-improvements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.improvement-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.improvement-badge.improved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.improvement-badge.declined {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.version-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.version-history-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.version-history-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
/* Examples & Templates Styles */
.action-prompt {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.prompt-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-md);
    color: white;
}

.prompt-header h3 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
}

.prompt-header p {
    color: white;
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
}

.prompt-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.prompt-step {
    display: flex;
    gap: 16px;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    align-items: flex-start;
    transition: all 0.2s;
}

.prompt-step:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

.step-content p {
    margin: 0 0 12px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.prompt-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.prompt-footer p {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-weight: 600;
    font-size: 15px;
}

.example-comparison {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.example-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-before, .example-after {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.example-before {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
}

.example-before strong {
    color: #dc2626;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.example-before p {
    color: #7f1d1d;
    margin: 0;
    line-height: 1.6;
}

.example-after {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid #10b981;
}

.example-after strong {
    color: #059669;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.example-after p {
    color: #064e3b;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.example-insight {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.example-insight strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.example-insight ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.example-insight li {
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-size: 14px;
}