/* ============================================================
   BASE — Attend.ia.br
   Estilos compartilhados por TODAS as páginas
   - Variáveis de design (cores, fontes, raios)
   - Reset e body
   - Grain noise overlay
   - Container e utilitários (.kicker, .small-note)
   - Nav e footer
   - Botões
   ============================================================ */

:root {
    --bg: #08070f;
    --bg-elev: #0e0c19;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hi: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hi: rgba(255, 255, 255, 0.18);
    --text: #f5f1e8;
    --text-muted: #a8a29e;
    --text-dim: #6b6864;
    --cyan: #7df9ff;
    --purple: #a78bfa;
    --magenta: #d946ef;
    --lime: #d9f99d;
    --amber: #fbbf24;
    --grad: linear-gradient(135deg, #7df9ff 0%, #a78bfa 55%, #d946ef 100%);
    --grad-soft: linear-gradient(135deg, rgba(125, 249, 255, 0.18), rgba(217, 70, 239, 0.18));
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-weight: 400;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
::selection { background: var(--magenta); color: var(--bg); }

/* ---------- GRAIN OVERLAY ---------- */
.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 200;
    opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- CONTAINER ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- KICKER (eyebrow text) ---------- */
.kicker {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: inline-flex; align-items: center; gap: 10px;
}
.kicker .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ---------- SMALL NOTE (CTA footnote) ---------- */
.small-note {
    font-family: var(--mono); font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- LEDE (header subtitle / intro paragraph) ---------- */
.lede {
    position: relative;
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 620px;
    padding-left: 18px;
    border-left: 2px solid var(--cyan);
}
.lede strong { color: var(--text); font-weight: 500; }
@media (max-width: 880px) {
    .lede { font-size: 16px; padding-left: 14px; }
}

/* ---------- NAV ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    background: rgba(8, 7, 15, 0.65);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px;
    max-width: 1240px;
    margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.brand-name em { font-style: normal; color: var(--text-muted); font-weight: 400; }
.brand-logo { height: 38px; width: auto; display: block; border-radius: 4px; }
@media (max-width: 600px) { .brand-logo { height: 32px; } }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    padding: 9px 18px;
    border: 1px solid var(--border-hi);
    border-radius: 999px;
    color: var(--text) !important;
    background: var(--surface-hi);
    transition: all 0.2s;
}
.nav-cta:hover { background: var(--text); color: var(--bg) !important; border-color: var(--text); }

@media (max-width: 760px) {
    .nav-links { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 24px;
    background: var(--text);
    color: var(--bg);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600; font-size: 15px;
    transition: transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 12px 40px -10px rgba(125, 249, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 18px 50px -10px rgba(125, 249, 255, 0.5); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 22px;
    background: transparent;
    color: var(--text);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500; font-size: 15px;
    border: 1px solid var(--border-hi);
    transition: all 0.18s;
}
.btn-secondary:hover { background: var(--surface-hi); border-color: rgba(255,255,255,0.3); }

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 50px 0 40px;
    background: var(--bg);
}
.foot {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}
.foot-links { display: flex; gap: 32px; }
.foot-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.foot-links a:hover { color: var(--text); }
.foot-copy {
    font-family: var(--mono); font-size: 11px;
    color: var(--text-dim); letter-spacing: 0.08em;
}

/* ---------- REVEAL ANIMATION (shared) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }

/* hero staggered load (only on hero elements) */
.hero .reveal { opacity: 0; transform: translateY(20px); }
.hero.loaded .reveal { opacity: 1; transform: translateY(0); }
.hero.loaded .reveal { transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- CONSENT BANNER (LGPD) ---------- */
#consent-banner {
    position: fixed;
    left: 20px; right: 20px; bottom: 20px;
    z-index: 300;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 18px 22px;
    background: rgba(14, 12, 25, 0.92);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#consent-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#consent-banner .consent-text {
    flex: 1 1 320px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}
#consent-banner .consent-text strong { color: var(--text); font-weight: 500; }
#consent-banner .consent-text a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px dotted var(--cyan);
}
#consent-banner .consent-text a:hover { color: var(--text); border-color: var(--text); }
#consent-banner .consent-actions {
    display: flex; gap: 10px; flex-shrink: 0;
}
#consent-banner button {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-hi);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.18s;
}
#consent-banner button:hover { background: var(--surface-hi); }
#consent-banner button.consent-accept {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
#consent-banner button.consent-accept:hover { background: var(--cyan); border-color: var(--cyan); }
@media (max-width: 600px) {
    #consent-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
    #consent-banner .consent-actions { width: 100%; }
    #consent-banner button { flex: 1; }
}
