/* ============================================================================
   Fiscalens — Design tokens (paleta extraída do logo)
   Navy #0e1c46 · Ciano #06b6dc · Ciano claro #22d3ee
   Fundos casados com os PNGs dos logos: claro #fcfcfc · escuro #071323
   ========================================================================== */

:root {
  --brand-navy: #0e1c46;
  --brand-cyan: #06b6dc;
  --brand-cyan-2: #22d3ee;
  --brand-grad: linear-gradient(135deg, #06b6dc 0%, #22d3ee 60%, #67e8f9 100%);

  /* tema claro (padrão) */
  --bg: #fcfcfc;
  --bg-2: #f2f5f9;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --border: #dbe4ee;
  --text: #0b1730;
  --text-2: #43536d;
  --text-3: #6b7a93;
  --accent: #0891b2;
  --accent-strong: #06b6dc;
  --ok: #0e9f6e;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 10px 40px rgba(14, 28, 70, .10);
  --shadow-sm: 0 2px 12px rgba(14, 28, 70, .07);
  --glow: 0 0 40px rgba(6, 182, 220, .25);
  --header-bg: rgba(252, 252, 252, .8);
  --hero-line: rgba(14, 28, 70, .10);
  --code-bg: #0e1c46;

  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
}

[data-theme="dark"] {
  --bg: #071323;
  --bg-2: #0a1930;
  --surface: #0d1f3a;
  --surface-2: #122747;
  --border: #1c3355;
  --text: #e9f1fa;
  --text-2: #a8bcd4;
  --text-3: #718bab;
  --accent: #22d3ee;
  --accent-strong: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .35);
  --glow: 0 0 46px rgba(34, 211, 238, .22);
  --header-bg: rgba(7, 19, 35, .78);
  --hero-line: rgba(103, 232, 249, .09);
  --code-bg: #050e1c;
}

/* reset básico */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(6, 182, 220, .3); }

/* utilitários compartilhados */
.container { width: min(1180px, 92vw); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; cursor: pointer; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: var(--brand-grad); color: #04202b;
  box-shadow: 0 6px 24px rgba(6, 182, 220, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(6, 182, 220, .5); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: .35rem .8rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

input, select, textarea {
  font-family: inherit; font-size: .95rem;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .7rem .9rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
label { font-size: .82rem; font-weight: 600; color: var(--text-2); display: block; margin-bottom: .3rem; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* logo por tema — blend-mode dissolve o fundo sólido do PNG no fundo da página */
.logo-light { display: block; mix-blend-mode: multiply; }
.logo-dark { display: none; mix-blend-mode: screen; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* toggle de tema */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; color: var(--text-2); font-size: 1.1rem;
  transition: transform .2s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
