:root {
  color-scheme: light dark;

  --fx-bg: #f5f6fa;
  --fx-bg-surface: #ffffff;
  --fx-text-main: #0f1115;
  --fx-text-secondary: #6f7280;
  --fx-border-subtle: #d3d6e4;

  --fx-primary: #7c4dff;
  --fx-primary-soft: #ece4ff;
  --fx-accent: #00c2ff;

  --fx-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;

  --fx-space-xs: 8px;
  --fx-space-sm: 16px;
  --fx-space-md: 24px;
  --fx-space-lg: 40px;
  --fx-space-xl: 64px;
  --fx-space-xxl: 96px;
  --fx-space-xxxl: 144px;

  --fx-container-width: 1200px;
}

/* Tema escuro */
[data-theme="dark"] {
  --fx-bg: #050509;
  --fx-bg-surface: #0d0f16;
  --fx-text-main: #f5f6fa;
  --fx-text-secondary: #a0a4b8;
  --fx-border-subtle: #272b3a;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fx-font-sans);
  background: var(--fx-bg);
  color: var(--fx-text-main);
  -webkit-font-smoothing: antialiased;
}

.fx-container {
  width: 100%;
  max-width: var(--fx-container-width);
  margin: 0 auto;
  padding: 0 var(--fx-space-sm);
}

main {
  padding-top: 80px; /* espaço para header fixo */
}

/* HEADER */

.fx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  backdrop-filter: blur(12px);
  background: rgba(245, 246, 250, 0.9);
  border-bottom: 1px solid rgba(211, 214, 228, 0.6);
  z-index: 100;
}

[data-theme="dark"] .fx-header {
  background: rgba(8, 10, 18, 0.9);
  border-bottom-color: rgba(39, 43, 58, 0.9);
}

.fx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.fx-logo {
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--fx-text-main);
}

.fx-nav {
  display: flex;
  align-items: center;
  gap: var(--fx-space-md);
}

.fx-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--fx-text-secondary);
}

.fx-nav a:hover {
  color: var(--fx-text-main);
}

/* botão menu mobile */
.fx-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* BOTÕES */

.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--fx-space-md);
  height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--fx-text-main);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease-out, box-shadow 0.18s ease-out, transform 0.18s ease-out;
}

.fx-btn:hover {
  background: #1c2027;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.fx-btn--small {
  height: 40px;
  padding: 0 var(--fx-space-sm);
  font-size: 13px;
}

/* SEÇÕES GENÉRICAS */

.fx-section {
  padding: var(--fx-space-xxl) 0;
}

.fx-section-muted {
  background: var(--fx-bg-surface);
}

.fx-section-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.fx-center {
  text-align: center;
}

/* HERO */

.fx-hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.fx-hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--fx-space-xl);
  align-items: center;
}

.fx-kicker {
  font-size: 14px;
  color: var(--fx-text-secondary);
  margin-bottom: var(--fx-space-sm);
}

.fx-hero h1 {
  font-size: 48px;
  margin: 0 0 var(--fx-space-sm);
}

.fx-hero-sub {
  font-size: 18px;
  color: var(--fx-text-secondary);
  max-width: 480px;
  margin-bottom: var(--fx-space-md);
}

.fx-hero-actions {
  display: flex;
  gap: var(--fx-space-md);
  align-items: center;
}

.fx-hero-link {
  font-size: 14px;
  color: var(--fx-text-main);
  text-decoration: none;
}

.fx-hero-link:hover {
  text-decoration: underline;
}

.fx-hero-card {
  background: var(--fx-bg-surface);
  border-radius: 24px;
  padding: var(--fx-space-lg);
  border: 1px solid rgba(211, 214, 228, 0.7);
}

.fx-hero-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fx-text-secondary);
  margin-bottom: var(--fx-space-xs);
}

.fx-hero-card-text {
  font-size: 14px;
  color: var(--fx-text-main);
}

/* TIPOGRAFIA */

h1,
h2,
h3 {
  font-weight: 600;
}

h2 {
  font-size: 32px;
  margin: 0 0 var(--fx-space-sm);
}

h3 {
  font-size: 20px;
  margin: 0 0 var(--fx-space-xs);
}

p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 var(--fx-space-sm);
}

.fx-quote {
  margin-top: var(--fx-space-lg);
  font-size: 14px;
  color: var(--fx-text-secondary);
  font-style: italic;
}

.fx-quote span {
  font-style: normal;
  font-size: 13px;
}

/* GRID FILOSOFIA */

.fx-section-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--fx-space-xl);
  align-items: flex-start;
}

.fx-list-card {
  background: var(--fx-bg-surface);
  border-radius: 20px;
  border: 1px solid rgba(211, 214, 228, 0.7);
  padding: var(--fx-space-md);
}

.fx-list-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fx-list-card li {
  font-size: 14px;
  margin-bottom: var(--fx-space-xs);
}

/* CARDS SOLUÇÕES */

.fx-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fx-space-md);
  margin-top: var(--fx-space-md);
}

.fx-card {
  background: var(--fx-bg-surface);
  border-radius: 20px;
  border: 1px solid rgba(211, 214, 228, 0.7);
  padding: var(--fx-space-md);
}

.fx-card-link {
  font-size: 14px;
  color: var(--fx-text-main);
  text-decoration: none;
}

.fx-card-link:hover {
  text-decoration: underline;
}

.fx-platform-teaser {
  margin-top: var(--fx-space-lg);
  font-size: 14px;
}

/* MVV GRID */

.fx-mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fx-space-lg);
}

/* FORMULÁRIOS (contato) */

.fx-form {
  max-width: 520px;
  margin: 0 auto;
}

.fx-form-group {
  margin-bottom: var(--fx-space-md);
}

.fx-form-label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--fx-text-secondary);
}

.fx-input,
.fx-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--fx-border-subtle);
  font-size: 15px;
  font-family: var(--fx-font-sans);
  background: #ffffff;
}

[data-theme="dark"] .fx-input,
[data-theme="dark"] .fx-textarea {
  background: #050509;
  color: var(--fx-text-main);
}

.fx-textarea {
  min-height: 120px;
  resize: vertical;
}

.fx-input:focus,
.fx-textarea:focus {
  outline: none;
  border-color: var(--fx-primary);
  box-shadow: 0 0 0 1px rgba(124, 77, 255, 0.15);
}

.fx-note {
  font-size: 14px;
  color: var(--fx-text-secondary);
  margin-top: var(--fx-space-sm);
}

/* FOOTER */

.fx-footer {
  background: #0f1115;
  color: #f5f6fa;
  padding: var(--fx-space-xl) 0;
  margin-top: var(--fx-space-xxl);
}

.fx-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fx-space-md);
  justify-content: space-between;
  align-items: center;
}

.fx-footer-main p {
  margin: 0;
  font-size: 14px;
}

.fx-footer-links {
  display: flex;
  gap: var(--fx-space-sm);
}

.fx-footer-links a {
  font-size: 13px;
  color: #d3d6e4;
  text-decoration: none;
}

.fx-footer-links a:hover {
  color: #ffffff;
}

/* MICROINTERAÇÕES */

.fx-card,
.fx-list-card,
.fx-hero-card {
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.fx-card:hover,
.fx-list-card:hover,
.fx-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 17, 21, 0.08);
  border-color: rgba(124, 77, 255, 0.6);
}

/* sublinhado elegante nos links do menu */
.fx-nav a {
  position: relative;
}

.fx-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c4dff, #00c2ff);
  transition: width 0.15s ease-out;
}

.fx-nav a:hover::after {
  width: 100%;
}

/* lift no botão principal do hero */
.fx-hero-actions .fx-btn:hover {
  transform: translateY(-2px);
}

/* BOTÃO TEMA */

.fx-theme-toggle {
  margin-left: var(--fx-space-sm);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--fx-border-subtle);
  background: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out, transform 0.15s ease-out;
}

.fx-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 77, 255, 0.8);
}

[data-theme="dark"] .fx-theme-toggle {
  background: rgba(8, 10, 18, 0.9);
}

/* SCROLL REVEAL */

.fx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fx-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */

@media (max-width: 768px) {
  main {
    padding-top: 72px;
  }

  .fx-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--fx-bg-surface);
    padding: var(--fx-space-lg) var(--fx-space-sm);
    flex-direction: column;
    gap: var(--fx-space-md);
  }

  .fx-nav.fx-nav--open {
    display: flex;
  }

  .fx-nav-toggle {
    display: block;
  }

  .fx-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--fx-space-lg);
  }

  .fx-hero h1 {
    font-size: 32px;
  }

  .fx-section {
    padding: var(--fx-space-xl) 0;
  }

  .fx-section-grid,
  .fx-cards-grid,
  .fx-mvv-grid {
    grid-template-columns: 1fr;
  }

  .fx-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================= */
/* FIX FINAL DOS BOTÕES - FLUXAR */
/* ============================= */

/* Botão padrão */
.fx-btn {
  background: #111; 
  color: #fff;
  border-radius: 50px;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s;
}

.fx-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

/* --- Botões no modo claro (PREMIUM) --- */
[data-theme="light"] .fx-btn,
[data-theme="light"] .fx-btn--small {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}

[data-theme="light"] .fx-btn:hover,
[data-theme="light"] .fx-btn--small:hover {
  background: #111;
  border-color: #111;
  transform: translateY(-1px);
}


[data-theme="light"] .fx-btn:hover {
  background: #f0f0f0;
}

/* Tema escuro - FIX REAL */
[data-theme="dark"] .fx-btn {
  background: #ffffff10; /* vidro fosco leve */
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid #ffffff20;
}

[data-theme="dark"] .fx-btn:hover {
  background: #ffffff25;
  color: #fff;
}

/* Botão pequeno */
.fx-btn--small {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Ghost Button */
.fx-btn--ghost {
  background: transparent;
  border: 1px solid currentColor;
}

[data-theme="dark"] .fx-btn--ghost {
  color: #fff;
  border-color: #ffffff40;
}

[data-theme="dark"] .fx-btn--ghost:hover {
  border-color: #ffffff80;
}

