/*
Theme Name: CVCrafter Theme
Theme URI: https://cvcrafter.co
Author: CVCrafter
Author URI: https://cvcrafter.co
Description: One-page landing theme for CVCrafter - AI-Powered Resume Optimization app.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cvcrafter-theme
*/

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

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --premium: #8B5CF6;
    --bg: #F9FAFB;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.site-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.site-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-logo .logo-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-700);
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--premium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.btn-appstore:hover {
    background: #000;
    color: var(--white);
    transform: translateY(-1px);
}

.btn-appstore svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.btn-appstore .btn-text-small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1;
}

.btn-appstore .btn-text-big {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.hero-visual {
    flex: 0 0 340px;
    position: relative;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--gray-900);
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05);
    margin: 0 auto;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, #1E40AF 50%, var(--primary-dark) 100%);
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: var(--gray-900);
    border-radius: 0 0 16px 16px;
}

.phone-screen .app-icon-mock {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.phone-screen .app-icon-mock svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

.phone-screen .mock-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.phone-screen .mock-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 24px;
}

.phone-screen .mock-score {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.1);
}

.phone-screen .mock-label {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.phone-screen .mock-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
}

.phone-screen .mock-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    overflow: hidden;
}

.phone-screen .mock-bar-fill {
    height: 100%;
    border-radius: 4px;
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

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

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 32px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.feature-icon.green {
    background: #D1FAE5;
    color: var(--success);
}

.feature-icon.purple {
    background: #EDE9FE;
    color: var(--premium);
}

.feature-icon.amber {
    background: #FEF3C7;
    color: var(--warning);
}

.feature-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--gray-50);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}

.step {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

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

.step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing {
    padding: 100px 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card.best-value {
    border: 2px solid var(--success);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-card.popular .pricing-badge {
    background: var(--primary);
    color: var(--white);
}

.pricing-card.best-value .pricing-badge {
    background: var(--success);
    color: var(--white);
}

.pricing-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.pricing-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 16px 0 4px;
    letter-spacing: -0.02em;
}

.pricing-price .currency {
    font-size: 20px;
    vertical-align: top;
    line-height: 1.8;
}

.pricing-period {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-600);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-features li svg.check {
    stroke: var(--success);
    fill: none;
    stroke-width: 2;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.pricing-btn.primary {
    background: var(--primary);
    color: var(--white);
}

.pricing-btn.primary:hover {
    background: var(--primary-dark);
}

.pricing-btn.outline {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.pricing-btn.outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.pricing-btn.success {
    background: var(--success);
    color: var(--white);
}

.pricing-btn.success:hover {
    background: #059669;
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--gray-500);
}

.pricing-note svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    fill: none;
    stroke: var(--gray-400);
    stroke-width: 2;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 40px 0;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 14px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    font-size: 14px;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: var(--white);
}

/* ===== LEGAL PAGES (Terms & Privacy) ===== */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-page .container {
    max-width: 760px;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.legal-page .effective-date {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-page h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-page p {
    margin-bottom: 16px;
    color: var(--gray-600);
    line-height: 1.7;
}

.legal-page ul,
.legal-page ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--gray-600);
}

.legal-page li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-page a {
    color: var(--primary);
}

.legal-page strong {
    color: var(--gray-800);
}

/* ===== 404 PAGE ===== */
.error-404 {
    padding: 160px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
}

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

.error-code {
    font-size: 140px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.error-content p {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 32px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.error-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .error-404 {
        padding: 120px 0 80px;
    }

    .error-code {
        font-size: 100px;
    }

    .error-content h1 {
        font-size: 24px;
    }
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        flex: none;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .legal-page {
        padding: 100px 0 60px;
    }

    .legal-page h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }
}
