/* ══════════════════════════════════════════════════
   TEMAS — definidos completamente no CSS.
   Ambos com mesma especificidade: [attr] selector.
   Troca de tema é 100% confiável.
══════════════════════════════════════════════════ */

[data-theme="dark"] {
    --bg:            #06060f;
    --surface:       #0d0d1e;
    --surface-hover: #131328;
    --border:        #1c1c38;
    --primary:       #7c3aed;
    --primary-hover: #6d28d9;
    --primary-soft:  rgba(124, 58, 237, 0.12);
    --accent:        #c084fc;
    --text:          #f1f5f9;
    --muted:         #64748b;
    --success:       #22c55e;
    --neon:          rgba(124, 58, 237, 0.4);
    color-scheme: dark;
}

[data-theme="light"] {
    --bg:            #fafafa;
    --surface:       #f0eeff;
    --surface-hover: #e5e0f8;
    --border:        #d9d0f0;
    --primary:       #7c3aed;
    --primary-hover: #6d28d9;
    --primary-soft:  rgba(124, 58, 237, 0.1);
    --accent:        #6d28d9;
    --text:          #0f0f1a;
    --muted:         #6b7280;
    --success:       #16a34a;
    --neon:          rgba(124, 58, 237, 0.15);
    color-scheme: light;
}

/* ══════════════════════════════════════════════════
   TEMA: ROXO (dim) — dark com fundo roxo profundo
══════════════════════════════════════════════════ */
[data-theme="dim"] {
    --bg:            #0d0520;
    --surface:       #140a2e;
    --surface-hover: #1c1040;
    --border:        #2d1b5c;
    --primary:       #7c3aed;
    --primary-hover: #6d28d9;
    --primary-soft:  rgba(124, 58, 237, 0.15);
    --accent:        #c084fc;
    --text:          #f0e8ff;
    --muted:         #9b7ec8;
    --success:       #22c55e;
    --neon:          rgba(124, 58, 237, 0.5);
    color-scheme: dark;
}

/* ══════════════════════════════════════════════════
   TEMA: AZUL (sepia) — dark com fundo azul profundo
══════════════════════════════════════════════════ */
[data-theme="sepia"] {
    --bg:            #030a18;
    --surface:       #071428;
    --surface-hover: #0d1d3a;
    --border:        #162b50;
    --primary:       #3b82f6;
    --primary-hover: #2563eb;
    --primary-soft:  rgba(59, 130, 246, 0.15);
    --accent:        #93c5fd;
    --text:          #e8f0fe;
    --muted:         #6b8cba;
    --success:       #22c55e;
    --neon:          rgba(59, 130, 246, 0.45);
    color-scheme: dark;
}

/* ══════════════════════════════════════════════════
   PALETAS — overrides das variáveis de cor
   Vêm após os temas para ter precedência por
   ordem de source (mesma especificidade [attr]).
══════════════════════════════════════════════════ */
[data-palette="cyan"] {
    --primary:       #0891b2;
    --primary-hover: #0e7490;
    --primary-soft:  rgba(8, 145, 178, 0.12);
    --accent:        #22d3ee;
    --neon:          rgba(8, 145, 178, 0.4);
}
[data-theme="light"][data-palette="cyan"] {
    --primary-soft:  rgba(8, 145, 178, 0.1);
    --accent:        #0e7490;
    --neon:          rgba(8, 145, 178, 0.15);
}

[data-palette="emerald"] {
    --primary:       #059669;
    --primary-hover: #047857;
    --primary-soft:  rgba(5, 150, 105, 0.12);
    --accent:        #34d399;
    --neon:          rgba(5, 150, 105, 0.4);
}
[data-theme="light"][data-palette="emerald"] {
    --primary-soft:  rgba(5, 150, 105, 0.1);
    --accent:        #047857;
    --neon:          rgba(5, 150, 105, 0.15);
}

[data-palette="amber"] {
    --primary:       #d97706;
    --primary-hover: #b45309;
    --primary-soft:  rgba(217, 119, 6, 0.12);
    --accent:        #fbbf24;
    --neon:          rgba(217, 119, 6, 0.35);
}
[data-theme="light"][data-palette="amber"] {
    --primary-soft:  rgba(217, 119, 6, 0.1);
    --accent:        #b45309;
    --neon:          rgba(217, 119, 6, 0.15);
}

[data-palette="rose"] {
    --primary:       #e11d48;
    --primary-hover: #be123c;
    --primary-soft:  rgba(225, 29, 72, 0.12);
    --accent:        #fb7185;
    --neon:          rgba(225, 29, 72, 0.4);
}
[data-theme="light"][data-palette="rose"] {
    --primary-soft:  rgba(225, 29, 72, 0.1);
    --accent:        #be123c;
    --neon:          rgba(225, 29, 72, 0.15);
}

/* ══════════════════════════════════════════════════
   Reset & Base
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font, 'Inter', 'Segoe UI', system-ui, sans-serif);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dot grid — alternado por section via .bg-dots */
.bg-dots {
    position: relative;
    overflow: hidden;
}
.bg-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}
.bg-dots > * {
    position: relative;
    z-index: 1;
}

/* Transição suave em todos os elementos temáticos */
*,
*::before,
*::after {
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Remove transição de elementos interativos para manter snappiness */
button, a, .filter-btn, .lp-card, .service-card {
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .navbar {
    background: rgba(6, 6, 15, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .navbar {
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', 'Courier', monospace;
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: 0.08em;
    color: var(--text);
}
.navbar-brand:hover { opacity: 0.8; }

.brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    flex-shrink: 0;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 6px var(--primary); }
    50%       { box-shadow: 0 0 14px var(--primary), 0 0 24px var(--neon); }
}

.navbar-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--primary); }

[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="dim"]   .icon-sun  { display: none; }
[data-theme="dim"]   .icon-moon { display: block; }
[data-theme="sepia"] .icon-sun  { display: none; }
[data-theme="sepia"] .icon-moon { display: block; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: block; }

/* Palette picker */
.palette-wrap { position: relative; }

.palette-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
}
.palette-toggle:hover { border-color: var(--primary); }

.palette-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.palette-picker {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    z-index: 200;
    opacity: 0;
    transform: translateY(-6px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.palette-picker.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.palette-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    appearance: none;
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.palette-swatch:hover { transform: scale(1.25); }
.palette-swatch.active {
    border-color: var(--text);
    box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px var(--primary);
}

/* Badge de hint na navbar */
.palette-hint-badge {
    position: absolute;
    bottom: calc(100% + 12px);
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 7px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 18px var(--neon);
    animation: badge-float 2s ease-in-out infinite;
}
.palette-hint-badge::after {
    content: '';
    position: absolute;
    top: 100%; right: 13px;
    border: 5px solid transparent;
    border-top-color: var(--primary);
}
@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

/* Hero theme strip */
.hero-theme-strip {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    opacity: 0;
    animation: hero-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.72s forwards;
}

.hts-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    white-space: nowrap;
}

.hts-options { display: flex; gap: 8px; align-items: center; }

.hts-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    touch-action: manipulation;
    cursor: pointer;
    appearance: none;
    border: 2px solid transparent;
    background: none;
    padding: 3px;
    border-radius: 6px;
    transition: transform 0.15s ease, border-color 0.15s ease !important;
}
.hts-btn:hover { transform: translateY(-2px); }
.hts-btn.active { border-color: var(--primary); }
/* Filhos passam o clique para o botão pai — garante hit em qualquer ponto do botão */
.hts-btn * { pointer-events: none; }

.hts-screen {
    width: 40px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.hts-accent-bar { height: 5px; background: var(--primary); flex-shrink: 0; }
.hts-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 3px 5px;
}
.hts-line { height: 2px; border-radius: 2px; display: block; }

.hts-btn[data-theme-pick="dark"]  .hts-screen { background: #06060f; border: 1px solid #1c1c38; }
.hts-btn[data-theme-pick="dark"]  .hts-line   { background: #2d2d5a; }
.hts-btn[data-theme-pick="dark"]  .hts-accent-bar { background: #7c3aed; }
.hts-btn[data-theme-pick="dim"]   .hts-screen { background: #0d0520; border: 1px solid #2d1b5c; }
.hts-btn[data-theme-pick="dim"]   .hts-line   { background: #3d2470; }
.hts-btn[data-theme-pick="dim"]   .hts-accent-bar { background: #7c3aed; }
.hts-btn[data-theme-pick="light"] .hts-screen { background: #fafafa; border: 1px solid #d9d0f0; }
.hts-btn[data-theme-pick="light"] .hts-line   { background: #c4b5fd; }
.hts-btn[data-theme-pick="light"] .hts-accent-bar { background: #7c3aed; }
.hts-btn[data-theme-pick="sepia"] .hts-screen { background: #030a18; border: 1px solid #162b50; }
.hts-btn[data-theme-pick="sepia"] .hts-line   { background: #1e3a6e; }
.hts-btn[data-theme-pick="sepia"] .hts-accent-bar { background: #3b82f6; }

.hts-name {
    font-family: 'Courier New', monospace;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.15s ease !important;
}
.hts-btn.active .hts-name { color: var(--primary); }

/* Row 2: paleta + cursor lado a lado */
.hero-strips-row2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}

/* Hero palette strip */
.hero-palette-strip {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 0;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    opacity: 0;
    animation: hero-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.88s forwards;
}

.hps-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    white-space: nowrap;
}

.hps-swatches { display: flex; gap: 6px; align-items: center; }

.hps-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    touch-action: manipulation;
    cursor: pointer;
    appearance: none;
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.hps-swatch:hover { transform: scale(1.35); }
.hps-swatch.active {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .hps-swatch.active { border-color: rgba(0, 0, 0, 0.5); }

.hps-hint {
    font-size: 0.6875rem;
    color: var(--muted);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
}
.nav-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════
   PAGE LOADER
══════════════════════════════════════════════════ */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #06060f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
                transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
#page-loader.loader-out {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.loader-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    animation: loader-brand-in 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes loader-brand-in {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.loader-brand-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 14px var(--primary), 0 0 28px var(--neon);
    animation: glow-pulse 1.5s ease-in-out infinite;
}
.loader-brand-name {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #f1f5f9;
    text-transform: uppercase;
}

.loader-progress-wrap {
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.loader-bar-track {
    width: 100%;
    height: 1.5px;
    background: rgba(124,58,237,0.2);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon);
    transition: width 80ms linear;
}
.loader-percent {
    font-family: 'Courier New', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    opacity: 0.7;
    user-select: none;
}

/* Impede FOUC — a página por baixo fica invisível até o loader sair */
body.loading { overflow: hidden; }

/* ══════════════════════════════════════════════════
   ANIMAÇÕES DE ENTRADA — HERO (estilo Apple)
══════════════════════════════════════════════════ */
@keyframes hero-enter {
    from { opacity: 0; transform: translateY(32px) scale(0.88); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes float-orb {
    0%,100% { transform: translate(0,    0)    scale(1);    }
    33%      { transform: translate(40px, -50px) scale(1.06); }
    66%      { transform: translate(-30px, 30px) scale(0.94); }
}

@keyframes float-orb-2 {
    0%,100% { transform: translate(0,    0)    scale(1);    }
    33%      { transform: translate(-50px, 30px) scale(1.08); }
    66%      { transform: translate(35px, -40px) scale(0.92); }
}

.hero-label     { opacity: 0; animation: hero-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.05s  forwards; }
.hero-title     { opacity: 0; animation: hero-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.22s  forwards; }
.hero-sub       { opacity: 0; animation: hero-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.38s  forwards; }
.hero-cta-group { opacity: 0; animation: hero-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.54s  forwards; }
.hero-stats     { opacity: 0; animation: hero-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.70s  forwards; }

/* Orbs flutuantes */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.hero-orb-1 {
    width: 700px; height: 700px;
    background: var(--primary);
    top: -280px; left: -180px;
    opacity: 0.12;
    animation: float-orb 12s ease-in-out infinite;
}
.hero-orb-2 {
    width: 500px; height: 500px;
    background: #a855f7;
    top: 50px; right: -160px;
    opacity: 0.1;
    animation: float-orb-2 9s ease-in-out infinite;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: #6366f1;
    bottom: -80px; left: 35%;
    opacity: 0.08;
    animation: float-orb 15s ease-in-out infinite reverse;
}

[data-theme="light"] .hero-orb-1 { opacity: 0.06; }
[data-theme="light"] .hero-orb-2 { opacity: 0.05; }
[data-theme="light"] .hero-orb-3 { opacity: 0.04; }

/* Mouse glow */
.hero-mouse-glow {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    will-change: left, top;
}

/* ══════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
                transform 0.75s cubic-bezier(0.16,1,0.3,1) !important;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-label, .hero-title, .hero-sub, .hero-cta-group, .hero-stats, .hero-palette-strip, .hero-theme-strip {
        opacity: 1; animation: none;
    }
    .hero-orb { animation: none; }
    [data-reveal] { opacity: 1; transform: none; transition: none !important; }
    .hero-label, .hero-title, .hero-sub, .hero-cta-group, .hero-stats { transform: none; }
    .palette-hint-badge { animation: none; }
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 110px 0 90px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Neon glow top */
.hero-bg-glow {
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--primary) 0%, transparent 65%);
    opacity: 0.1;
    pointer-events: none;
}

[data-theme="light"] .hero-bg-glow { opacity: 0.07; }

.hero-inner { text-align: center; position: relative; z-index: 1; }

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--primary-soft);
    border: 1px solid rgba(124, 58, 237, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
    font-family: 'Courier New', monospace;
}

.label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: var(--text);
    margin-bottom: 22px;
}

.hero-name {
    font-family: 'Courier New', 'Courier', monospace;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

[data-theme="dark"] .hero-name {
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.5), 0 0 60px rgba(124, 58, 237, 0.2);
}

/* ── Glitch — hero name ── */
.hero-name::before,
.hero-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 0;
    pointer-events: none;
}
.hero-name::before {
    text-shadow: -3px 0 #ff0080;
}
.hero-name::after {
    text-shadow: 3px 0 #00e5ff;
}
.hero-name.glitching::before {
    animation: glitch-top 0.6s ease-in-out forwards;
}
.hero-name.glitching::after {
    animation: glitch-bot 0.6s ease-in-out 0.08s forwards;
}
@keyframes glitch-top {
    0%   { opacity: 0; transform: translate(0); clip-path: none; }
    15%  { opacity: 1; transform: translate(-4px, -2px); clip-path: polygon(0 10%, 100% 10%, 100% 44%, 0 44%); }
    35%  { opacity: 1; transform: translate(4px, 0);     clip-path: polygon(0 0,   100% 0,   100% 30%, 0 30%); }
    55%  { opacity: 1; transform: translate(-2px, 1px);  clip-path: polygon(0 20%, 100% 20%, 100% 52%, 0 52%); }
    100% { opacity: 0; transform: translate(0); clip-path: none; }
}
@keyframes glitch-bot {
    0%   { opacity: 0; transform: translate(0); clip-path: none; }
    15%  { opacity: 1; transform: translate(4px, 2px);   clip-path: polygon(0 56%, 100% 56%, 100% 78%, 0 78%); }
    35%  { opacity: 1; transform: translate(-4px, 0);    clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%); }
    55%  { opacity: 1; transform: translate(2px, -1px);  clip-path: polygon(0 60%, 100% 60%, 100% 88%, 0 88%); }
    100% { opacity: 0; transform: translate(0); clip-path: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-name::before, .hero-name::after { animation: none !important; opacity: 0; }
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--muted);
    max-width: 540px;
    margin-inline: auto;
    margin-bottom: 44px;
    line-height: 1.75;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

/* ── Botões ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font, sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    font-family: var(--font, sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* Stats */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 40px;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 0.75rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ══════════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 14px;
}

.section-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 480px;
    margin-inline: auto;
    line-height: 1.65;
}

/* ══════════════════════════════════════════════════
   ABOUT / IDENTIDADE
══════════════════════════════════════════════════ */
.section-about {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.about-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}

.about-name-inline {
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.about-text {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.stack-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    margin-top: 28px;
}

.stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-badge {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--primary-soft);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

/* Terminal card no lado direito */
.about-terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--surface-hover);
    border-bottom: 1px solid var(--border);
}

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red    { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green  { background: #22c55e; }

.terminal-body {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 2;
    color: var(--muted);
}

.t-prompt { color: var(--primary); }
.t-cmd    { color: var(--text); margin-left: 6px; }
.t-out    { color: var(--muted); display: block; padding-left: 16px; }
.t-accent { color: var(--accent); }
.t-success { color: var(--success); }
.t-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--primary);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

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

/* ══════════════════════════════════════════════════
   SERVIÇOS
══════════════════════════════════════════════════ */
.section-services {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}
.service-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-soft);
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 18px;
}

.service-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.service-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════════════════════════════
   COMPARTILHAR PORTFÓLIO
══════════════════════════════════════════════════ */
.section-share {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

.share-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

[data-theme="dark"] .share-card {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-color: rgba(124, 58, 237, 0.25);
}

.share-text {}
.share-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.share-title { font-size: 1.375rem; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -0.02em; }
.share-sub { font-size: 0.9375rem; color: var(--muted); }

.share-url-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}
.share-url-box:hover { border-color: var(--primary); }

.share-copy-icon { color: var(--muted); flex-shrink: 0; }
.share-copied-msg {
    font-size: 0.75rem;
    color: var(--success);
    font-family: 'Courier New', monospace;
    display: none;
}

/* ══════════════════════════════════════════════════
   PORTFÓLIO
══════════════════════════════════════════════════ */
.section-portfolio { padding: 96px 0; border-bottom: 1px solid var(--border); }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }

.filter-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-family: var(--font, sans-serif);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 8px;
    cursor: pointer;
}
.filter-btn:hover { border-color: var(--primary); color: var(--text); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.lp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.lp-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--surface-hover);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16/9;
}

.card-media:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card-media iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1);
    transform-origin: top left;
}

.card-media .card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Loading skeleton para preview de iframe */
.card-preview-loading {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--surface-hover) 25%, var(--surface) 50%, var(--surface-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-overlay {
    position: absolute; inset: 0;
    background: rgba(124, 58, 237, 0.88);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
}
.lp-card:hover .card-overlay { opacity: 1; }
.card-overlay { transition: opacity 0.25s ease !important; }

.overlay-btn {
    background: #fff;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    transform: translateY(10px);
    letter-spacing: 0.01em;
}
.overlay-btn { transition: transform 0.25s ease !important; }
.lp-card:hover .overlay-btn { transform: translateY(0); }

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
    font-size: 0.6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--accent);
    background: var(--primary-soft);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 3px 10px; border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.tag-destaque { color: var(--success); background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); }
.tag-demo { color: var(--muted); background: rgba(100, 116, 139, 0.15); border-color: rgba(100, 116, 139, 0.3); }

.card-title { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.card-title a { transition: color 0.18s !important; }
.card-title a:hover { color: var(--accent); }
.card-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

.empty-state {
    flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; padding: 80px 24px; color: var(--muted); text-align: center;
}
.empty-state p { font-size: 0.9375rem; }

/* ══════════════════════════════════════════════════
   PROCESSO
══════════════════════════════════════════════════ */
.section-process { padding: 96px 0; border-bottom: 1px solid var(--border); }

.process-steps { display: flex; align-items: flex-start; max-width: 900px; margin-inline: auto; }

.step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }

.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary-soft);
    border: 2px solid rgba(124, 58, 237, 0.3);
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; flex-shrink: 0;
}

.step-title { font-size: 1.0625rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

.step-connector { flex-shrink: 0; width: 80px; height: 2px; background: var(--border); margin-top: 27px; position: relative; }
.step-connector::after { content: ''; position: absolute; right: -5px; top: -4px; border: 4px solid transparent; border-left-color: var(--border); }

/* ══════════════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════════════ */
.section-cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.section-cta::before {
    content: '';
    position: absolute;
    bottom: -200px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, var(--primary) 0%, transparent 65%);
    opacity: 0.06;
    pointer-events: none;
}

.cta-inner { position: relative; }
.cta-badge { display: inline-block; font-family: 'Courier New', monospace; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.cta-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); margin-bottom: 16px; }
.cta-sub { font-size: 1rem; color: var(--muted); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg); }

.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Courier New', monospace; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.06em; color: var(--text); }
.footer-brand:hover { opacity: 0.75; }
.footer-social { display: flex; gap: 20px; }
.social-link { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.social-link:hover { color: var(--text); }
.footer-copy { font-size: 0.8125rem; color: var(--muted); font-family: 'Courier New', monospace; }

/* ══════════════════════════════════════════════════
   PÁGINA PORTFÓLIO (compartilhável)
══════════════════════════════════════════════════ */
.portfolio-page-header {
    padding: 64px 0 0;
    text-align: center;
}

.portfolio-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 8px;
}

.portfolio-page-sub { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0; }

.portfolio-back-bar {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.portfolio-back-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.back-link { color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.back-link:hover { color: var(--text); }

.portfolio-main { padding: 56px 0 80px; }

/* ══════════════════════════════════════════════════
   PÁGINA 404
══════════════════════════════════════════════════ */
.page-404 {
    min-height: 80vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 40px 24px; gap: 16px;
}

.err-code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--primary); opacity: 0.2; font-family: 'Courier New', monospace; }
.err-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-top: -8px; }
.err-sub { font-size: 0.9375rem; color: var(--muted); max-width: 360px; }

.btn-home {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
    background: var(--primary); color: #fff;
    font-family: var(--font, sans-serif); font-size: 0.9375rem; font-weight: 600;
    padding: 13px 28px; border-radius: 10px; border: none; cursor: pointer;
}
.btn-home:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .process-steps { flex-direction: column; align-items: center; }
    .step { padding: 0 0 40px; max-width: 360px; }
    .step-connector { width: 2px; height: 40px; align-self: center; }
    .step-connector::after { right: -4px; top: auto; bottom: -5px; border: 4px solid transparent; border-left: none; border-top-color: var(--border); }
    .share-card { flex-direction: column; padding: 32px; }
}

@media (max-width: 600px) {
    .lp-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .hero { padding: 80px 0 60px; }
    .hero-stats { flex-direction: column; gap: 16px; width: 100%; padding: 16px 24px; }
    .stat-divider { width: 40px; height: 1px; }
    .footer-inner { justify-content: center; text-align: center; }
    .footer-social { justify-content: center; }

    /* Strips do hero: scroll horizontal sem bloquear tap */
    .hero-theme-strip,
    .hero-palette-strip {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
    }
    .hero-theme-strip::-webkit-scrollbar,
    .hero-palette-strip::-webkit-scrollbar { display: none; }
    .hps-hint { display: none; }
    .hero-strips-row2 { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════════
   PREÇOS
══════════════════════════════════════════════════ */
.section-pricing {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 56px;
}

/* Card base */
.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color 0.25s, transform 0.25s;
}
.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Card em destaque */
.pricing-featured {
    border-color: var(--primary);
    background: linear-gradient(160deg, var(--surface) 60%, var(--primary-soft));
    box-shadow: 0 0 40px var(--neon);
    transform: scale(1.03);
    z-index: 1;
}
.pricing-featured:hover {
    transform: scale(1.03) translateY(-3px);
}

.pricing-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.pricing-plan-name {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}
.price-from {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.price-value {
    font-family: var(--font);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.price-consult {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 32px;
    flex: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}
.feat-check {
    color: var(--success);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-cta {
    display: block;
    text-align: center;
    width: 100%;
}

.price-period {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.price-hosting-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 14px;
    font-family: 'Courier New', monospace;
}
.price-hosting-muted {
    color: var(--muted);
    background: rgba(100,116,139,0.1);
    border-color: rgba(100,116,139,0.2);
}

.price-renewal {
    font-size: 0.75rem;
    color: var(--muted);
    font-family: 'Courier New', monospace;
    margin-top: 6px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

/* Bloco de info de hospedagem */
.pricing-hosting-info {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 36px;
}

[data-theme="dark"] .pricing-hosting-info {
    border-color: rgba(99,102,241,0.2);
}

.hosting-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0 20px;
}
.hosting-info-item:first-child { padding-left: 0; }
.hosting-info-item:last-child  { padding-right: 0; }

.hosting-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-soft);
    border: 1px solid rgba(99,102,241,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.hosting-info-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.hosting-info-desc {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.55;
}

.hosting-info-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .pricing-hosting-info {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        gap: 20px;
    }
    .hosting-info-divider { width: 100%; height: 1px; }
    .hosting-info-item { padding: 0; }
}

/* ── Calculadora de pacote ── */
.pricing-calc-card {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: center;
}

[data-theme="dark"] .pricing-calc-card {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(99,102,241,0.07) 100%);
    border-color: rgba(99,102,241,0.25);
}

.calc-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}
.calc-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
}
.calc-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
}

/* Toggles de plano */
.calc-plan-toggle {
    display: flex;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 24px;
}
.calc-plan-btn {
    flex: 1;
    appearance: none;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s !important;
}
.calc-plan-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Stepper */
.calc-stepper {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
}
.calc-step-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s, background 0.18s !important;
}
.calc-step-btn:hover { border-color: var(--primary); color: var(--primary); }
.calc-step-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.calc-count-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}
.calc-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.04em;
    transition: color 0.2s;
}
.calc-unit {
    font-size: 0.6875rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.calc-breakdown {
    font-size: 0.75rem;
    color: var(--muted);
    font-family: 'Courier New', monospace;
    text-align: center;
    line-height: 1.7;
    min-height: 2.5em;
}

/* Resultado */
.calc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.calc-total-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: 'Courier New', monospace;
}
.calc-total {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
    transition: color 0.3s;
}
.calc-saving {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.04em;
    min-height: 1.2em;
}
.calc-cta-btn {
    margin-top: 8px;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .pricing-calc-card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 32px;
    }
    .calc-right { align-items: flex-start; }
}

@media (max-width: 960px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .pricing-featured { transform: none; }
    .pricing-featured:hover { transform: translateY(-3px); }
}

/* ══════════════════════════════════════════════════
   EFEITOS DE TRANSIÇÃO DE TEMA / PALETA
══════════════════════════════════════════════════ */
#theme-fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99997;
    opacity: 0;
}
#theme-fx.fx-active {
    animation: fx-flash 0.5s ease forwards;
}
@keyframes fx-flash {
    0%   { opacity: 0; }
    18%  { opacity: 0.1; }
    100% { opacity: 0; }
}

.theme-fx-ripple {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99996;
    animation: fx-ripple 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fx-ripple {
    from { transform: translate(-50%, -50%) scale(1);                       opacity: 0.28; }
    to   { transform: translate(-50%, -50%) scale(var(--fx-scale, 400));    opacity: 0;    }
}

body.fx-glitch {
    animation: fx-body-glitch 0.38s ease forwards;
}
@keyframes fx-body-glitch {
    0%   { filter: none; }
    20%  { filter: brightness(1.14) saturate(1.8); }
    45%  { filter: brightness(0.96) hue-rotate(7deg) saturate(0.85); }
    75%  { filter: brightness(1.05) saturate(1.15); }
    100% { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    body.fx-glitch { animation: none; filter: none; }
    .theme-fx-ripple { display: none; }
    #theme-fx.fx-active { animation: none; opacity: 0; }
}

/* ══════════════════════════════════════════════════
   WHATSAPP FLOAT WIDGET
══════════════════════════════════════════════════ */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.wa-float.visible {
    opacity: 1;
    transform: translateY(0);
    /* Container nunca intercepta — só filhos diretos e interativos */
}
.wa-float.visible .wa-trigger-row,
.wa-float.visible .wa-popup.open {
    pointer-events: auto;
}

/* Trigger row: label + button */
.wa-trigger-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-label-tag {
    background: var(--surface);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: 100px;
    white-space: nowrap;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--neon);
    animation: wa-label-bounce 3.5s ease-in-out infinite;
    font-family: 'Courier New', monospace;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.wa-label-tag:hover { background: var(--surface-hover); color: var(--text); transform: translateY(-2px); }
@keyframes wa-label-bounce {
    0%, 100% { transform: translateY(0); }
    45%      { transform: translateY(-4px); }
    60%      { transform: translateY(-1px); }
}

/* Trigger button */
.wa-trigger {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 24px var(--neon);
    animation: wa-pulse 2.5s ease-in-out infinite;
    transition: transform 0.2s ease, background 0.2s ease !important;
}
.wa-trigger:hover { transform: scale(1.1); background: var(--primary-hover); }
@keyframes wa-pulse {
    0%, 100% {
        box-shadow: 0 6px 24px var(--neon),
                    0 0 0 0  var(--neon),
                    0 0 0 0  var(--primary-soft);
    }
    50% {
        box-shadow: 0 6px 28px var(--neon),
                    0 0 0 12px var(--primary-soft),
                    0 0 0 22px rgba(0,0,0,0);
    }
}

.wa-badge {
    position: absolute;
    top: -3px; right: -3px;
    width: 20px; height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    pointer-events: none;
    animation: wa-badge-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 1.2s both;
}
@keyframes wa-badge-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* Popup */
.wa-popup {
    width: 310px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px var(--border), 0 0 40px var(--neon);
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    transform-origin: bottom right;
}
.wa-popup.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.wa-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.wa-popup-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 60%);
    pointer-events: none;
}
.wa-popup-header::after {
    content: '{ }';
    position: absolute;
    right: 52px; top: 50%;
    transform: translateY(-50%);
    font-family: 'Courier New', monospace;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.25;
    letter-spacing: 0.05em;
    pointer-events: none;
}
.wa-avatar-wrap { position: relative; flex-shrink: 0; }
.wa-avatar-letter {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; color: var(--primary);
    border: 2px solid var(--primary);
    font-family: 'Courier New', monospace;
}
.wa-online-dot {
    position: absolute;
    bottom: 1px; right: 1px;
    width: 11px; height: 11px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--surface);
    animation: wa-online-blink 2s ease-in-out infinite;
}
@keyframes wa-online-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.wa-popup-info { flex: 1; min-width: 0; }
.wa-popup-name {
    font-size: 0.9375rem; font-weight: 800; color: var(--text);
    line-height: 1.2; font-family: 'Courier New', monospace;
    letter-spacing: 0.04em;
}
.wa-popup-status {
    font-size: 0.6875rem; color: var(--muted); margin-top: 3px;
    font-family: 'Courier New', monospace; display: flex; align-items: center; gap: 4px;
    letter-spacing: 0.04em;
}
.wa-popup-status::before {
    content: ''; display: inline-block;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%; flex-shrink: 0;
}
.wa-popup-close {
    background: var(--primary-soft); border: 1px solid var(--border);
    color: var(--muted); cursor: pointer; padding: 5px; display: flex; align-items: center;
    border-radius: 50%; flex-shrink: 0; width: 28px; height: 28px; justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative; z-index: 1;
}
.wa-popup-close:hover { background: var(--surface-hover); color: var(--text); }

/* Chat area */
.wa-popup-chat {
    padding: 16px 16px 12px;
    background: var(--bg);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    position: relative;
}
.wa-popup-chat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 28px,
        var(--border) 28px,
        var(--border) 29px
    );
    opacity: 0.25;
    pointer-events: none;
}
.wa-typing-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px 12px 12px 0;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.wa-typing-indicator span {
    width: 6px; height: 6px;
    background: var(--muted);
    border-radius: 50%;
    animation: wa-typing 1.2s ease-in-out infinite;
}
.wa-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.wa-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wa-typing {
    0%, 60%, 100% { transform: translateY(0); background: var(--muted); }
    30%           { transform: translateY(-5px); background: var(--primary); }
}
.wa-bubble {
    background: var(--surface);
    color: var(--text);
    border-radius: 12px 12px 12px 0;
    padding: 10px 13px;
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 250px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    font-family: sans-serif;
    animation: wa-bubble-in 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}
@keyframes wa-bubble-in {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-bubble-time {
    display: block;
    text-align: right;
    font-size: 0.625rem;
    color: var(--muted);
    margin-top: 5px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.04em;
}

/* Footer */
.wa-popup-footer {
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 20px 20px;
}
.wa-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 13px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px var(--neon);
}
.wa-start-btn:hover { background: var(--primary-hover); transform: translateY(-2px); color: #fff; box-shadow: 0 6px 28px var(--neon); }

/* ══════════════════════════════════════════════════
   WHATSAPP COMPOSER (seção contato)
══════════════════════════════════════════════════ */
.wa-composer {
    margin-top: 48px;
    max-width: 560px;
    margin-inline: auto;
    text-align: left;
}
.wa-composer-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    text-align: center;
}
.wa-composer-box {
    display: flex;
    align-items: flex-end;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.wa-composer-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.wa-composer-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font, sans-serif);
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 14px 18px;
    resize: none;
    min-height: 52px;
}
.wa-composer-input::placeholder { color: var(--muted); }
.wa-composer-send {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--primary);
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease !important;
    align-self: stretch;
}
.wa-composer-send:hover { background: var(--primary-hover); }
.wa-composer-hint {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 10px;
    font-family: 'Courier New', monospace;
}

@media (max-width: 600px) {
    .wa-float { bottom: 18px; right: 18px; }
    .wa-popup { width: 280px; }
    .wa-label-tag { font-size: 0.6875rem; padding: 5px 11px; }
}

/* ══════════════════════════════════════════════════
   NOISE OVERLAY
══════════════════════════════════════════════════ */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 99996;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: noise-shift 0.15s steps(1) infinite;
    mix-blend-mode: overlay;
}
@keyframes noise-shift {
    0%   { background-position: 0 0; }
    10%  { background-position: -50px -30px; }
    20%  { background-position: 30px 20px; }
    30%  { background-position: -20px 50px; }
    40%  { background-position: 60px -10px; }
    50%  { background-position: -40px 40px; }
    60%  { background-position: 10px -60px; }
    70%  { background-position: -60px 10px; }
    80%  { background-position: 40px 60px; }
    90%  { background-position: -10px -40px; }
    100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .noise-overlay { animation: none; } }

/* ══════════════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════════════ */
@media (pointer: fine) {
    [data-cursor]:not([data-cursor="off"]) body,
    [data-cursor]:not([data-cursor="off"]) a,
    [data-cursor]:not([data-cursor="off"]) button,
    [data-cursor]:not([data-cursor="off"]) [role="button"],
    [data-cursor]:not([data-cursor="off"]) label,
    [data-cursor]:not([data-cursor="off"]) select,
    [data-cursor]:not([data-cursor="off"]) input,
    [data-cursor]:not([data-cursor="off"]) textarea { cursor: none; }
}
.c-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 999999;
    display: none;
}
@media (pointer: fine) {
    [data-cursor]:not([data-cursor="off"]) .c-cursor { display: block; }
}

/* All parts hidden by default */
.c-cursor-ring, .c-cursor-ring2,
.c-cursor-dot, .c-cursor-h, .c-cursor-v {
    display: none;
    position: absolute;
}

/* Base styles */
.c-cursor-ring {
    width: 34px; height: 34px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
    opacity: 0.7;
}
.c-cursor-ring2 {
    width: 30px; height: 30px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    transform: translate(calc(-50% + 4px), calc(-50% - 3px));
    opacity: 0.5;
}
.c-cursor-dot {
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
}
.c-cursor-h {
    width: 20px; height: 1.5px;
    background: var(--primary);
    transform: translate(-50%, -50%);
    opacity: 0.85;
}
.c-cursor-v {
    width: 1.5px; height: 20px;
    background: var(--primary);
    transform: translate(-50%, -50%);
    opacity: 0.85;
}

/* ── ring ── */
[data-cursor="ring"] .c-cursor-ring,
[data-cursor="ring"] .c-cursor-dot { display: block; }

/* ── cross ── */
[data-cursor="cross"] .c-cursor-h,
[data-cursor="cross"] .c-cursor-v,
[data-cursor="cross"] .c-cursor-dot { display: block; }
[data-cursor="cross"] .c-cursor-dot { width: 3px; height: 3px; background: var(--accent); }

/* ── dot ── */
[data-cursor="dot"] .c-cursor-dot {
    display: block;
    width: 12px; height: 12px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--neon);
    animation: dot-cursor-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-cursor-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%       { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 20px var(--neon); }
}

/* ── glitch ── */
[data-cursor="glitch"] .c-cursor-ring,
[data-cursor="glitch"] .c-cursor-ring2,
[data-cursor="glitch"] .c-cursor-dot { display: block; }
[data-cursor="glitch"] .c-cursor-ring  { animation: glitch-cur-a 0.7s ease-in-out infinite alternate; }
[data-cursor="glitch"] .c-cursor-ring2 { animation: glitch-cur-b 0.5s ease-in-out infinite alternate; }
@keyframes glitch-cur-a {
    from { transform: translate(calc(-50% - 3px), calc(-50% + 2px)); opacity: 0.7; }
    to   { transform: translate(calc(-50% + 2px), calc(-50% - 1px)); opacity: 0.5; }
}
@keyframes glitch-cur-b {
    from { transform: translate(calc(-50% + 4px), calc(-50% - 3px)); opacity: 0.5; }
    to   { transform: translate(calc(-50% - 2px), calc(-50% + 4px)); opacity: 0.3; }
}

/* ── hover & click states ── */
.c-cursor.hovering .c-cursor-ring  { width: 50px; height: 50px; opacity: 0.4; border-color: var(--accent); }
.c-cursor.hovering .c-cursor-dot   { width: 7px; height: 7px; background: var(--accent); }
.c-cursor.clicking .c-cursor-ring  { width: 22px; height: 22px; opacity: 1; }
.c-cursor.clicking .c-cursor-dot   { width: 9px; height: 9px; }

/* ══════════════════════════════════════════════════
   HERO CURSOR STRIP
══════════════════════════════════════════════════ */
.hero-cursor-strip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    opacity: 0;
    animation: hero-enter 0.8s cubic-bezier(0.16,1,0.3,1) 1.05s forwards;
}
@media (pointer: coarse) { .hero-cursor-strip { display: none; } }

.hcs-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    white-space: nowrap;
}
.hcs-options { display: flex; gap: 4px; align-items: center; }
.hcs-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 9px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
    touch-action: manipulation;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease !important;
}
.hcs-btn * { pointer-events: none; }
.hcs-btn:hover  { color: var(--text); background: var(--surface-hover); }
.hcs-btn.active { border-color: var(--primary); color: var(--primary); }
.hcs-icon { display: block; flex-shrink: 0; }
.hcs-name {
    font-family: 'Courier New', monospace;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   READING PROGRESS BAR
══════════════════════════════════════════════════ */
#readingProgress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 99998;
    pointer-events: none;
    box-shadow: 0 0 8px var(--neon);
    transition: width 0.08s linear;
}

/* ══════════════════════════════════════════════════
   3D TILT CARDS
══════════════════════════════════════════════════ */
.lp-card {
    transform-style: preserve-3d;
    will-change: transform;
}
.lp-card .card-inner-wrap {
    transform-style: preserve-3d;
}

/* ══════════════════════════════════════════════════
   SPOTLIGHT SECTION
══════════════════════════════════════════════════ */
.section-spotlight {
    position: relative;
    padding: 120px 0;
    background: #000;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.spotlight-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 220px at 50% 50%, transparent 0%, #000 72%);
    transition: background 0.05s linear;
    z-index: 1;
}
.spotlight-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.spotlight-content { opacity: 0.12; transition: opacity 0.3s ease; }
.section-spotlight:hover .spotlight-content { opacity: 1; }
.spotlight-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.spotlight-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 16px;
}
.spotlight-accent {
    color: var(--primary);
    text-shadow: 0 0 30px var(--neon);
}
.spotlight-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}
@media (pointer: coarse) {
    .spotlight-mask { background: radial-gradient(circle 280px at 50% 50%, transparent 0%, #000 72%); }
    .spotlight-content { opacity: 1; }
}

/* ══════════════════════════════════════════════════
   HERO PARTICLES CANVAS
══════════════════════════════════════════════════ */
.hero-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.7); }
}

/* ══════════════════════════════════════════════════
   SEÇÃO — DEMO IA
══════════════════════════════════════════════════ */
.section-ai-demo {
    padding: 96px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ai-demo-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
    margin-top: 48px;
}

/* Chat box */
.ai-demo-chat-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

.ai-demo-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.ai-demo-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 14px var(--neon);
}

.ai-demo-name   { font-size: 14px; font-weight: 600; color: var(--text); }
.ai-demo-status { font-size: 11.5px; color: var(--success); margin-top: 1px; }

.ai-demo-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-demo-messages::-webkit-scrollbar { width: 3px; }
.ai-demo-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ai-demo-msg { display: flex; }
.ai-demo-msg--in  { justify-content: flex-start; }
.ai-demo-msg--out { justify-content: flex-end; }

.ai-demo-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}
.ai-demo-msg--in  .ai-demo-bubble {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.ai-demo-msg--out .ai-demo-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-demo-typing {
    display: flex; gap: 4px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px; border-bottom-left-radius: 4px;
    width: fit-content;
}
.ai-demo-typing span {
    width: 5px; height: 5px;
    background: var(--muted); border-radius: 50%;
    animation: demo-dot 1.2s infinite ease-in-out;
}
.ai-demo-typing span:nth-child(2) { animation-delay: .2s; }
.ai-demo-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes demo-dot { 0%,60%,100%{transform:translateY(0);opacity:.5} 30%{transform:translateY(-3px);opacity:1} }

.ai-demo-stream-cursor {
    display: inline-block; width: 2px; height: 12px;
    background: var(--accent); margin-left: 2px;
    vertical-align: middle; animation: blink-d .7s infinite;
}
@keyframes blink-d { 0%,100%{opacity:1} 50%{opacity:0} }

/* Suggestions */
.ai-demo-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
    flex-shrink: 0;
}

.ai-demo-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    white-space: nowrap;
}
.ai-demo-chip:hover { color: var(--text); border-color: var(--primary); }
.ai-demo-chip:disabled { opacity: .4; cursor: not-allowed; }

/* Input */
.ai-demo-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--surface);
}

.ai-demo-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 14px;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
.ai-demo-input:focus { border-color: var(--primary); }
.ai-demo-input::placeholder { color: var(--muted); }

.ai-demo-send {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--primary);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
    transition: background .2s, transform .1s;
}
.ai-demo-send:hover  { background: var(--primary-hover); }
.ai-demo-send:active { transform: scale(.93); }
.ai-demo-send:disabled { opacity: .5; cursor: not-allowed; }

/* Feature list */
.ai-demo-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color .2s;
}
.ai-feature-card:hover { border-color: var(--primary); }

.ai-feature-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); flex-shrink: 0;
}

.ai-feature-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.ai-feature-desc  { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
    .ai-demo-grid {
        grid-template-columns: 1fr;
    }
    .ai-demo-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .ai-demo-features {
        grid-template-columns: 1fr;
    }
    .ai-demo-chat-box { height: 420px; }
}

/* ── Mobile trigger card (hidden on desktop) ── */
.ai-mob-trigger { display: none; }

@media (max-width: 768px) {
    .ai-demo-grid       { display: none; }
    .ai-mob-trigger     { display: block; margin-top: 32px; }
    .ai-persona-switcher{ display: none; }
}

.ai-mob-trig-inner {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

.ai-mob-trig-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-mob-trig-bubble {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    border-top-left-radius: 4px;
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 16px;
}

.ai-mob-trig-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.ai-mob-trig-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
}

.ai-mob-trig-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.ai-mob-trig-btn:hover  { background: var(--primary-hover); }
.ai-mob-trig-btn:active { transform: scale(.98); }

/* ── Mobile full-screen overlay ── */
.ai-mob-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .38s cubic-bezier(.32,.72,0,1);
    overscroll-behavior: contain;
}
.ai-mob-overlay.open { transform: translateY(0); }

@media (min-width: 769px) {
    .ai-mob-overlay { display: none !important; }
}

.ai-mob-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    padding-top: max(14px, env(safe-area-inset-top));
}

.ai-mob-back {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.ai-mob-back:hover { background: var(--surface-hover); }

.ai-mob-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
}
.ai-mob-messages::-webkit-scrollbar { display: none; }

.ai-mob-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 8px 16px;
    flex-shrink: 0;
}

.ai-mob-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.ai-mob-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}
.ai-mob-input:focus  { border-color: var(--primary); }
.ai-mob-input::placeholder { color: var(--muted); }

/* ══════════════════════════════════════════════════
   PERSONA SWITCHER
══════════════════════════════════════════════════ */
.ai-persona-switcher {
    margin-bottom: 28px;
}

.ai-persona-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ai-persona-label {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: var(--primary);
    letter-spacing: .04em;
    flex-shrink: 0;
}

.ai-persona-hint {
    font-size: 12px;
    color: var(--muted);
}

.ai-persona-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .ai-persona-cards { grid-template-columns: 1fr; gap: 8px; }
}

.ai-persona-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition:
        border-color .2s,
        background .2s,
        transform .15s,
        box-shadow .2s;
}

.ai-persona-card:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.ai-persona-card.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 20px var(--neon);
}

.ai-persona-emoji {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-hover);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: background .2s, border-color .2s;
}

.ai-persona-card.is-active .ai-persona-emoji {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.ai-persona-info {
    flex: 1;
    min-width: 0;
}

.ai-persona-name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-persona-tag {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-persona-card.is-active .ai-persona-tag { color: var(--accent); }

.ai-persona-active {
    flex-shrink: 0;
}

.ai-persona-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 2px 8px;
    display: block;
    min-width: 36px;
    text-align: center;
    opacity: 0;
    transition: opacity .2s;
}

.ai-persona-card.is-active .ai-persona-badge { opacity: 1; }

/* ══════════════════════════════════════════════════
   DIAGNOSTIC CARD (inline in chat bubble)
══════════════════════════════════════════════════ */
.ai-demo-diag-card {
    padding: 14px 16px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    border: 1px solid var(--border) !important;
    background: var(--surface) !important;
    border-radius: 14px !important;
}

.ai-diag-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ai-diag-title {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.3;
}

.ai-diag-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.ai-diag-badge--low      { background: rgba(34,197,94,.15);  color: #22c55e; }
.ai-diag-badge--medium   { background: rgba(234,179,8,.15);  color: #eab308; }
.ai-diag-badge--high     { background: rgba(249,115,22,.15); color: #f97316; }
.ai-diag-badge--critical { background: rgba(239,68,68,.15);  color: #ef4444; border: 1px solid rgba(239,68,68,.4); }

.ai-diag-summary {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

.ai-diag-findings {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: var(--surface-hover);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.ai-diag-findings li {
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.ai-diag-findings li::before {
    content: '▸';
    color: var(--accent);
    flex-shrink: 0;
    font-size: 10px;
    margin-top: 2px;
}

.ai-diag-rec {
    font-size: 12.5px;
    color: var(--text);
    line-height: 1.5;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.ai-diag-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, transform .1s;
    align-self: flex-start;
}

.ai-diag-wa-btn:hover  { background: #20ba5a; }
.ai-diag-wa-btn:active { transform: scale(.97); }

/* ══════════════════════════════════════════════════
   MOBILE PERSONA BAR (inside overlay)
══════════════════════════════════════════════════ */
.ai-mob-persona-bar {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
    background: var(--surface);
}
.ai-mob-persona-bar::-webkit-scrollbar { display: none; }

.ai-mob-persona-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--muted);
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, background .15s, color .15s;
}
.ai-mob-persona-tab:active { transform: scale(.96); }
.ai-mob-persona-tab.is-active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--text);
}

.ai-mob-tab-emoji { font-size: 15px; line-height: 1; }
.ai-mob-tab-name  { font-weight: 500; }

/* ══════════════════════════════════════════════════
   AI CHAT WIDGET — popup chat interface
══════════════════════════════════════════════════ */

/* Expand popup to fit chat */
.wa-popup { width: 340px; }

/* Messages area */
.wa-chat-messages {
    height: 210px;
    overflow-y: auto;
    padding: 12px 14px;
    background: var(--bg);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.wa-chat-messages::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 28px, var(--border) 28px, var(--border) 29px);
    opacity: .18;
    pointer-events: none;
}
.wa-chat-messages::-webkit-scrollbar { width: 3px; }
.wa-chat-messages::-webkit-scrollbar-thumb { background: var(--border); }

.wa-chat-row { display: flex; }
.wa-chat-row-in  { justify-content: flex-start; }
.wa-chat-row-out { justify-content: flex-end; }

.wa-chat-bubble-in {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 12px 12px 12px 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.55;
    max-width: 260px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    position: relative;
    z-index: 1;
}
.wa-chat-bubble-in strong { color: var(--accent); }
.wa-chat-bubble-in code   { background: rgba(255,255,255,.08); border-radius: 3px; padding: 1px 4px; font-size: 11.5px; }

.wa-chat-bubble-out {
    background: var(--primary);
    color: #fff;
    border-radius: 12px 12px 0 12px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.55;
    max-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    position: relative;
    z-index: 1;
}

/* Suggestion chips */
.wa-chat-chips {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    scrollbar-width: none;
    flex-shrink: 0;
}
.wa-chat-chips::-webkit-scrollbar { display: none; }

.wa-chip {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, color .15s;
}
.wa-chip:hover  { border-color: var(--primary); color: var(--text); }
.wa-chip:disabled { opacity: .4; cursor: not-allowed; }

/* Input row */
.wa-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
}

.wa-chat-input {
    flex: 1;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.wa-chat-input:focus { border-color: var(--primary); }
.wa-chat-input::placeholder { color: var(--muted); }

.wa-chat-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
}
.wa-chat-send:hover  { background: var(--primary-hover); }
.wa-chat-send:active { transform: scale(.93); }
.wa-chat-send:disabled { opacity: .5; cursor: not-allowed; }

/* WhatsApp handoff footer */
.wa-chat-footer {
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 20px 20px;
}
.wa-wha-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(37,211,102,.1);
    color: #22c55e;
    border: 1px solid rgba(37,211,102,.3);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.wa-wha-link:hover { background: rgba(37,211,102,.18); }

/* Stream cursor (reuse) */
.wa-stream-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    vertical-align: text-bottom;
    margin-left: 1px;
    animation: blink-cursor .7s infinite;
}

/* When no WA footer, round the input row */
.wa-chat-input-row:last-child { border-radius: 0 0 20px 20px; }

/* Error bubbles — subtle, non-alarming */
.ai-bubble-error {
    opacity: .75;
    font-style: italic;
    color: var(--muted, #9ca3af) !important;
}
.wa-chat-bubble-error {
    opacity: .75;
    font-style: italic;
    color: var(--muted, #9ca3af) !important;
}
