/* --- VARIÁVEIS --- */
:root {
    --navy: #0b132b;
    --navy-mid: #0f1f40;
    --white: #FFFFFF;
    --light-gray: #F4F6FB;
    --text-color: #293e56;
    --text-light: #5a7184;
    --accent: #0040ff;
    --cyan: #00c8d4;
    --font-headings: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--navy);
    line-height: 1.2;
}

h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
p  { margin-bottom: 1rem; }

section { padding: 72px 0; }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: -20px auto 48px;
    text-align: center;
}

/* --- BADGE --- */
.badge {
    display: inline-block;
    background: rgba(0, 200, 212, 0.18);
    color: var(--cyan);
    border: 1px solid rgba(0, 200, 212, 0.35);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.badge-dark {
    background: rgba(0, 64, 255, 0.12);
    color: var(--accent);
    border-color: rgba(0, 64, 255, 0.25);
}

/* --- HEADER --- */
header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #e4e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.04em;
}

/* --- BOTÃO CTA --- */
.cta-button {
    background-color: var(--accent);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    display: inline-block;
    letter-spacing: 0.02em;
}

.cta-button:hover {
    background-color: #0035d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 64, 255, 0.35);
}

.header-button {
    font-size: 0.88rem;
    padding: 10px 22px;
}

/* --- HERO --- */
#hero {
    background-color: var(--navy);
    background-image:
        radial-gradient(ellipse at 70% 50%, rgba(0, 64, 255, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 80%, rgba(0, 200, 212, 0.1) 0%, transparent 50%);
    color: var(--white);
    text-align: center;
    padding: 96px 0 80px;
}

#hero h2 {
    color: var(--white);
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

#hero p {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 36px;
    opacity: 0.85;
    line-height: 1.7;
}

/* Cursor da digitação */
#hero-title::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--cyan);
}

#hero-title.typing-finished::after {
    content: '';
    animation: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* --- MÉTRICAS --- */
#metrics {
    background-color: var(--navy-mid);
    padding: 40px 0;
}

.metrics-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.metric-item {
    flex: 1;
    text-align: center;
    padding: 20px 24px;
}

.metric-number {
    display: block;
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}

.metric-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

/* --- PROBLEMA --- */
#problem {
    background-color: var(--light-gray);
    text-align: center;
    padding-bottom: 20px;
}

#problem h3 {
    margin-bottom: 40px;
}

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

.problem-item {
    background: var(--white);
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.problem-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.problem-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.solution-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy);
    margin: 0;
}

/* --- SERVIÇOS --- */
#services {
    text-align: center;
    background-color: var(--white);
    padding-top: 20px;
    padding-bottom: 20px;
}

#services h2 {
    margin-bottom: 32px;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: left;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 32px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border: 1px solid #eaeff8;
    border-top: 3px solid var(--accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 64, 255, 0.1);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.service-card h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--navy);
}

.service-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.97rem;
    line-height: 1.65;
}

/* --- DEPOIMENTOS --- */
#testimonials {
    background-color: var(--navy);
    background-image: radial-gradient(ellipse at 80% 20%, rgba(0, 200, 212, 0.07) 0%, transparent 50%);
    text-align: center;
}

#testimonials h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.testimonials-subtitle {
    color: rgba(255,255,255,0.55);
    margin-bottom: 52px;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-left: 3px solid var(--cyan);
    border-radius: 10px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background 0.25s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.testimonial-result {
    display: inline-block;
    background: rgba(0, 200, 212, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(0, 200, 212, 0.3);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    align-self: flex-start;
}

.testimonial-card blockquote {
    font-style: italic;
    color: rgba(255,255,255,0.85);
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
    border: none;
    padding: 0;
    flex-grow: 1;
}

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

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

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

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

/* --- FINAL CTA --- */
#final-cta {
    background-color: var(--light-gray);
    text-align: center;
}

#final-cta h2 {
    margin-bottom: 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

#final-cta p {
    max-width: 560px;
    margin: 0 auto 32px;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 28px 0;
}

.footer-logo {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    opacity: 0.9;
}

footer p:last-child {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.45;
}

/* --- BOTÃO VOLTAR AO TOPO --- */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--accent);
    color: var(--white);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 64, 255, 0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: scale(1.1);
}

/* --- ANIMAÇÃO DE ENTRADA --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.5rem; }

    #hero { padding: 72px 0 60px; }
    #hero h2 { font-size: 2.2rem; }

    header .container {
        flex-direction: column;
        gap: 14px;
    }

    .metrics-grid {
        flex-direction: column;
        gap: 16px;
    }

    .metric-divider {
        width: 60px;
        height: 1px;
    }

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

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

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