:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #eef2ff;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0ea5e9 100%);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: rotate(20deg);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 150%;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.2; }
.hero-title .highlight {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79,70,229,0.3);
    color: #fff;
}
.btn-outline-custom {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.3s;
}
.btn-outline-custom:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: translateY(-2px);
    color: var(--primary);
}

/* Cards */
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--primary);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Template Cards */
.template-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.template-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.template-preview {
    height: 280px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}
.template-preview::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.02));
}
.template-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* Stats */
.stat-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
}

/* Navbar */
.navbar-main {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    text-decoration: none;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.category-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
}
.category-tab:hover, .category-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Pricing */
.pricing-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s;
    height: 100%;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(79,70,229,0.2);
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}
.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Resume Editor */
.editor-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    min-height: calc(100vh - 60px);
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}
.editor-canvas {
    background: #e2e8f0;
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}
.resume-preview {
    background: #fff;
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}
.form-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.form-section-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Forms */
.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 30px;
}
.footer a { color: #94a3b8; text-decoration: none; }
.footer a:hover { color: #fff; }

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Category Card */
.cat-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: block;
}
.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    color: var(--text);
}
.cat-icon {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}
