/* ==========================================================================
   Vértice — tema claro + botão de alternância
   O tema claro só vale com <html data-theme="light">. Sem isso nada muda.
   ========================================================================== */

/* ---------- botão sol/lua (vale nos dois temas) ---------- */
.theme-toggle {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%;
    background: rgba(190, 205, 255, 0.06);
    color: var(--ink-2); cursor: pointer;
    transition: color 0.2s ease, border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--cyan); border-color: rgba(0, 229, 255, 0.45); transform: rotate(14deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-moon { display: none; }
html[data-theme="light"] .theme-toggle .ico-sun { display: none; }
html[data-theme="light"] .theme-toggle .ico-moon { display: block; }
.logo-light { display: none !important; }
html[data-theme="light"] .logo-dark { display: none !important; }
html[data-theme="light"] .logo-light { display: block !important; }
@media (max-width: 860px) { .header-inner > .theme-toggle { margin-left: auto; } }
@media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
}

/* ---------- variáveis ---------- */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #F4F7FF;
    --bg-soft: #EAF0FF;
    --panel: rgba(255, 255, 255, 0.86);
    --surface: rgba(255, 255, 255, 0.62);
    --line: rgba(24, 36, 92, 0.15);
    --line-soft: rgba(24, 36, 92, 0.085);
    --ink: #0B1226;
    --ink-2: #3F4864;
    --ink-3: #596382;
    --cyan: #0A8CAE;
    --violet: #7C3AED;
    --pink: #E11D6A;
    scrollbar-color: #B9C4EA #F4F7FF;
}
html[data-theme="light"] ::-webkit-scrollbar-track { background: #F4F7FF; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #B9C4EA; border-color: #F4F7FF; }

/* ---------- header ---------- */
html[data-theme="light"] .site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 247, 255, 0.72));
    border-bottom-color: rgba(24, 36, 92, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 40px -30px rgba(24, 36, 92, 0.28);
}
html[data-theme="light"] .site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 255, 0.9));
}
html[data-theme="light"] .nav { background: #ffffff; }

/* ---------- hero ---------- */
html[data-theme="light"] .hero-media::after {
    background:
        linear-gradient(95deg, #F4F7FF 0%, rgba(244, 247, 255, 0.95) 30%, rgba(244, 247, 255, 0.6) 56%, rgba(244, 247, 255, 0.08) 80%, rgba(244, 247, 255, 0.3) 100%),
        linear-gradient(180deg, rgba(244, 247, 255, 0.8) 0%, rgba(244, 247, 255, 0) 24%, rgba(244, 247, 255, 0) 64%, #F4F7FF 100%);
}
html[data-theme="light"] .pipeline {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(236, 242, 255, 0.62));
    border-color: rgba(24, 36, 92, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 30px 70px -34px rgba(24, 36, 92, 0.45);
}
html[data-theme="light"] .step-num { background: #ffffff; }

/* ---------- vidro (spotlight) ---------- */
html[data-theme="light"] .glass-fx::before {
    background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.9), rgba(10, 140, 174, 0.07) 40%, transparent 66%);
    mix-blend-mode: normal;
}

/* ---------- seções ---------- */
html[data-theme="light"] .about {
    background: linear-gradient(180deg, rgba(234, 240, 255, 0), rgba(234, 240, 255, 0.85) 16%, rgba(234, 240, 255, 0.85) 84%, rgba(234, 240, 255, 0));
}
html[data-theme="light"] .case-media { background: #E6ECFF; box-shadow: 0 18px 40px -26px rgba(24, 36, 92, 0.5); }
html[data-theme="light"] .contact-shell { background: rgba(255, 255, 255, 0.72); box-shadow: 0 30px 80px -40px rgba(24, 36, 92, 0.4); }

/* ---------- footer ---------- */
html[data-theme="light"] .site-footer {
    background:
        linear-gradient(180deg, rgba(244, 247, 255, 0.96) 0%, rgba(244, 247, 255, 0.86) 50%, rgba(244, 247, 255, 0.95) 100%),
        url('../img/footer-bg.webp') center bottom / cover no-repeat,
        #F4F7FF;
}
html[data-theme="light"] .site-footer::after { background: radial-gradient(closest-side, rgba(10, 140, 174, 0.08), transparent); }

/* ---------- portfólio ---------- */
html[data-theme="light"] .pf-chip, html[data-theme="light"] .pf-search input { background: rgba(255, 255, 255, 0.7); }
html[data-theme="light"] .pf-chip[aria-pressed="true"] { background: rgba(10, 140, 174, 0.12); border-color: rgba(10, 140, 174, 0.55); }
html[data-theme="light"] .pf-more { background: rgba(10, 140, 174, 0.08); border-color: rgba(10, 140, 174, 0.45); }
html[data-theme="light"] .case-media::after { background: rgba(255, 255, 255, 0.78); color: var(--ink); border-color: rgba(24, 36, 92, 0.14); }
html[data-theme="light"] .pf-dialog::backdrop { background: rgba(214, 223, 250, 0.6); }
html[data-theme="light"] .pf-panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(240, 245, 255, 0.88));
    border-color: rgba(24, 36, 92, 0.14);
    box-shadow: inset 0 1px 0 #fff, 0 40px 90px -34px rgba(24, 36, 92, 0.55);
}
html[data-theme="light"] .pf-stage { background: rgba(228, 235, 255, 0.6); }
html[data-theme="light"] .pf-close { background: rgba(255, 255, 255, 0.8); }

/* ---------- botões e links ---------- */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .nav .btn-primary { background: linear-gradient(135deg, #0A8CAE, #0B7FB5); color: #fff; }
html[data-theme="light"] .btn-primary:hover { background: linear-gradient(135deg, #0DA0C6, #0E8FC8); color: #fff; }
html[data-theme="light"] .nav .btn-primary { box-shadow: 0 12px 28px -12px rgba(10, 140, 174, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
html[data-theme="light"] .nav .btn-primary:hover { color: #fff; box-shadow: 0 18px 40px -14px rgba(10, 140, 174, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
html[data-theme="light"] .link-arrow { border-bottom-color: rgba(24, 36, 92, 0.3); }
html[data-theme="light"] .cookie-bar { box-shadow: 0 24px 60px -20px rgba(24, 36, 92, 0.35); }

/* ---------- command center ---------- */
html[data-theme="light"] .cc-line--grad {
    background-image: linear-gradient(100deg, #0A8CAE 0%, #0B7FB5 18%, #7C3AED 42%, #0A8CAE 66%, #6D28D9 88%, #0A8CAE 100%);
    filter: none;
}
html[data-theme="light"] .cc-card {
    background:
        radial-gradient(130% 120% at 100% 0%, rgba(124, 58, 237, 0.07), transparent 58%),
        linear-gradient(168deg, rgba(255, 255, 255, 0.92), rgba(238, 243, 255, 0.74));
    box-shadow: 0 24px 60px -36px rgba(24, 36, 92, 0.42);
}
html[data-theme="light"] .cc-card:hover, html[data-theme="light"] .cc-card.is-open { border-color: rgba(10, 140, 174, 0.4); box-shadow: 0 30px 70px -34px rgba(24, 36, 92, 0.5), 0 0 40px rgba(10, 140, 174, 0.07); }
html[data-theme="light"] .cc-viz {
    background: radial-gradient(120% 140% at 20% 0%, rgba(0, 229, 255, 0.1), transparent 60%), linear-gradient(180deg, #0B1226, #111936);
    border-color: rgba(24, 36, 92, 0.2);
}
html[data-theme="light"] .cc-chip { color: var(--cyan); background: rgba(10, 140, 174, 0.08); border-color: rgba(10, 140, 174, 0.22); }
html[data-theme="light"] .cc-toggle { background: rgba(255, 255, 255, 0.7); }
html[data-theme="light"] .cc-gridlines { opacity: 0.09; }
html[data-theme="light"] .cc-side-chip { background: rgba(255, 255, 255, 0.7); }

/* ---------- sobre ---------- */
html[data-theme="light"] .about-note {
    border-color: var(--line);
    background: radial-gradient(120% 160% at 100% 0%, rgba(124, 58, 237, 0.07), transparent 58%), rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 60px -38px rgba(24, 36, 92, 0.4);
}
html[data-theme="light"] .about-note:hover { box-shadow: 0 30px 70px -34px rgba(24, 36, 92, 0.5); border-color: rgba(10, 140, 174, 0.35); }
html[data-theme="light"] .proof-row { background: rgba(255, 255, 255, 0.72); box-shadow: 0 18px 44px -34px rgba(24, 36, 92, 0.4); }
html[data-theme="light"] .proof-row:hover { border-color: rgba(10, 140, 174, 0.4); }
html[data-theme="light"] .proof-num { background-image: linear-gradient(120deg, #0B1226 10%, var(--cyan) 62%, var(--violet) 100%); }
html[data-theme="light"] .principle { background: rgba(255, 255, 255, 0.55); }
html[data-theme="light"] .principle:hover { background: rgba(255, 255, 255, 0.85); }

/* ---------- contato ---------- */
html[data-theme="light"] .form-panel { background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3)); }
html[data-theme="light"] .field input, html[data-theme="light"] .field textarea { background: rgba(255, 255, 255, 0.92); border-color: var(--line); box-shadow: inset 0 1px 2px rgba(24, 36, 92, 0.05); }
html[data-theme="light"] .field input::placeholder, html[data-theme="light"] .field textarea::placeholder { color: rgba(89, 99, 130, 0.72); }
html[data-theme="light"] .field input:hover, html[data-theme="light"] .field textarea:hover { border-color: rgba(24, 36, 92, 0.28); }
html[data-theme="light"] .field input:not(:placeholder-shown), html[data-theme="light"] .field textarea:not(:placeholder-shown) { border-color: rgba(10, 140, 174, 0.4); }
html[data-theme="light"] .field input:focus, html[data-theme="light"] .field textarea:focus { background: #fff; border-color: rgba(10, 140, 174, 0.75); box-shadow: 0 0 0 3px rgba(10, 140, 174, 0.14); }
html[data-theme="light"] .field:focus-within label { color: var(--cyan); }
html[data-theme="light"] .field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
    html[data-theme="light"] .hero-media::after {
        background: linear-gradient(180deg, rgba(244, 247, 255, 0.92) 0%, rgba(244, 247, 255, 0.74) 42%, rgba(244, 247, 255, 0.5) 74%, #F4F7FF 100%);
    }
}
