:root {
    --brand: #1e3a8a;
    --brand-2: #3b82f6;
    --accent: #f59e0b;
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #334155;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #475569;
    --grad: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --radius-1: 8px;
    --radius-2: 12px;
    --radius-3: 16px;
    --radius-pill: 9999px;
    --shadow-1: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-2: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-3: 0 16px 48px rgba(0,0,0,0.3);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --step-0: 0.875rem;
    --step-1: 1rem;
    --step-2: 1.125rem;
    --step-3: 1.25rem;
    --step-4: 1.5rem;
    --step-5: 2rem;
    --container: 1200px;
    --font-sans: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    --font-display: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
}

body {
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-5);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: var(--step-4);
    text-decoration: none;
    color: var(--text);
    transition: opacity 200ms;
}

.logo:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: var(--space-5);
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: var(--step-1);
    transition: color 200ms;
}

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

.header-actions {
    display: flex;
    gap: var(--space-3);
}

/* Hero */
.hero {
    padding: var(--space-8) var(--space-5);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--text) 0%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--step-3);
    color: var(--muted);
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.hero-image {
    margin-top: var(--space-8);
    height: 400px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border-radius: var(--radius-3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-mockup {
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-radius: var(--radius-2);
    border: 1px solid var(--border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-2);
    font-size: var(--step-1);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad);
    color: white;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.5);
}

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

.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--brand-2);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--step-2);
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--step-0);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-add {
    padding: var(--space-2) var(--space-3);
    font-size: var(--step-0);
    background: var(--surface-2);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius-1);
    cursor: pointer;
    transition: all 200ms;
}

.btn-add:hover {
    background: var(--surface-2);
    border-color: var(--accent);
}

.btn-remove {
    padding: var(--space-2);
    font-size: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: var(--radius-1);
    cursor: pointer;
    transition: all 200ms;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Features */
.features {
    padding: var(--space-8) var(--space-5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.feature-card {
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    transition: all 200ms;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-2);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(245, 158, 11, 0.1));
    border-radius: var(--radius-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: var(--space-3);
}

.feature-card h3 {
    font-size: var(--step-3);
    margin-bottom: var(--space-2);
}

.feature-card p {
    color: var(--muted);
    font-size: var(--step-1);
}

/* Templates Section */
.templates {
    padding: var(--space-8) var(--space-5);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.section-header p {
    color: var(--muted);
    font-size: var(--step-2);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-5);
}

.template-preview {
    text-decoration: none;
    color: inherit;
    transition: all 200ms;
}

.template-preview:hover {
    transform: translateY(-8px);
}

.template-card {
    aspect-ratio: 9/12;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms;
}

.template-preview:hover .template-card {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.15);
}

.template-demo {
    width: 90%;
    height: 85%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-2);
    overflow: hidden;
    padding: 12px;
}

.demo-header {
    height: 40%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin-bottom: 8px;
}

.demo-body {
    height: 55%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.template-info {
    padding: var(--space-4);
}

.template-info h3 {
    font-size: var(--step-2);
    margin-bottom: var(--space-1);
}

.template-info p {
    color: var(--muted);
    font-size: var(--step-0);
}

/* Steps */
.how {
    padding: var(--space-8) var(--space-5);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.step {
    text-align: center;
    padding: var(--space-6);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--grad);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--step-4);
    font-weight: 700;
    margin: 0 auto var(--space-4);
}

.step h3 {
    font-size: var(--step-3);
    margin-bottom: var(--space-2);
}

.step p {
    color: var(--muted);
}

/* CTA Final */
.cta-final {
    padding: var(--space-8) var(--space-5);
    background: var(--grad);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-2);
    color: white;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--step-2);
    margin-bottom: var(--space-5);
}

.cta-final .btn {
    background: white;
    color: var(--brand);
}

.cta-final .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-8) var(--space-5) var(--space-4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-col h4 {
    font-size: var(--step-2);
    margin-bottom: var(--space-2);
}

.footer-col p,
.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: var(--space-2);
    transition: color 200ms;
}

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

.footer-bottom {
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: var(--space-4);
}

/* Dashboard */
.dashboard-section {
    padding: var(--space-8) var(--space-5);
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.dashboard-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: var(--space-2);
}

.dashboard-header p {
    color: var(--muted);
}

.empty-state {
    text-align: center;
    padding: var(--space-8);
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-3);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    opacity: 0.5;
    color: var(--muted);
}

.empty-state h2 {
    font-size: var(--step-4);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--muted);
    margin-bottom: var(--space-4);
}

/* Resumes Grid */
.resumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.resume-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    overflow: hidden;
    transition: all 200ms;
}

.resume-item:hover {
    border-color: var(--brand-2);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.resume-item-preview {
    aspect-ratio: 9/12;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-mini {
    width: 85%;
    height: 85%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.resume-item-info {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.resume-item-info h3 {
    font-size: var(--step-2);
    margin-bottom: var(--space-1);
}

.template-name {
    color: var(--brand-2);
    font-size: var(--step-0);
    margin-bottom: var(--space-1);
}

.resume-date {
    color: var(--muted);
    font-size: var(--step-0);
}

.resume-item-actions {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--surface-2);
}

.resume-item-actions .btn {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: var(--space-3);
    }

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

    .hero-cta .btn {
        width: 100%;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header .btn {
        width: 100%;
    }

    .nav {
        width: 100%;
        justify-content: space-around;
    }

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

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

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

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}