/* ============================================================
   home.css — andrehocsis.com.br
   Premium tech style (inspirado em Vercel / Linear / Stripe).
   Tipografia: Geist Sans + Plus Jakarta Sans (display) + Geist Mono.
   NOTE: fonts e Bootstrap Icons sao carregados via <link> no HTML
   pra paralelizar (eram @import aqui — serializado, ~300ms a mais).
   ============================================================ */

:root {
    /* Background layers */
    --bg:           #0a0a0a;
    --bg-elev-1:    #111111;
    --bg-elev-2:    #1a1a1a;
    --bg-card:      #131313;

    /* Borders sutis */
    --border:       rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* Text */
    --text:         #fafafa;
    --text-muted:   #a0a0a0;
    --text-dim:     #6b7280;

    /* Brand */
    --brand:        #DC2626;
    --brand-hover:  #B91C1C;
    --brand-glow:   rgba(220, 38, 38, 0.18);
    --brand-from:   #DC2626;
    --brand-to:     #F97316;

    /* Sizing */
    --radius-sm:    6px;
    --radius:       10px;
    --radius-lg:    16px;
    --radius-xl:    24px;
    --max-content:  1200px;

    /* Type */
    --font-sans:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);
    --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s; }

.container { max-width: var(--max-content); margin: 0 auto; padding: 0 24px; }

/* Header */
.ah-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.ah-header__inner {
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; max-width: var(--max-content); margin: 0 auto; padding: 0 24px;
}
.ah-brand {
    font-family: var(--font-display);
    font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
    color: var(--text); display: inline-flex; align-items: center; gap: 8px;
}
.ah-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 14px var(--brand-glow); }
.ah-nav { display: flex; align-items: center; gap: 4px; }
.ah-nav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; font-weight: 500; }
.ah-nav a:hover { color: var(--text); background: var(--bg-elev-1); }
.ah-nav .ah-cta {
    margin-left: 8px; color: var(--text); background: var(--bg-elev-2);
    border: 1px solid var(--border-strong); padding: 8px 14px;
}
.ah-nav .ah-cta:hover { background: var(--brand); border-color: var(--brand); }

/* Buttons */
.ah-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
    border-radius: var(--radius); transition: all 0.15s;
    cursor: pointer; border: 1px solid transparent; line-height: 1;
}
.ah-btn--primary { background: var(--text); color: var(--bg); }
.ah-btn--primary:hover { background: #fff; transform: translateY(-1px); }
.ah-btn--brand {
    background: var(--brand); color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 8px 24px -8px var(--brand-glow);
}
.ah-btn--brand:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 12px 32px -8px var(--brand-glow); }
.ah-btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.ah-btn--ghost:hover { background: var(--bg-elev-1); border-color: var(--text); }
.ah-btn--lg { padding: 14px 26px; font-size: 15px; }

/* Hero */
.ah-hero { position: relative; padding: 100px 0 80px; overflow: hidden; }
.ah-hero::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); width: 100%; height: 600px;
    background: radial-gradient(ellipse 800px 400px at center top, var(--brand-glow), transparent 70%);
    pointer-events: none; z-index: 0;
}
.ah-hero .container { position: relative; z-index: 1; }
.ah-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 8px; background: var(--bg-elev-1);
    border: 1px solid var(--border); border-radius: 999px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 28px;
}
.ah-pill .ah-pill__badge {
    background: var(--brand); color: #fff; padding: 3px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.ah-hero h1 {
    font-family: var(--font-display);
    font-weight: 800; font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 24px; max-width: 880px;
}
.ah-hero h1 .gradient {
    background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ah-hero p.lead {
    font-size: 18px; color: var(--text-muted); max-width: 640px;
    line-height: 1.6; margin: 0 0 36px;
}
.ah-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Trust strip */
.ah-trust { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--border); }
.ah-trust__label { text-align: center; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.ah-trust__items { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.ah-trust__items span { display: inline-flex; align-items: center; gap: 6px; }
.ah-trust__items span i { color: var(--brand); font-size: 16px; }

/* Sections common */
.ah-section { padding: 100px 0; }
.ah-section--tight { padding: 60px 0; }
.ah-section__eyebrow {
    display: inline-block; color: var(--brand); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.ah-section__title {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(28px, 4vw, 44px); line-height: 1.08;
    letter-spacing: -0.03em; margin: 0 0 16px; max-width: 720px;
}
.ah-section__lead { font-size: 17px; color: var(--text-muted); max-width: 600px; line-height: 1.6; margin: 0; }
.ah-section__header { margin-bottom: 48px; }

/* Services (4 pilares) */
.ah-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ah-service {
    padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-elev-1), var(--bg));
    transition: border-color 0.2s, transform 0.2s;
}
.ah-service:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.ah-service__icon {
    width: 40px; height: 40px; border-radius: var(--radius); background: var(--bg-elev-2);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    font-size: 18px; color: var(--brand); border: 1px solid var(--border);
}
.ah-service h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.3; }
.ah-service p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0; }

/* Portfolio (SaaS cards) */
.ah-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ah-product {
    position: relative; padding: 28px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--bg-card);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column; gap: 16px;
    min-height: 240px; overflow: hidden;
}
.ah-product:hover {
    border-color: var(--border-strong); transform: translateY(-2px);
    box-shadow: 0 12px 40px -16px rgba(0,0,0,0.6);
}
.ah-product__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ah-product__logo {
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--bg-elev-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--brand); flex-shrink: 0;
}
.ah-product__badge {
    font-size: 11px; font-weight: 600; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 3px 8px; border-radius: 999px;
    background: var(--bg-elev-1); border: 1px solid var(--border);
}
.ah-product__badge--live { color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.ah-product__badge--beta { color: #facc15; border-color: rgba(250, 204, 21, 0.3); }
.ah-product h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.ah-product p { flex: 1; color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0; }
.ah-product__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); margin-top: auto; }
.ah-product__link i { transition: transform 0.15s; }
.ah-product:hover .ah-product__link i { transform: translateX(3px); }

/* Cases */
.ah-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ah-case { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev-1); }
.ah-case__client { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 10px; }
.ah-case h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.ah-case p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* About + Quote */
.ah-about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.ah-about h2 { margin-bottom: 24px; }
.ah-about__text p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.ah-about__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.ah-about__stat .num { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; }
.ah-about__stat .lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.ah-quote {
    padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-elev-2)); position: relative;
}
.ah-quote::before {
    content: '"'; position: absolute; top: 12px; left: 24px;
    font-family: var(--font-display); font-size: 80px; line-height: 1;
    color: var(--brand); opacity: 0.25;
}
.ah-quote blockquote {
    font-family: var(--font-display); font-size: 19px; font-weight: 600;
    line-height: 1.45; letter-spacing: -0.01em;
    margin: 24px 0 16px; position: relative; z-index: 1;
}
.ah-quote cite { font-style: normal; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* Blog teaser */
.ah-blog-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.ah-bt-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev-1); transition: border-color 0.2s, transform 0.2s; }
.ah-bt-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.ah-bt-card .date { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.ah-bt-card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 8px; }
.ah-bt-card h4 a { color: var(--text); }
.ah-bt-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* CTA banner */
.ah-cta-banner {
    padding: 60px 48px; border-radius: var(--radius-xl);
    background: radial-gradient(ellipse 600px 200px at 20% 50%, var(--brand-glow), transparent 70%), var(--bg-elev-1);
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.ah-cta-banner h2 {
    font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px);
    font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.15;
}
.ah-cta-banner p { color: var(--text-muted); font-size: 16px; margin: 0; max-width: 420px; }
.ah-cta-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* Footer */
.ah-footer { border-top: 1px solid var(--border); padding: 60px 0 32px; margin-top: 80px; }
.ah-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.ah-footer__brand p { color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 320px; }
.ah-footer__col h5 { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin: 0 0 16px; }
.ah-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ah-footer__col a { color: var(--text-muted); font-size: 14px; }
.ah-footer__col a:hover { color: var(--text); }
.ah-footer__bottom {
    border-top: 1px solid var(--border); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-dim); font-size: 13px; flex-wrap: wrap; gap: 12px;
}

/* Lead form */
.ah-lead-form-wrap { max-width: 720px; margin: 0 auto; }
.ah-lead-form {
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-card));
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.ah-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ah-form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.ah-form-row .ah-form-field { margin-bottom: 0; }
.ah-form-field label {
    font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px;
    letter-spacing: -0.005em;
}
.ah-form-field label .req { color: var(--brand); }
.ah-form-field input,
.ah-form-field select,
.ah-form-field textarea {
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.ah-form-field input:focus,
.ah-form-field select:focus,
.ah-form-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.ah-form-field textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.ah-form-field select { cursor: pointer; }
.ah-honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ah-form-actions {
    display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
}
.ah-form-actions .ah-btn { flex: 1; justify-content: center; }
.ah-form-disclaimer {
    margin-top: 20px; font-size: 13px; color: var(--text-dim);
    text-align: center; display: flex; align-items: center; gap: 6px;
    justify-content: center;
}
.ah-form-disclaimer i { color: var(--brand); }

.ah-lead-success {
    padding: 60px 36px; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-card));
    max-width: 720px; margin: 0 auto;
}
.ah-lead-success__icon { font-size: 64px; color: #4ade80; margin-bottom: 16px; }
.ah-lead-success h3 {
    font-family: var(--font-display); font-size: 28px;
    font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px;
}
.ah-lead-success p { color: var(--text-muted); font-size: 16px; margin: 0; max-width: 420px; margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
    .ah-lead-form { padding: 24px; }
    .ah-form-row { grid-template-columns: 1fr; gap: 0; }
    .ah-form-actions .ah-btn { width: 100%; flex: none; }
}

/* WhatsApp float */
.ah-wa {
    position: fixed; bottom: 24px; right: 24px; z-index: 100;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}
.ah-wa:hover { transform: scale(1.08); }

/* Reveal animation */
.ah-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.ah-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .ah-services { grid-template-columns: repeat(2, 1fr); }
    .ah-portfolio { grid-template-columns: repeat(2, 1fr); }
    .ah-cases { grid-template-columns: repeat(2, 1fr); }
    .ah-blog-teaser { grid-template-columns: repeat(2, 1fr); }
    .ah-about { grid-template-columns: 1fr; gap: 40px; }
    .ah-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .ah-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .ah-hero { padding: 60px 0 40px; }
    .ah-section { padding: 60px 0; }
    .ah-nav { display: none; }
    .ah-nav .ah-cta { display: inline-flex; }
    .ah-services, .ah-portfolio, .ah-cases, .ah-blog-teaser { grid-template-columns: 1fr; }
    .ah-cta-banner { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
    .ah-cta-banner__actions { width: 100%; }
    .ah-cta-banner__actions .ah-btn { flex: 1; justify-content: center; }
    .ah-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .ah-footer__bottom { flex-direction: column; text-align: center; }
}
