/* ============================================================
   HireTheDev — Landing Page Styles (landing.css)
   ============================================================
   Hero gradient, section spacing, feature cards, pricing table,
   FAQ accordion, smooth scroll, and landing-specific components.
   ============================================================ */

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #312e81 0%, #4338ca 30%, #6366f1 60%, #818cf8 100%);
    color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to top, #f9fafb, transparent);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    animation: slideUp 0.6s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 36rem;
    margin-bottom: 2.5rem;
    animation: slideUp 0.6s ease-out 0.1s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4338ca;
    background-color: #ffffff;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.hero-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #c7d2fe;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-out;
}

/* ── Section Spacing ──────────────────────────────────────── */
.landing-section {
    padding: 5rem 0;
}

.landing-section-alt {
    padding: 5rem 0;
    background-color: #f3f4f6;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6366f1;
    background-color: #eef2ff;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Feature Cards ────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-icon-indigo {
    background-color: #eef2ff;
    color: #6366f1;
}

.feature-icon-emerald {
    background-color: #ecfdf5;
    color: #10b981;
}

.feature-icon-amber {
    background-color: #fffbeb;
    color: #f59e0b;
}

.feature-icon-rose {
    background-color: #fff1f2;
    color: #f43f5e;
}

.feature-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-card-text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ── How It Works (Steps) ─────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 2rem;
    counter-reset: step;
}

.step-card {
    text-align: center;
    position: relative;
    counter-increment: step;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #6366f1;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ── Pricing Table ────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

.pricing-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card-popular {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
    position: relative;
}

.pricing-popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #6366f1;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.pricing-plan-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6b7280;
}

.pricing-period {
    font-size: 1rem;
    color: #9ca3af;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: #374151;
}

.pricing-features li::before {
    content: '\2713';
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
}

.pricing-btn-primary {
    background-color: #6366f1;
    color: #ffffff;
}

.pricing-btn-primary:hover {
    background-color: #4f46e5;
}

.pricing-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.pricing-btn-secondary:hover {
    background-color: #e5e7eb;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s;
}

.testimonial-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    display: flex;
    gap: 0.125rem;
}

.testimonial-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.testimonial-quote {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #6366f1;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.4rem;
    overflow: hidden;
}

.testimonial-avatar svg {
    width: 100%;
    height: 100%;
}

.testimonial-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s;
}

.faq-question:hover {
    color: #6366f1;
}

.faq-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    transition: transform 0.2s ease-in-out;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.7;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 32rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ── Landing Footer ───────────────────────────────────────── */
.landing-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 3rem 0 2rem;
}

.landing-footer a {
    color: #d1d5db;
    transition: color 0.15s;
}

.landing-footer a:hover {
    color: #ffffff;
}

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

.footer-brand-text {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 20rem;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
}

/* ── Landing Navigation ───────────────────────────────────── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

.landing-nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.landing-nav-scrolled .nav-link {
    color: #374151;
}

.landing-nav-scrolled .nav-link:hover {
    color: #6366f1;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.15s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ffffff;
}

/* ── Smooth Scroll ────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 3rem;
    }

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

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .landing-section,
    .landing-section-alt {
        padding: 3rem 0;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 24rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 24rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 36rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
