:root {
  --accent: #0070F3;
  --accent-2: #38BDF8;
  --accent-glow: rgba(0, 112, 243, 0.45);
  --page-bg: #090A0F;
  --page-bg-radial-1: rgba(0, 112, 243, 0.16);
  --page-bg-radial-2: rgba(56, 189, 248, 0.10);
  --glass-bg: rgba(22, 25, 34, 0.55);
  --glass-border: #262936;
  --card-bg: #12141C;
  --surface-border: #232733;
  --text-main: #ffffff;
  --text-muted: #A5B4C7;
  --grid-line: rgba(148, 163, 184, 0.06);
  --focus-ring: #38BDF8;
}

[data-theme="light"] {
  --accent: #0062db;
  --accent-2: #0ea5e9;
  --accent-glow: rgba(0, 98, 219, 0.32);
  --page-bg: #edf3fb;
  --page-bg-radial-1: rgba(56, 189, 248, 0.22);
  --page-bg-radial-2: rgba(14, 165, 233, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: #c7d5e6;
  --card-bg: #ffffff;
  --surface-border: #cfdceb;
  --text-main: #0b1324;
  --text-muted: #243448;
  --grid-line: rgba(15, 23, 42, 0.07);
  --focus-ring: #0284c7;
}

html {
  scroll-behavior: smooth;
}

body,
.font-display,
.font-body,
.mono-label,
button,
input,
textarea,
select {
  font-family: 'Neue Machina', 'Plus Jakarta Sans', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

.deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: 780px;
}

.mobile-menu-panel:not(.hidden) {
  display: flex;
}

body {
  background: var(--page-bg);
  color: var(--text-main);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.font-display {
  letter-spacing: -0.012em;
}


.icon-xxs {
  width: 0.78rem;
  height: 0.78rem;
  flex: 0 0 auto;
}

.icon-xs {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.icon-sm {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.bg-bg {
  background-color: var(--page-bg) !important;
}

.bg-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)) var(--card-bg) !important;
}

.border-border {
  border-color: var(--surface-border) !important;
}

.text-muted {
  color: var(--text-muted) !important;
  font-weight: 460;
}

.text-muted-p {
    text-decoration: line-through !important;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

.glow-btn {
  box-shadow: 0 0 0 1px rgba(0, 112, 243, 0.36);
  transition: transform .18s ease, box-shadow .18s ease;
}

.glow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 112, 243, 0.52);
}

.card-hover {
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.card-hover:hover {
  border-color: rgba(0, 112, 243, 0.5);
  transform: translateY(-2px);
  box-shadow: none;
}

.fade-up {
  opacity: 1;
  transform: none;
}

.js-ready .fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.js-ready .fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.grid-lines {
  background-image: none;
}

.mono-label {
  font-family: 'Consolas', 'Courier New', monospace;
  letter-spacing: 0.08em;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.accordion-item.open .accordion-content {
  max-height: 300px;
}

.accordion-item.open .chevron {
  transform: rotate(45deg);
}

.chevron {
  transition: transform .25s ease;
}

.kanban-card {
  transition: transform .3s ease, border-color .3s ease;
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 112, 243, 0.5);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transition: background-color .2s ease, transform .2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.theme-toggle .sun {
  display: none;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(134, 239, 172, 0.45);
  background: #16a34a;
  color: #f0fdf4;
  padding: 0.72rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px -10px rgba(22, 163, 74, 0.7);
}

.whatsapp-float:hover {
  background: #15803d;
}

.whatsapp-float-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.24);
  color: #ecfdf5;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.whatsapp-float-dot svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

[data-theme="light"] .glass,
[data-theme="light"] .bg-card,
[data-theme="light"] .accordion-item,
[data-theme="light"] .kanban-card {
  box-shadow: none;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .font-display {
  color: #0b1324;
}

[data-theme="light"] .text-muted {
  color: #243448 !important;
}

[data-theme="light"] .theme-toggle .moon {
  display: none;
}

[data-theme="light"] .theme-toggle .sun {
  display: inline;
}

[data-theme="light"] .bg-white\/5 {
  background-color: rgba(15, 23, 42, 0.065) !important;
}

[data-theme="light"] .text-accent2 {
  color: #075985 !important;
}

[data-theme="light"] .border-accent\/30 {
  border-color: rgba(0, 98, 219, 0.3) !important;
}

[data-theme="light"] .border-border {
  border-color: #b9cce4 !important;
}

[data-theme="light"] .text-white,
[data-theme="light"] .text-white\/90 {
  color: #0b1324 !important;
}

[data-theme="light"] .glass {
  box-shadow: none;
}

[data-theme="light"] .bg-accent.text-white,
[data-theme="light"] .glow-btn.text-white,
[data-theme="light"] .theme-keep-white {
  color: #ffffff !important;
}

[data-theme="light"] a.hover\:text-white:hover {
  color: #0b5ed7 !important;
}

[data-theme="light"] .hover\:bg-white\/10:hover {
  background-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .bg-accent\/10 {
  background-color: rgba(0, 98, 219, 0.12) !important;
}

[data-theme="light"] .bg-accent\/20 {
  background-color: rgba(0, 98, 219, 0.16) !important;
}

[data-theme="light"] .text-emerald-400 {
  color: #047857 !important;
}

[data-theme="light"] .text-red-400 {
  color: #b91c1c !important;
}

[data-theme="light"] .hero-gradient-text {
  background-image: linear-gradient(90deg, #0f172a 0%, #0b5ed7 52%, #0369a1 100%) !important;
}

/* Mantem o mockup de dashboard legivel no tema light (superficies escuras com texto claro). */
[data-theme="light"] #demo .bg-\[\#0D0F16\] {
  color: #e8f0fb;
}

[data-theme="light"] #demo .text-muted,
[data-theme="light"] #demo .mono-label {
  color: #8ca1ba !important;
}

[data-theme="light"] #demo .text-white,
[data-theme="light"] #demo .text-white\/90 {
  color: #eef4ff !important;
}

[data-theme="light"] #demo .bg-accent\/20 {
  background-color: rgba(0, 98, 219, 0.24) !important;
  border-color: rgba(56, 189, 248, 0.46) !important;
  color: #eef4ff !important;
}

[data-theme="light"] #demo .kanban-card {
  background-color: #0b1222 !important;
  border-color: #28507a !important;
}

[data-theme="light"] #demo .kanban-col .mono-label {
  color: #9bc4f2 !important;
  font-weight: 600;
}

[data-theme="light"] #demo .kanban-card .text-xs.font-medium {
  color: #f3f8ff !important;
}

[data-theme="light"] #demo .kanban-card .text-\[10px\].text-muted {
  color: #8fc6fb !important;
}

@media (max-width: 1024px) {
  .glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .text-muted {
    font-weight: 500;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.5;
  }

  header .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 0.75rem;
  }

  #top {
    padding-top: 7rem !important;
    padding-bottom: 3rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #top h1 {
    font-size: 2rem !important;
    line-height: 1.14 !important;
  }

  #top p.text-lg,
  #top .text-lg {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  section.deferred-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  section.deferred-section.py-24 {
    padding-top: 3.75rem !important;
    padding-bottom: 3.75rem !important;
  }

  #planos .fade-up.relative {
    padding: 1rem !important;
  }

  #planos .mt-6.grid {
    gap: 1.25rem !important;
  }

  #planos .glow-btn {
    margin-top: 1rem !important;
    min-height: 3rem !important;
    padding: 0.8rem 0.95rem !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }

  #faq .accordion-trigger {
    padding: 0.95rem 1rem !important;
    font-size: 0.95rem;
  }

  #faq .accordion-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .whatsapp-float {
    right: 0.8rem;
    bottom: 0.8rem;
    max-width: calc(100vw - 1.6rem);
    font-size: 0.74rem;
    padding: 0.68rem 0.85rem;
  }

  footer {
    padding-bottom: 6rem !important;
  }
}

@media (min-width: 641px) {
  .whatsapp-float {
    right: 1.5rem;
    bottom: 1.5rem;
    font-size: 0.82rem;
    padding: 0.76rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .js-ready .fade-up,
  .js-ready .fade-up.in-view,
  .glow-btn,
  .card-hover,
  .kanban-card,
  .theme-toggle,
  .chevron,
  .accordion-content {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

[data-theme="light"] #demo .kanban-card .text-\[10px\].text-accent2 {
  color: #4fd1ff !important;
}

::selection {
  background: rgba(0, 112, 243, 0.35);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

