/* =========================================================
   GuiaChat — Landing
   Paleta: #4A72B2 azul · #F4813F laranja · #D98256 terracota
   Dark theme com acentos coloridos
   ========================================================= */

:root {
    --c-blue:        #4A72B2;
    --c-blue-soft:   #5B8AD1;
    --c-orange:      #F4813F;
    --c-orange-soft: #FF9658;
    --c-terra:       #D98256;
    --c-wa:          #25D366;

    --bg:            #0E1218;
    --bg-elev:       #161B23;
    --bg-card:       #1C232D;
    --bg-card-hi:    #232B37;
    --border:        #2B3441;
    --border-hi:     #3B4754;

    --text:          #E6EAF0;
    --text-soft:     #B5BDC9;
    --text-dim:      #8590A0;

    --radius:        12px;
    --radius-lg:     18px;
    --shadow:        0 10px 30px rgba(0, 0, 0, .35);
    --shadow-hi:     0 18px 40px rgba(74, 114, 178, .25);

    --container-w:   1140px;
    --container-narrow: 780px;

    --font-base:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }

.center { text-align: center; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(14, 18, 24, .82);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.01em;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-orange) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(244, 129, 63, .35);
}
.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(74, 114, 178, .45));
}
.brand-text { color: var(--text); }

.footer-brand .brand { font-size: 18px; margin-bottom: 4px; }

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-desktop a {
    color: var(--text-soft);
    font-size: 14.5px;
    transition: color .2s ease;
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop .nav-cta {
    padding: 8px 16px;
    background: var(--c-orange);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}
.nav-desktop .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(244, 129, 63, .4);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 12px 24px 18px;
    border-top: 1px solid var(--border);
    background: var(--bg-elev);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    padding: 12px 0;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
.nav-mobile a:last-child { border-bottom: 0; color: var(--c-orange-soft); font-weight: 600; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
    text-decoration: none;
    line-height: 1;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-primary {
    background: var(--c-wa);
    color: #fff;
    box-shadow: 0 10px 25px rgba(37, 211, 102, .35);
}
.btn-primary:hover {
    background: #20bd5b;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, .45);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-hi);
}
.btn-secondary:hover {
    border-color: var(--c-wa);
    color: var(--c-wa);
}

.i-wa {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(244, 129, 63, .18), transparent 60%),
        radial-gradient(800px 600px at -10% 100%, rgba(74, 114, 178, .22), transparent 65%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-copy { max-width: 620px; }

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(74, 114, 178, .15);
    border: 1px solid rgba(74, 114, 178, .35);
    color: var(--c-blue-soft);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 22px;
    font-weight: 800;
}
.hero h1 .accent {
    background: linear-gradient(120deg, var(--c-blue-soft) 0%, var(--c-orange-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 17px;
    color: var(--text-soft);
    margin: 0 0 32px;
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}
.hero-ctas.center { justify-content: center; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 13px;
}
.hero-trust .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-dim);
}

/* Phone mock */
.hero-art {
    display: flex;
    justify-content: center;
    align-items: center;
}
.phone-mock {
    width: 320px;
    max-width: 100%;
    background: #0a0d12;
    border: 8px solid #1b232e;
    border-radius: 36px;
    padding: 24px 14px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .03);
    position: relative;
}
.phone-mock::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 5px;
    border-radius: 4px;
    background: #2a323d;
}
.phone-screen {
    background:
        linear-gradient(180deg, #0f1620 0%, #0c111a 100%);
    border-radius: 22px;
    padding: 16px 14px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13.5px;
    max-width: 85%;
    line-height: 1.4;
    word-wrap: break-word;
}
.msg-in {
    align-self: flex-end;
    background: linear-gradient(135deg, #1e3a5f 0%, #244b7a 100%);
    border-bottom-right-radius: 4px;
    color: #d9e6f5;
}
.msg-bot {
    align-self: flex-start;
    background: #1a2129;
    border: 1px solid #252e38;
    border-bottom-left-radius: 4px;
    color: var(--text);
}
.msg-bot strong {
    color: var(--c-orange-soft);
    font-size: 12px;
    display: block;
    margin-bottom: 2px;
}
.msg-bot code {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 8px;
    background: #0c111a;
    border-radius: 6px;
    font-size: 11px;
    color: var(--c-blue-soft);
    word-break: break-all;
}
.msg-typing {
    align-self: flex-start;
    background: #1a2129;
    border: 1px solid #252e38;
    padding: 12px 14px;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    display: inline-flex;
    gap: 4px;
    width: max-content;
}
.msg-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing 1.4s infinite ease-in-out;
}
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes typing {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30%           { opacity: 1;   transform: translateY(-3px); }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
    padding: 90px 0;
    position: relative;
}
.section-dark {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-cta {
    background:
        radial-gradient(900px 400px at 50% 100%, rgba(244, 129, 63, .18), transparent 70%),
        var(--bg);
}

.section-eyebrow {
    display: block;
    font-size: 13px;
    color: var(--c-orange);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.section-eyebrow.center { text-align: center; }

.section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.18;
    letter-spacing: -.015em;
    margin: 0 0 18px;
    font-weight: 700;
}
.section-title.center { text-align: center; }

.section-lead {
    font-size: 17px;
    color: var(--text-soft);
    margin: 0;
}

/* =========================================================
   Features grid
   ========================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 50px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hi);
    background: var(--bg-card-hi);
}
.feature-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--c, var(--c-blue)) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, var(--c-blue)) 40%, transparent);
    font-size: 22px;
    margin-bottom: 14px;
}
.feature-card h4 {
    font-size: 17px;
    margin: 0 0 8px;
    font-weight: 600;
}
.feature-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14.5px;
}

/* =========================================================
   Steps
   ========================================================= */
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 50px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.steps li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}
.step-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-orange) 100%);
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}
.steps h4 {
    font-size: 17px;
    margin: 0 0 8px;
    font-weight: 600;
}
.steps p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14.5px;
}

/* =========================================================
   Audience grid
   ========================================================= */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 50px;
}
.audience-card {
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .2s ease;
}
.audience-card:hover { transform: translateY(-3px); }
.audience-card h4 {
    font-size: 17px;
    margin: 0 0 10px;
    color: var(--c-orange-soft);
    font-weight: 600;
}
.audience-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14.5px;
}

/* =========================================================
   CTA section
   ========================================================= */
.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -.015em;
    margin: 0 0 14px;
    font-weight: 700;
}
.cta-lead {
    font-size: 17px;
    color: var(--text-soft);
    margin: 0 0 32px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    margin-top: 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 36px;
}
.footer-brand p {
    margin: 12px 0 0;
    color: var(--text-dim);
    font-size: 14px;
    max-width: 320px;
}
.footer-col h5 {
    font-size: 13px;
    color: var(--text);
    margin: 0 0 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.footer-col a {
    display: block;
    padding: 5px 0;
    color: var(--text-soft);
    font-size: 14.5px;
    transition: color .2s ease;
}
.footer-col a:hover { color: var(--c-orange-soft); }

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
}

/* =========================================================
   Floating WhatsApp button
   ========================================================= */
.fab-wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--c-wa);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(37, 211, 102, .45);
    z-index: 60;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: pulse-wa 2.6s ease-out infinite;
}
.fab-wa:hover {
    transform: scale(1.06);
    box-shadow: 0 18px 36px rgba(37, 211, 102, .55);
}
.fab-wa svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}
@keyframes pulse-wa {
    0%   { box-shadow: 0 14px 30px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .55); }
    70%  { box-shadow: 0 14px 30px rgba(37, 211, 102, .45), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 14px 30px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================
   Reveal on scroll (progressive enhancement)
   Só esconde se o JS estiver ativo (html.js). Sem JS, tudo visível.
   ========================================================= */
.js .feature-card,
.js .audience-card,
.js .steps li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
.feature-card.is-visible,
.audience-card.is-visible,
.steps li.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .js .feature-card,
    .js .audience-card,
    .js .steps li { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 920px) {
    .hero { padding: 56px 0 40px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-art { order: -1; }
    .phone-mock { transform: scale(.92); }
    .section { padding: 64px 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }
    .hero-trust { font-size: 12px; }
    .btn { padding: 12px 18px; font-size: 14.5px; }
    .btn-lg { padding: 14px 22px; font-size: 15px; }
}

@media (max-width: 480px) {
    .hero-ctas .btn { width: 100%; }
    .hero h1 { font-size: 30px; }
    .fab-wa { width: 52px; height: 52px; right: 16px; bottom: 16px; }
    .fab-wa svg { width: 24px; height: 24px; }
}
