/* =========================================================================
   Sondi Labs · v2 — light & dark themes
   Tokens baseados na paleta Radix-style (canvas, gray-1..12, accents)
========================================================================= */

/* ---------- FONTES ALOJADAS LOCALMENTE (privacidade + velocidade) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* ---------- THEME TOKENS ---------- */

:root,
[data-theme="dark"] {
  --bg: #000000;
  --bg-elev: #0a0b0d;
  --canvas: #14151799;
  --surface: #141517;
  --surface-2: #191b1e;
  --border: #212629;
  --border-strong: #293034;
  --line: #1a1d1f;
  --text: #f0f0f0;
  --text-2: #a1a4a5;
  --text-muted: #878d8f;
  --text-faint: #6e7679;
  --text-on-brand: #000000;

  --brand: #ffffff;
  --brand-hover: #f0f0f0;

  --accent-blue: #3b82f6;
  --accent-cyan: #3b82f6;
  --accent-orange: #ff801f;
  --accent-amber: #ffc53d;
  --accent-violet: #8d54ff;

  --code-bg: #0a0c0f;
  --code-border: #1a1d22;
  --code-text: #cbd5e1;
  --code-keyword: #c084fc;
  --code-string: #86efac;
  --code-number: #fcd34d;
  --code-comment: #64748b;
  --code-fn: #60a5fa;
  --code-prop: #f0abfc;

  --grid-stroke: rgba(255, 255, 255, 0.04);
  --glow: rgba(0, 183, 215, 0.25);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* ---------- RESET ---------- */

*, *::before, *::after {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; cursor: pointer; color: inherit; }

::selection {
  background: color-mix(in oklab, var(--accent-cyan) 30%, transparent);
  color: var(--text);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- LAYOUT ---------- */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-tight { max-width: 920px; }
.container-narrow { max-width: 680px; }

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.center { text-align: center; }
.relative { position: relative; }

/* ---------- TYPOGRAPHY ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", "Commit Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent-cyan);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 28px;
}
.eyebrow .mono { color: var(--accent-cyan); }
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  font-weight: 500;
}
h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
h4 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-2);
  max-width: 56ch;
  line-height: 1.55;
}
.lede.center { margin-left: auto; margin-right: auto; }

.mono { font-family: "JetBrains Mono", "Commit Mono", ui-monospace, monospace; }
.text-accent { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); }

em.accent {
  font-style: normal;
  color: var(--accent-cyan);
  font-weight: 500;
}

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.brand:hover .brand-mark {
  border-color: var(--accent-cyan);
  transform: rotate(-4deg);
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-text { font-weight: 500; }
.brand-text .labs {
  font-family: "JetBrains Mono", "Commit Mono", ui-monospace, monospace;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
}

.primary-nav {
  display: flex;
  gap: 26px;
  margin-left: 24px;
  font-size: 13.5px;
}
.primary-nav a {
  color: var(--text-2);
  position: relative;
  transition: color 0.2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-nav a:hover { color: var(--accent-cyan); }
.primary-nav a:hover::after,
.primary-nav a.active::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--accent-cyan); }

.nav-spacer { flex: 1; }

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
}
.theme-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.theme-switch a.active {
  color: var(--text);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav.open {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    padding: 16px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
}
.btn-primary:hover {
  background: #5b9aff;
  border-color: #5b9aff;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px rgba(59, 130, 246, 0.55);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-arrow svg {
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
}
.btn-arrow:hover svg { transform: translateX(2px); }

/* ---------- HERO ---------- */

.hero {
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-stroke) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-stroke) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 em.accent {
  display: inline-block;
}
.hero .lede {
  margin: 1.2rem auto 2rem;
}
.hero-ctas {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- TRUST BAR ---------- */

.trust-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-bar .trust-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 5vw, 56px);
  filter: grayscale(100%);
  opacity: 0.65;
}
.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 15px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.trust-logo svg { width: 22px; height: 22px; color: var(--text-2); }

/* ---------- SHOWCASE / FEATURE BLOCK ---------- */

.feature-block {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.feature-block-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.feature-block-header h2 em.accent { color: var(--accent-cyan); }

/* code window */
.code-window {
  max-width: 880px;
  margin: 0 auto;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: "JetBrains Mono", "Commit Mono", ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--code-text);
}
.code-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--code-border);
  background: rgba(255,255,255,0.02);
}
.code-dots {
  display: inline-flex;
  gap: 6px;
}
.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a3f47;
}
.code-tabs {
  display: flex;
  gap: 4px;
  margin-left: 24px;
}
.code-tab {
  padding: 4px 12px;
  font-size: 11.5px;
  border-radius: 4px;
  color: #6e7679;
  cursor: pointer;
}
.code-tab.active {
  color: var(--code-text);
  background: rgba(255,255,255,0.05);
}
.code-filename {
  margin-left: auto;
  font-size: 11.5px;
  color: #6e7679;
}
.code-body {
  padding: 22px 24px;
  overflow-x: auto;
}
.code-body pre { color: inherit; }
.kw  { color: var(--code-keyword); }
.str { color: var(--code-string); }
.num { color: var(--code-number); }
.com { color: var(--code-comment); font-style: italic; }
.fn  { color: var(--code-fn); }
.prop { color: var(--code-prop); }
.cursor-blink {
  display: inline-block;
  width: 7px; height: 1.1em;
  background: var(--accent-cyan);
  vertical-align: -2px;
  animation: blink 1.1s step-end infinite;
}

/* ---------- TWO-COL FEATURES ---------- */

.two-col-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) { .two-col-features { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.feature-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; }
.feature-card .feature-visual {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: "JetBrains Mono", "Commit Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---------- FEATURES GRID ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.features-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .features-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid-3 { grid-template-columns: 1fr; }
}
.feature-item {
  background: var(--bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-item .feature-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  margin-bottom: 10px;
}
.feature-item h3 { font-size: 1rem; margin: 0; }
.feature-item p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ---------- TESTIMONIALS ---------- */

.testimonial-big {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.testimonial-big blockquote {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.testimonial-big blockquote::before {
  content: """;
  font-size: 4rem;
  color: var(--accent-cyan);
  font-family: serif;
  display: block;
  line-height: 0.6;
  margin-bottom: 0.4rem;
}
.testimonial-author {
  font-size: 14px;
  color: var(--text-muted);
}
.testimonial-author strong {
  color: var(--text);
  font-weight: 500;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.testimonial-card blockquote {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 16px;
}
.testimonial-card .testimonial-author {
  display: flex; align-items: center; gap: 10px;
}
.testimonial-card .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

/* ---------- CTA ---------- */

.final-cta {
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
}
.final-cta h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.final-cta .lede { margin: 0 auto 2.5rem; }
.final-cta-ctas { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- METRICS / STATS ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 3rem;
}
.stat-item {
  background: var(--bg);
  padding: 24px 20px;
  text-align: left;
}
.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-label {
  font-family: "JetBrains Mono", "Commit Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- FOOTER ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 4rem 0 2rem;
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); max-width: 30ch; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}
.footer-col h4 {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 11.5px;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-cyan); }

.footer-base {
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-faint);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- ANIMATIONS ---------- */

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
  .cursor-blink { animation: none; }
  .eyebrow .dot { animation: none; }
}

/* ---------- HERO LOGO MARK (destaque acima do eyebrow) ---------- */

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 6px rgba(59, 130, 246, 0.06),
    0 24px 48px -16px rgba(59, 130, 246, 0.45);
  animation: heroLogoFloat 6s ease-in-out infinite;
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.35), transparent 65%);
  filter: blur(14px);
  z-index: -1;
  opacity: 0.7;
  animation: heroLogoPulse 4s ease-in-out infinite;
}
.hero-logo svg {
  width: 60%;
  height: 60%;
  display: block;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes heroLogoPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}
@media (max-width: 720px) {
  .hero-logo { width: 72px; height: 72px; margin-bottom: 22px; }
}

/* ---------- FAB WHATSAPP (azul electric) ---------- */

.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #ffffff;
  z-index: 60;
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.12),
    0 14px 36px -8px rgba(59, 130, 246, 0.55);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease;
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab::after {
  content: "Falar por WhatsApp";
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa-fab:hover {
  background: #5b9aff;
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 0 0 6px rgba(59, 130, 246, 0.16),
    0 18px 44px -8px rgba(59, 130, 246, 0.65);
}
.wa-fab:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.wa-fab .wa-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  opacity: 0.6;
  animation: waPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (max-width: 720px) {
  .wa-fab {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
  .wa-fab svg { width: 26px; height: 26px; }
  .wa-fab::after { display: none; }
}

/* ---------- HERO ANOMALOUS MATTER (Three.js) ---------- */

.hero-anomalous {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(2rem, 6vh, 4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-anomalous .hero-inner { transform: translateY(-6vh); }
.hero-anomalous-canvas { transform: translateY(-10%); }
.hero-anomalous-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-anomalous-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.hero-anomalous-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
[data-theme="dark"] .hero-anomalous { background: #000; }
[data-theme="dark"] .hero-anomalous-fade {
  background:
    linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,0.0) 72%);
}
[data-theme="light"] .hero-anomalous { background: var(--bg); }
[data-theme="light"] .hero-anomalous-fade {
  background:
    linear-gradient(to top, rgba(253,253,253,0.97) 0%, rgba(253,253,253,0.65) 35%, rgba(253,253,253,0.0) 72%);
}

.hero-anomalous .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-anomalous .eyebrow {
  background: transparent;
  border: 0;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  margin-bottom: 22px;
  padding: 0;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-anomalous .eyebrow .mono { color: var(--accent-cyan); }
.hero-anomalous h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-anomalous .lede {
  max-width: 60ch;
  margin: 0.6rem auto 2rem;
}
.hero-anomalous .hero-ctas {
  justify-content: center;
}

@media (max-width: 720px) {
  .hero-anomalous { min-height: 92vh; padding-bottom: 3rem; }
  .hero-anomalous h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-anomalous .hero-inner { transform: translateY(-4vh); }
  .hero-anomalous-canvas { transform: translateY(-8%); }
}

/* ---------- HERO SPLINE 3D (legacy, mantido) ---------- */

.hero-spline {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
}
.hero-spline-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-spline-canvas spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-spline-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Dark: fade forte só à esquerda (onde está o texto) — centro/direita revelam o 3D */
[data-theme="dark"] .hero-spline {
  background: #000;
}
[data-theme="dark"] .hero-spline-overlay {
  background:
    linear-gradient(to right,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.78) 18%,
      rgba(0, 0, 0, 0.35) 38%,
      rgba(0, 0, 0, 0.05) 60%,
      rgba(0, 0, 0, 0.0) 80%
    ),
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.0) 60%,
      rgba(0, 0, 0, 0.85) 100%
    ),
    radial-gradient(ellipse 55% 40% at 75% 50%, rgba(59, 130, 246, 0.12), transparent 70%);
}

/* Light: inverter brightness + fade lateral subtil para destacar texto */
[data-theme="light"] .hero-spline {
  background: var(--bg);
}
[data-theme="light"] .hero-spline-canvas {
  filter: invert(1) hue-rotate(180deg) saturate(0.7) brightness(1.05);
  opacity: 0.9;
}
[data-theme="light"] .hero-spline-overlay {
  background:
    linear-gradient(to right,
      rgba(253, 253, 253, 0.96) 0%,
      rgba(253, 253, 253, 0.82) 18%,
      rgba(253, 253, 253, 0.4) 38%,
      rgba(253, 253, 253, 0.05) 60%,
      rgba(253, 253, 253, 0.0) 80%
    ),
    linear-gradient(to bottom,
      rgba(253, 253, 253, 0.0) 60%,
      rgba(253, 253, 253, 0.9) 100%
    ),
    radial-gradient(ellipse 55% 40% at 75% 50%, rgba(21, 93, 252, 0.10), transparent 70%);
}

/* Texto alinhado à esquerda, ocupa só ~ metade-esquerda do hero */
.hero-spline .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0;
  margin-right: auto;
  text-align: left;
}
.hero-spline .hero-inner .eyebrow { margin-bottom: 28px; }
.hero-spline .hero-inner .hero-ctas { justify-content: flex-start; }

/* Em mobile: overlay full-cover para texto ler sobre Spline */
@media (max-width: 860px) {
  .hero-spline { min-height: 88vh; }
  [data-theme="dark"] .hero-spline-overlay {
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.85) 100%),
      radial-gradient(ellipse 70% 50% at 50% 30%, rgba(59,130,246,0.15), transparent 70%);
  }
  [data-theme="light"] .hero-spline-overlay {
    background:
      linear-gradient(to bottom, rgba(253,253,253,0.7) 0%, rgba(253,253,253,0.9) 100%),
      radial-gradient(ellipse 70% 50% at 50% 30%, rgba(21,93,252,0.12), transparent 70%);
  }
  .hero-spline .hero-inner { max-width: 100%; text-align: center; }
  .hero-spline .hero-inner .hero-ctas { justify-content: center; }
}

/* loading state antes do web component carregar */
spline-viewer:not(:defined) {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(59,130,246,0.18), transparent 70%),
    var(--bg);
}
spline-viewer::part(logo) { display: none !important; }

/* ---------- PAGE HERO (páginas internas, sem Spline) ---------- */

.page-hero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-stroke) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-stroke) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); margin-bottom: 1.2rem; }
.page-hero .lede { max-width: 60ch; font-size: clamp(1rem, 1.4vw, 1.2rem); }

/* ---------- PROCESS DETAIL (página processo) ---------- */

.process-detail {
  display: grid;
  gap: clamp(3rem, 5vw, 4rem);
}
.process-detail-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.process-detail-item:last-child { border-bottom: 0; }
.process-detail-meta .step-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 26px;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.process-detail-meta .step-duration {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.process-detail-content {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.process-detail-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}
.process-detail-bullets {
  list-style: none;
  margin: 1rem 0;
  display: grid;
  gap: 0.7rem;
}
.process-detail-bullets li {
  display: flex; align-items: flex-start; gap: 14px;
  color: var(--text-2);
  font-size: 15px;
}
.process-detail-bullets li::before {
  content: "→";
  color: var(--accent-cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  margin-top: 4px;
  flex-shrink: 0;
}
.process-detail-closer {
  font-style: italic;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin-top: 1.2rem;
}

@media (max-width: 720px) {
  .process-detail-item { grid-template-columns: 1fr; }
  .process-detail-content { border-left: 0; padding-left: 0; }
}

/* ---------- ABOUT (sobre.html) ---------- */

.about-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}
.about-section:nth-child(even) { background: var(--bg-elev); }
.about-section .step-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.8rem 0 1.5rem;
}
.about-section p { color: var(--text-2); font-size: 16.5px; max-width: 68ch; }
.about-section p + p { margin-top: 1rem; }
.about-section ul.principles {
  list-style: none;
  display: grid;
  gap: 1.4rem;
  margin-top: 1rem;
}
.about-section ul.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
}
.about-section ul.principles li::before {
  content: "→";
  color: var(--accent-cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  margin-top: 6px;
}
.about-section ul.principles strong { color: var(--text); font-weight: 500; }
.about-section ul.principles span.desc { color: var(--text-2); }
.about-section ul.note-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}
.about-section ul.note-list li {
  padding-left: 18px;
  border-left: 2px solid var(--accent-cyan);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item:hover, .faq-item[open] { border-color: var(--accent-cyan); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-weight: 500;
  font-size: 16.5px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.faq-q-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent-cyan);
  margin-top: 3px;
  flex-shrink: 0;
}
.faq-toggle-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.faq-item[open] .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--accent-cyan);
}
.faq-a {
  padding: 0 24px 22px 60px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.faq-a p { margin: 0 0 0.8rem; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- CONTACT FORM ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-form {
  display: grid;
  gap: 22px;
}
.contact-form .field { display: grid; gap: 6px; }
.contact-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .contact-form .field-row { grid-template-columns: 1fr; } }
.contact-form label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-cyan) 18%, transparent);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.contact-form .consent input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 3px;
  accent-color: var(--accent-cyan);
  padding: 0;
}
.contact-form .consent a { color: var(--accent-cyan); }
.form-status {
  display: none;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.form-status.ok {
  display: block;
  background: color-mix(in oklab, var(--accent-cyan) 12%, transparent);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}
.form-status.err {
  display: block;
  background: rgba(225, 0, 20, 0.1);
  border: 1px solid #e10014;
  color: #ff5566;
}

.contact-aside h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}
.contact-aside .channel { margin-bottom: 1.6rem; }
.contact-aside .channel-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-aside .channel-value {
  color: var(--text);
  font-size: 15px;
}
.contact-aside .channel-value a:hover { color: var(--accent-cyan); }
.contact-aside .channel-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.contact-aside .note {
  margin-top: 2rem;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-aside .note strong {
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

/* ---------- HERO SHADER (legacy, mantido) ---------- */

.hero-with-shader {
  overflow: hidden;
  background: #000;
}
.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
.hero-shader-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, transparent 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 35%, rgba(0,0,0,0.9) 100%);
}
.hero-with-shader .hero-inner {
  position: relative;
  z-index: 2;
}
.hero-with-shader .eyebrow {
  background: rgba(10, 11, 13, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

/* light theme: hide shader, restore grid bg from prev hero */
[data-theme="light"] .hero-shader,
[data-theme="light"] .hero-shader-fade {
  display: none;
}
[data-theme="light"] .hero-with-shader {
  background: var(--bg);
}
[data-theme="light"] .hero-with-shader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-stroke) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-stroke) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- PROCESS STEPS ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background-image: linear-gradient(to right, var(--accent-cyan) 50%, transparent 50%);
  background-size: 8px 1px;
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  box-shadow: 0 0 0 4px var(--bg);
}
.process-step-active .step-num {
  background: var(--accent-cyan);
  color: var(--bg);
  border-color: var(--accent-cyan);
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 14px; color: var(--text-muted); }

@media (max-width: 720px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
}

/* ---------- EXPERIENCE ICONS (substituem A/B/C/D) ---------- */

.exp-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.exp-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.exp-icon svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover .exp-icon {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px var(--glow);
}
.feature-card:hover .exp-icon::after { opacity: 1; }
.feature-card:hover .exp-icon svg { transform: rotate(-6deg) scale(1.08); }

/* animated stroke lines inside icons */
.exp-icon .pulse-line {
  stroke-dasharray: 4 2;
  animation: dashFlow 3s linear infinite;
  opacity: 0.6;
}
.feature-card:hover .exp-icon .pulse-line { opacity: 1; }
@keyframes dashFlow {
  to { stroke-dashoffset: -24; }
}
