/* ========================================
   JobAce Landing Page — style.css
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:     #1a237e;
    --primary-mid: #283593;
    --accent:      #2196f3;
    --accent-dark: #1565c0;
    --green:       #00c853;
    --gold:        #ffc107;
    --white:       #ffffff;
    --light:       #f5f7ff;
    --gray-light:  #eef0f8;
    --gray:        #6b7280;
    --dark:        #111827;
    --radius:      12px;
    --shadow:      0 4px 24px rgba(26, 35, 126, 0.10);
    --shadow-lg:   0 8px 40px rgba(26, 35, 126, 0.16);
    --transition:  0.25s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(33, 150, 243, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

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

.section-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 12px auto 0;
    font-size: 1.05rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 35, 126, 0.97);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-cta {
    background: var(--gold);
    color: var(--primary) !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700 !important;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--accent-dark) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero p.lead {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-mockup {
    position: relative;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow de fundo */
.hero-mockup::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 60px;
    background: rgba(33, 150, 243, 0.25);
    filter: blur(32px);
    border-radius: 50%;
    pointer-events: none;
}

.phone-stack {
    position: relative;
    width: 310px;
    height: 420px;
}

.phone {
    position: absolute;
    border-radius: 26px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.22);
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Screenshot traseira esquerda */
.phone-back {
    width: 168px;
    height: 336px;
    top: 44px;
    left: 0;
    z-index: 1;
    transform: rotate(-10deg);
    opacity: 0.78;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

/* Screenshot traseira direita */
.phone-mid {
    width: 164px;
    height: 326px;
    top: 50px;
    left: 148px;
    z-index: 2;
    transform: rotate(9deg);
    opacity: 0.78;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

/* Screenshot principal — frente e centro */
.phone-front {
    width: 198px;
    height: 396px;
    top: 12px;
    left: 56px;
    z-index: 3;
    box-shadow: 0 28px 64px rgba(0,0,0,0.55);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: #e6ac00;
    border-color: #e6ac00;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-dark:hover {
    background: var(--primary-mid);
    border-color: var(--primary-mid);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---------- How it works ---------- */
.how-it-works {
    background: var(--light);
}

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

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    opacity: 0.2;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.step-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--transition);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(26,35,126,0.08), rgba(33,150,243,0.12));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ---------- Audience ---------- */
.audience {
    background: var(--light);
}

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

.audience-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}

.audience-item .check {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.audience-item p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 4px 0 0;
}

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 780px;
    margin: 0 auto;
}

.price-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    transition: all var(--transition);
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.price-card.featured::before {
    content: 'Mais popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin: 12px 0 4px;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
}

.price-desc {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

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

.price-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
    color: var(--gray);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- Testimonials ---------- */
.testimonials {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    color: var(--white);
}

.testimonials .section-header h2 {
    color: var(--white);
}

.testimonials .section-header p {
    color: rgba(255,255,255,0.75);
}

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

.testimonial-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(10px);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.testimonial-card p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--white);
}

.author-info span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ---------- FAQ ---------- */
.faq {
    background: var(--light);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--gray-light);
}

.faq-question .icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform var(--transition);
    color: var(--accent);
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--gray);
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 36px;
}

/* ---------- Footer ---------- */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    padding: 52px 20px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto 40px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-codertec {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-codertec a {
    color: var(--gold);
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

.footer-bottom a {
    color: rgba(255,255,255,0.55);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-mockup {
        height: 300px;
    }

    .phone-stack {
        width: 240px;
        height: 280px;
    }

    .phone-front {
        width: 150px;
        height: 300px;
        top: 10px;
        left: 45px;
    }

    .phone-back {
        width: 126px;
        height: 252px;
        top: 34px;
        left: 0;
    }

    .phone-mid {
        width: 122px;
        height: 244px;
        top: 38px;
        left: 114px;
    }

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

    .steps-grid::before {
        display: none;
    }

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

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

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    section {
        padding: 56px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

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

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

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

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

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