/* ==========================================================================
   NSyncro — Tema "Minimal" (versão de teste)
   Carregado DEPOIS de style.css.
   • Escuro: preto absoluto, tipografia branca, cor da logo como detalhe.
   • Claro: mantém a paleta clara padrão de style.css, com o mesmo layout
     minimalista (hero com linha de luz, tipografia leve).
   ========================================================================== */

/* ---------- Tokens do modo escuro ---------- */
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #000000;
  --surface: #0A0A0B;
  --surface-raised: #111113;
  --sheet: #000000;
  --ink: #F4F4F5;
  --ink-2: #B9B9BE;
  --muted: #85858C;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --grid: transparent;

  --accent: #FFFFFF;
  --accent-2: #3CC6F5;
  --accent-soft: rgba(255, 255, 255, .06);
  --ok: #7BDB5A;

  --btn-bg: #FFFFFF;
  --btn-fg: #000000;
  --btn-bg-hover: #E4E4E7;

  --drawing: #E4E4E7;
  --drawing-dim: #55555C;
  --drawing-fill: rgba(255, 255, 255, .025);

  --shadow-1: none;
  --shadow-2: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04);
  --header-bg: rgba(0, 0, 0, .78);
  --focus: 0 0 0 3px rgba(255, 255, 255, .25);
}
:root { --r-lg: 14px; }
:root[data-theme="dark"] ::selection { background: #fff; color: #000; }

/* ==========================================================================
   COMUM AOS DOIS TEMAS
   ========================================================================== */

/* Tipografia mais leve e limpa */
h1, h2, h3, h4 { font-weight: 500; font-variation-settings: "wdth" 100; letter-spacing: -0.035em; }
.hero-copy h1, .product-hero h1, .doc-hero h1 { font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; }
.section-head h2, .split h2, .compare h2, .faq-layout h2, .cta-band h2 { font-weight: 500; }
.result .value, .plan .price b { font-weight: 400; font-variation-settings: "wdth" 90; }

/* Números de resultado com o gradiente da logo */
.result .value {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Rótulo com brilho (✦) nas cores da logo */
.kicker { color: var(--ink-2); font-weight: 400; }
.kicker::before {
  content: "✦";
  width: auto; height: auto; border-radius: 0;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 15px; line-height: 1;
}

/* Botões */
.btn { border-radius: 8px; font-weight: 500; --_h: 44px; }

/* Header: links discretos, sublinhado com o gradiente da logo */
.main-nav a { color: var(--muted); font-weight: 400; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); font-weight: 400; }
.main-nav a::after { height: 2px; background: var(--brand-gradient); }

/* ---------- Hero da home: sem folha técnica, com linha de luz ---------- */
.hero { padding: 0; position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero .sheet { border: 0; background: none; }
.hero .sheet::before, .sheet-zones, .hero-drawing, .hero .title-block { display: none !important; }
.hero-sheet { grid-template-columns: minmax(0, 1fr); min-height: calc(100svh - var(--header-h)); max-height: 900px; align-content: center; }
.hero-copy { min-width: 0; padding: clamp(4rem, 3rem + 6vw, 8rem) 0 0; }
.hero-copy h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); max-width: 16ch; }
.hero-copy p { color: var(--ink-2); max-width: 52ch; }

.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow svg { position: absolute; right: -6%; bottom: 0; width: 112%; max-width: none; height: 100%; }
.hero-glow .g-fill { fill: url(#glowFill); }
.hero-glow .g-wide { fill: none; stroke: url(#glowGrad); stroke-width: 70; filter: url(#blurL); }
.hero-glow .g-mid { fill: none; stroke: url(#glowGrad); stroke-width: 7; opacity: .6; filter: url(#blurM); }
.hero-glow .g-core { fill: none; stroke: url(#coreGrad); stroke-width: 2; }
.hero-glow .g-spark { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; filter: url(#blurS); stroke-dasharray: .06 1; animation: spark 7s linear infinite; }
:root:not([data-theme="dark"]) .hero-glow .g-spark { stroke: #C4F02A; }
@keyframes spark { from { stroke-dashoffset: 1.06; } to { stroke-dashoffset: 0; } }
.js .hero-glow .g-core, .js .hero-glow .g-mid { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw calc(2.6s * var(--anim)) var(--ease) forwards .2s; }
.js .hero-glow .g-fill { opacity: 0; animation: glowIn calc(2.4s * var(--anim)) var(--ease) forwards .6s; }
.hero-glow .g-wide { opacity: .16; }
.js .hero-glow .g-wide { opacity: 0; animation: glowWide calc(2.4s * var(--anim)) var(--ease) forwards .6s; }
@keyframes glowIn { to { opacity: 1; } }
@keyframes glowWide { to { opacity: .16; } }

/* Faixa "formatos" no rodapé do hero */
.hero-strip { min-width: 0; display: flex; align-items: center; gap: 2.5rem; padding: clamp(3rem, 2rem + 4vw, 6rem) 0 2.5rem; }
.hero-strip p { flex-shrink: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; max-width: 18ch; }
.hero-strip .strip { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hero-strip ul { display: flex; gap: 3.5rem; width: max-content; list-style: none; padding: 0; animation: strip 28s linear infinite; }
.hero-strip li { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; letter-spacing: -0.01em; }
.hero-strip li .icon { width: 22px; height: 22px; color: var(--accent-2); }
@keyframes strip { to { transform: translateX(-50%); } }

/* Painel do produto (página do Draw) com feixes diagonais */
.product-hero .app-stage {
  position: relative;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding: clamp(1.25rem, 1rem + 4vw, 4.5rem) clamp(1rem, 1rem + 4vw, 4.5rem) 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(10, 92, 240, .05) 38% 44%, transparent 44% 52%, rgba(18, 181, 245, .04) 52% 61%, transparent 61% 70%, rgba(60, 200, 74, .05) 70% 78%, transparent 78%),
    radial-gradient(120% 90% at 80% 0%, #FFFFFF 0%, #EEF1F4 70%);
}
.product-hero .app-stage::before { display: none; }
.product-hero .app-stage::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--brand-gradient); }
.app-window { transform: perspective(1800px) rotateX(4deg); transform-origin: top center; }
.illustrative-note { padding: .75rem 0 1rem; }

/* ==========================================================================
   APENAS MODO ESCURO
   ========================================================================== */
:root[data-theme="dark"] .btn--ghost { background: #0B0B0C; border-color: var(--line-strong); color: var(--ink); }
:root[data-theme="dark"] .btn--ghost:hover { border-color: rgba(255, 255, 255, .4); background: #141416; }
:root[data-theme="dark"] .product-hero .app-stage {
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .05) 38% 44%, transparent 44% 52%, rgba(255, 255, 255, .035) 52% 61%, transparent 61% 70%, rgba(255, 255, 255, .06) 70% 78%, transparent 78%),
    radial-gradient(120% 90% at 80% 0%, #1a1a1d 0%, #050505 60%);
}
:root[data-theme="dark"] .app-window { border-color: rgba(255, 255, 255, .14); background: #0A0A0B; }
:root[data-theme="dark"] .app-titlebar { background: #0E0E10; }

:root[data-theme="dark"] .section--alt { border-top: 1px solid var(--line); }
:root[data-theme="dark"] .product-media { background: radial-gradient(90% 120% at 50% 0%, #121214, #070708); }
:root[data-theme="dark"] .status,
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .plan-tag--soft,
:root[data-theme="dark"] .bot-chip { background: #0B0B0C; }
:root[data-theme="dark"] .chip { color: var(--ink-2); }
:root[data-theme="dark"] .plan-tag { background: #fff; color: #000; }
:root[data-theme="dark"] .plan-tag--soft { color: var(--ink-2); }
:root[data-theme="dark"] .bar-fill--manual { background: #3A3A3F; opacity: 1; }
:root[data-theme="dark"] .principle .icon,
:root[data-theme="dark"] .feature .icon { color: var(--ink); }
:root[data-theme="dark"] .review-avatar { background: #1C1C1F; color: var(--ink); border: 1px solid var(--line-strong); }
:root[data-theme="dark"] .link-arrow,
:root[data-theme="dark"] .doc a:not(.btn),
:root[data-theme="dark"] .rf-consent a { color: var(--ink); }

:root[data-theme="dark"] .cta-band { background: radial-gradient(80% 140% at 85% 0%, #1b1b1e, #060607 70%); border: 1px solid var(--line); }
:root[data-theme="dark"] .cta-band::before { background: linear-gradient(115deg, transparent 0 55%, rgba(255,255,255,.05) 55% 62%, transparent 62% 72%, rgba(255,255,255,.04) 72% 80%, transparent 80%); mask-image: none; -webkit-mask-image: none; }
:root[data-theme="dark"] .cta-band .btn--primary { background: #fff; color: #000; }
:root[data-theme="dark"] .cta-band .btn--primary:hover { background: #E4E4E7; }

:root[data-theme="dark"] .wa-float { background: #fff; color: #000; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .25); }
:root[data-theme="dark"] .wa-float:hover { background: #E4E4E7; }
:root[data-theme="dark"] .wa-float::after { display: none; }
:root[data-theme="dark"] .bot { background: #0A0A0B; }
:root[data-theme="dark"] .bot-head { background: #0E0E10; }
:root[data-theme="dark"] .bot-msg--bot p,
:root[data-theme="dark"] .bot-typing { background: #18181B; }
:root[data-theme="dark"] .bot-msg--user p { background: #fff; color: #000; }
:root[data-theme="dark"] .bot-foot .btn { background: #fff; color: #000; }
:root[data-theme="dark"] .bot-foot .btn:hover { background: #E4E4E7; }
:root[data-theme="dark"] .bot-chip:hover { color: #fff; border-color: rgba(255,255,255,.5); background: #141416; }

/* ---------- Responsivo e movimento reduzido ---------- */
@media (max-width: 860px) {
  .hero-strip { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-strip .strip { width: 100%; }
  .app-window { transform: none; }
}
@media (max-width: 560px) {
  .hero-copy { padding-top: 3.5rem; }
  .hero-glow svg { width: 180%; right: -40%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow .g-spark, .hero-strip ul { animation: none; }
}

/* Ajustes finos */
.result .value { display: inline-block; }
:root[data-theme="dark"] .plan-tag.plan-tag--soft { background: #0B0B0C; color: var(--ink-2); border-color: var(--line-strong); }

/* Animação perpétua da linha de luz: dois brilhos percorrendo a curva + "respiração" do halo */
.hero-glow .g-spark { animation-duration: 6s; }
.hero-glow .g-spark--2 { stroke: #C4F02A; stroke-width: 2.4; animation-duration: 6s; animation-delay: -3s; }
:root:not([data-theme="dark"]) .hero-glow .g-spark--2 { stroke: #12B5F5; }
.js .hero-glow .g-mid { animation: draw calc(2.6s * var(--anim)) var(--ease) forwards .2s, breathe 5s ease-in-out calc(3s * var(--anim)) infinite; }
.js .hero-glow .g-wide { animation: glowWide calc(2.4s * var(--anim)) var(--ease) forwards .6s, breatheWide 5s ease-in-out calc(3s * var(--anim)) infinite; }
@keyframes breathe { 0%, 100% { opacity: .6; } 50% { opacity: .95; } }
@keyframes breatheWide { 0%, 100% { opacity: .16; } 50% { opacity: .28; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-glow .g-mid { animation: none; stroke-dashoffset: 0; opacity: .6; }
  .js .hero-glow .g-wide { animation: none; opacity: .16; }
  .hero-glow .g-spark--2 { animation: none; opacity: 0; }
}

/* Mais presença: brilhos maiores e mais rápidos e halo mais intenso */
.hero-glow .g-core { stroke-width: 2.4; }
.hero-glow .g-spark { stroke-width: 4; stroke-dasharray: .12 1; animation-duration: 4.5s; }
.hero-glow .g-spark--2 { stroke-width: 3.2; animation-duration: 4.5s; animation-delay: -1.5s; }
.hero-glow .g-spark--3 { stroke: #12B5F5; stroke-width: 3; animation-duration: 4.5s; animation-delay: -3s; }
:root:not([data-theme="dark"]) .hero-glow .g-spark--3 { stroke: #0A5CF0; }
.js @keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes breatheWide { 0%, 100% { opacity: .14; } 50% { opacity: .38; } }
.js .hero-glow .g-mid { animation: draw calc(2.6s * var(--anim)) var(--ease) forwards .2s, breathe 3.5s ease-in-out calc(3s * var(--anim)) infinite; }
.js .hero-glow .g-wide { animation: glowWide calc(2.4s * var(--anim)) var(--ease) forwards .6s, breatheWide 3.5s ease-in-out calc(3s * var(--anim)) infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-glow .g-spark--3,   .js }


/* Vídeo/print real no topo do Draw: janela reta, sem inclinação, cantos completos */
.app-window.app-window--media { transform: none; border-radius: var(--r-lg); border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
:root[data-theme="light"] .app-window.app-window--media { border-bottom-color: var(--line-strong); }
.app-window--media .app-shot { aspect-ratio: auto; }
