/* ========================================
   ResumeFWD - Graphite Editorial Design System
   ======================================== */

/* === CSS Variables === */
:root {
    /* Colors - Graphite Palette */
    --bg-primary: #1c1c1e;
    --bg-secondary: #27272a;
    --bg-tertiary: #3f3f46;
    --bg-card: rgba(255, 255, 255, 0.02);

    --text-primary: #ffffff;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;

    /* Accent - Cyan */
    --accent: #06b6d4;
    --accent-dark: #083344;
    --accent-glow: rgba(6, 182, 212, 0.15);

    --accent-gradient: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    --accent-gradient-h: linear-gradient(90deg, #a1a1aa, #fff);

    --border-primary: rgba(255, 255, 255, 0.05);
    --border-secondary: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 48px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* === Gradient Text === */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Accessibility === */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Focus visible indicators */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Button focus states */
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

/* Link focus states */
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Input focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-primary: rgba(255, 255, 255, 0.3);
        --border-secondary: rgba(255, 255, 255, 0.5);
    }
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 48px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 16px 48px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: var(--accent-gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-accent {
    background: var(--accent-gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    padding-right: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-cta svg {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.hero-bg {
    display: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    margin-bottom: 32px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-primary);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    background: var(--border-primary);
}

.hero-visual {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual::before {
    content: 'RESUME';
    font-size: 10rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(-90deg);
    position: absolute;
}

.floating-card {
    display: none;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.btn-large {
    padding: 18px 40px;
    font-size: 0.9rem;
}

/* === Features Overview === */
.features-overview {
    padding: 0;
    border-top: 1px solid var(--border-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    padding: 48px 32px;
    text-align: left;
    border-right: 1px solid var(--border-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.feature-card:last-child {
    border-right: none;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

/* === Section Styling === */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* === Templates Section === */
.templates-section {
    background: var(--bg-primary);
}

.templates-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--bg-primary);
    background: var(--accent);
    border-color: var(--accent);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.template-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
}

.template-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.template-badge.free {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}

.template-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.template-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.template-preview {
    height: 240px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-info {
    padding: 16px;
}

.template-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.template-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.template-preview-img {
    height: 240px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.template-preview-img .preview-content {
    width: 100%;
    height: 100%;
    transform: scale(1);
    transition: var(--transition-normal);
}

.template-card:hover .preview-content {
    transform: scale(1.02);
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition-normal);
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-overlay .btn {
    min-width: 140px;
}

.template-overlay .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.templates-cta {
    margin-top: 48px;
    text-align: center;
}

.privacy-note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.privacy-note svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* === Job Matcher Section === */
.matcher-section {
    background: var(--bg-secondary);
}

.matcher-container {
    max-width: 1000px;
    margin: 0 auto;
}

.matcher-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.input-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.panel-icon {
    font-size: 1.25rem;
}

.panel-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    flex: 1;
}

.fetch-jobs-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.fetch-jobs-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.input-panel textarea {
    width: 100%;
    height: 300px;
    padding: 20px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.6;
    resize: none;
}

.input-panel textarea::placeholder {
    color: var(--text-secondary);
}

.panel-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-primary);
}

.char-count {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.matcher-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 1rem;
}

.match-results {
    margin-top: 40px;
}

/* === Analyzer Section === */
.analyzer-section {
    background: var(--bg-primary);
}

.analyzer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.analyzer-upload {
    display: flex;
    flex-direction: column;
}

.upload-zone {
    background: var(--bg-card);
    border: 2px dashed var(--border-secondary);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 16px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(6, 182, 212, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.upload-icon svg {
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}

.upload-zone h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.upload-zone p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-formats {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.upload-zone-small {
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.upload-icon-small {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.analyzer-upload textarea {
    flex: 1;
    width: 100%;
    min-height: 200px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.6;
    resize: none;
    margin-bottom: 16px;
}

.analyzer-upload textarea::placeholder {
    color: var(--text-secondary);
}

.analyzer-results {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 32px;
    min-height: 400px;
}

.analyzer-results:has(.results-placeholder) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-placeholder,
.cl-placeholder {
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.results-placeholder h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.results-placeholder p,
.cl-placeholder p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Analysis Results Styling */
.analysis-results {
    width: 100%;
}

.overall-score {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.1));
    border-radius: 12px;
    margin-bottom: 24px;
}

.overall-score-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.overall-score-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.overall-score-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.analysis-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 16px 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.category-name .icon {
    font-size: 1.1rem;
}

.category-score {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.category-score.good {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.category-score.medium {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.category-score.poor {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.category-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.category-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.category-bar-fill.good {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.category-bar-fill.medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.category-bar-fill.poor {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.category-feedback {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* === Cover Letter Section === */
.cover-letter-section {
    background: var(--bg-secondary);
}

.cover-letter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.cl-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cl-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cl-input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.cl-input-group input,
.cl-input-group textarea {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.cl-input-group input:focus,
.cl-input-group textarea:focus {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.cl-input-group input::placeholder,
.cl-input-group textarea::placeholder {
    color: var(--text-secondary);
}

.cl-input-group textarea {
    min-height: 100px;
    resize: none;
}

.cl-input-group.full-width {
    grid-column: 1 / -1;
}

.cl-style-selector label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.style-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.style-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.style-btn:hover,
.style-btn.active {
    color: var(--bg-primary);
    background: var(--accent);
    border-color: var(--accent);
}

.cl-output {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cl-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.cl-output-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

.cl-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.cl-output-content {
    flex: 1;
    padding: 24px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-placeholder .placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.ai-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 12px;
    line-height: 1.5;
}

.ai-disclosure svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

.ai-disclosure a {
    color: var(--text-muted);
    text-decoration: underline;
}

.ai-disclosure a:hover {
    color: var(--text-primary);
}

.cl-loading {
    text-align: center;
    padding: 40px;
}

.cl-loading p {
    color: var(--text-muted);
    margin-top: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

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

/* === Salary Calculator Section === */
.salary-section {
    background: var(--bg-primary);
}

.salary-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.salary-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.salary-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.salary-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.salary-input-group select {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.salary-input-group select:hover,
.salary-input-group select:focus {
    border-color: var(--accent);
}

.salary-results {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 32px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.salary-result-content {
    width: 100%;
}

.salary-header {
    text-align: center;
    margin-bottom: 24px;
}

.salary-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.salary-location {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.salary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.salary-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.salary-card.salary-median {
    background: linear-gradient(135deg, var(--accent-dark), rgba(6, 182, 212, 0.2));
    border: 1px solid var(--accent);
}

.salary-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.salary-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.salary-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.salary-range-visual {
    padding: 16px 0;
}

.range-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    position: relative;
    margin-bottom: 8px;
}

.range-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--text-muted), var(--accent));
    border-radius: 4px;
}

.range-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.salary-card.small {
    padding: 16px;
}

.salary-value-small {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.salary-tips {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.salary-tips h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.salary-tips ul {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 20px;
    list-style: disc;
}

.salary-tips li {
    margin-bottom: 6px;
}

.salary-note {
    text-align: center;
    margin-top: 40px;
}

.salary-note p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* === CTA Section === */
.cta-section {
    padding: 100px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* === Footer === */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 280px;
}

.footer-column h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
    text-align: center;
}

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

/* === Modals === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.template-preview {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 24px;
    min-height: 400px;
    max-height: 60vh;
    overflow-y: auto;
}

.template-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* === Job Search Modal === */
.job-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input-group {
    display: flex;
    gap: 12px;
    flex: 1;
}

.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-input-group input::placeholder {
    color: var(--text-dim);
}

.job-results {
    min-height: 300px;
}

.jobs-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* === Toast Notifications === */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success {
    border-color: #22c55e;
}

.toast-error {
    border-color: #ef4444;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        padding: 140px 48px 80px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card:nth-child(2) {
        border-right: none;
    }

    .feature-card:nth-child(3),
    .feature-card:nth-child(4) {
        border-top: 1px solid var(--border-primary);
    }

    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .matcher-inputs {
        grid-template-columns: 1fr;
    }

    .matcher-divider {
        transform: rotate(90deg);
    }

    .analyzer-container,
    .cover-letter-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-primary);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero-content {
        padding: 120px 24px 60px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 24px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .feature-card {
        border-right: none;
        border-bottom: 1px solid var(--border-primary);
    }

    .feature-card:last-child {
        border-bottom: none;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .salary-container {
        grid-template-columns: 1fr;
    }

    .example-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* === Resume Examples Pages === */
.page-hero {
    padding: 160px 0 80px;
    background: var(--bg-secondary);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 16px 0;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.examples-section {
    background: var(--bg-primary);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.example-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 32px;
    text-decoration: none;
    transition: var(--transition-normal);
}

.example-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.example-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.example-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.example-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.example-link {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.tips-section {
    background: var(--bg-secondary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.tip-card {
    text-align: center;
    padding: 24px;
}

.tip-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bg-primary);
    margin-bottom: 16px;
}

.tip-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

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

/* Breadcrumbs */
.breadcrumb-section {
    padding: 120px 0 20px;
    background: var(--bg-secondary);
}

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

.breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    margin: 0 8px;
}

/* Example Detail Page */
.example-detail-section {
    background: var(--bg-primary);
}

.example-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.resume-preview-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.resume-content {
    padding: 40px;
    color: #1a1a1a;
}

.resume-header {
    text-align: center;
    border-bottom: 2px solid #06b6d4;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.resume-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.resume-title {
    font-size: 1rem;
    color: #06b6d4;
    font-weight: 600;
    margin-bottom: 8px;
}

.resume-contact {
    font-size: 0.8rem;
    color: #666;
}

.resume-section {
    margin-bottom: 24px;
}

.resume-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #06b6d4;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.resume-section p {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
}

.experience-item {
    margin-bottom: 16px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.exp-header strong {
    font-size: 0.95rem;
}

.exp-header span {
    font-size: 0.8rem;
    color: #666;
}

.exp-company {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-bottom: 8px !important;
}

.resume-section ul {
    list-style: disc;
    padding-left: 20px;
}

.resume-section li {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* Tips Sidebar */
.example-tips {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 32px;
    position: sticky;
    top: 100px;
}

.example-tips h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.tip-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-primary);
}

.tip-item:last-of-type {
    border-bottom: none;
}

.tip-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

.tip-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tip-cta {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 24px;
}

.tip-cta h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Related Examples */
.related-section {
    background: var(--bg-secondary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 600px;
    margin: 32px auto 0;
}

.example-card-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.example-card-small:hover {
    border-color: var(--accent);
}

.example-card-small h4 {
    font-size: 0.85rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {

    .examples-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

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

    .example-card-small h4 {
        font-size: 0.75rem;
    }

    .page-title {
        font-size: 2rem;
    }
}