/* ===== Landing Page Styles ===== */

.landing-page {
    padding-top: var(--navbar-height);
}

/* ===== Hero Section ===== */
.hero {
    min-height: calc(100vh - var(--navbar-height));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
    position: relative;
}

/* Professional Background Pattern */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(var(--primary-rgb, 99, 102, 241), 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 70% at 80% 100%, rgba(var(--accent-rgb, 16, 185, 129), 0.06) 0%, transparent 50%);
}

/* Resume Document Decoration */
.resume-decoration {
    position: absolute;
    top: 10%;
    left: 3%;
    width: 100px;
    height: 130px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 65'%3E%3Crect x='2' y='2' width='46' height='61' rx='2' fill='white' stroke='%236366f1' stroke-width='1'/%3E%3Ccircle cx='25' cy='12' r='6' fill='%23e5e7eb'/%3E%3Crect x='8' y='22' width='34' height='2' fill='%236366f1' opacity='0.3'/%3E%3Crect x='8' y='28' width='28' height='1.5' fill='%23e5e7eb'/%3E%3Crect x='8' y='33' width='32' height='1.5' fill='%23e5e7eb'/%3E%3Crect x='8' y='38' width='25' height='1.5' fill='%23e5e7eb'/%3E%3Crect x='8' y='46' width='34' height='2' fill='%2310b981' opacity='0.3'/%3E%3Crect x='8' y='52' width='30' height='1.5' fill='%23e5e7eb'/%3E%3Crect x='8' y='57' width='28' height='1.5' fill='%23e5e7eb'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.15;
    animation: resumeFloat 15s ease-in-out infinite;
}

/* Briefcase decoration */
.career-decoration {
    position: absolute;
    bottom: 20%;
    right: 5%;
    width: 60px;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236366f1'%3E%3Cpath d='M20 7h-4V5a2 2 0 00-2-2h-4a2 2 0 00-2 2v2H4a2 2 0 00-2 2v10a2 2 0 002 2h16a2 2 0 002-2V9a2 2 0 00-2-2zM10 5h4v2h-4V5z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.1;
    animation: careerFloat 12s ease-in-out infinite;
}

@keyframes resumeFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

@keyframes careerFloat {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-20px) rotate(-5deg); }
}

.hero-content {
    max-width: 560px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    margin-bottom: 48px;
}

.hero-cta .btn {
    margin-bottom: 12px;
}

.hero-cta .arrow {
    transition: transform var(--transition-fast);
}

.hero-cta .btn:hover .arrow {
    transform: translateX(4px);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

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

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Hero Preview */
.hero-preview {
    position: relative;
    display: flex;
    justify-content: center;
}

.preview-card {
    position: relative;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 24px;
    transform: rotate(2deg);
    transition: transform var(--transition-normal);
}

.preview-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.preview-resume {
    width: 340px;
    height: 440px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    font-size: 8px;
    padding: 16px;
}

.preview-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--success);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* ===== Features Section ===== */
.features {
    padding: 96px 24px;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 99, 102, 241), 0.1) 0%, rgba(var(--accent-rgb, 16, 185, 129), 0.08) 100%);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px -10px rgba(var(--primary-rgb, 99, 102, 241), 0.3);
}

/* Success checkmark on hover */
.feature-card:hover .feature-icon::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--success, #10b981);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

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

/* ===== Templates Showcase ===== */
.templates-showcase {
    padding: 96px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.template-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.template-preview {
    height: 240px;
    background: var(--bg-tertiary);
    position: relative;
}

/* Mini template previews */
.template-classic-mini {
    background: linear-gradient(180deg, #1e3a5f 0%, #1e3a5f 25%, white 25%);
}

.template-classic-mini::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: repeating-linear-gradient(
        0deg,
        #e5e7eb,
        #e5e7eb 8px,
        transparent 8px,
        transparent 16px
    );
}

.template-modern-mini {
    background: linear-gradient(90deg, #8b5cf6 0%, #8b5cf6 30%, white 30%);
}

.template-modern-mini::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 35%;
    right: 16px;
    bottom: 16px;
    background: repeating-linear-gradient(
        0deg,
        #e5e7eb,
        #e5e7eb 8px,
        transparent 8px,
        transparent 16px
    );
}

.template-minimal-mini {
    background: white;
    border-bottom: 3px solid #10b981;
}

.template-minimal-mini::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e5e7eb;
}

.template-minimal-mini::after {
    content: '';
    position: absolute;
    top: 100px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    background: repeating-linear-gradient(
        0deg,
        #e5e7eb,
        #e5e7eb 8px,
        transparent 8px,
        transparent 16px
    );
}

.template-ats-mini {
    background: white;
}

.template-ats-mini::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: repeating-linear-gradient(
        0deg,
        #374151,
        #374151 2px,
        transparent 2px,
        transparent 6px,
        #e5e7eb,
        #e5e7eb 14px,
        transparent 14px,
        transparent 20px
    );
}

.template-info {
    padding: 16px;
    text-align: center;
}

.template-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.template-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.template-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.template-tag.free {
    background: #dcfce7;
    color: #16a34a;
}

.template-tag.premium {
    background: #fef3c7;
    color: #d97706;
}

/* ===== Pricing Section ===== */
.pricing {
    padding: 96px 24px;
    background: var(--bg-secondary);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    max-width: 360px;
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 32px;
    border: 2px solid var(--border-color);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-header .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-header p {
    color: var(--text-muted);
    margin-top: 8px;
}

.pricing-features {
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-secondary);
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-card .btn {
    width: 100%;
}

/* ===== Partners Section ===== */
.partners {
    padding: 96px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    text-align: center;
}

.partner-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.partner-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.partner-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Final CTA ===== */
.final-cta {
    padding: 96px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    animation: ctaGlow 12s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Top wave */
.final-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23f9fafb' d='M0,60 C360,0 720,100 1080,50 C1260,25 1380,35 1440,60 L1440,0 L0,0 Z'/%3E%3C/svg%3E") top center/cover no-repeat;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.final-cta .btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 64px 24px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    margin-top: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.footer-column a {
    display: block;
    padding: 8px 0;
    color: #94a3b8;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #334155;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Ad Banner ===== */
.ad-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 12px;
    text-align: center;
    z-index: 100;
}

.ad-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ad-placeholder {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: var(--border-radius);
    color: var(--text-muted);
    max-width: 728px;
    margin: 0 auto;
}

.ad-placeholder small {
    display: block;
    margin-top: 4px;
    font-size: 0.625rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-preview {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 48px 24px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .preview-resume {
        width: 280px;
        height: 360px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .partner-links {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .final-cta p {
        font-size: 1rem;
    }
    
    .ad-banner {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .preview-card {
        padding: 16px;
    }
    
    .preview-resume {
        width: 240px;
        height: 300px;
    }
}
