/* =========================================================
   RESET
========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    fill 0.35s ease,
    stroke 0.35s ease,
    box-shadow 0.35s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  overflow-x: hidden;

  background: var(--bg);
  color: var(--text);
}

/* =========================================================
   VARIABLES
========================================================= */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-elevated: #f1f5f9;

  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;

  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border: rgba(15, 23, 42, 0.08);

  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --primary-soft: rgba(37, 99, 235, 0.08);

  --hero-bg: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  --hero-card: rgba(255, 255, 255, 0.78);

  --footer-bg: #f1f5f9;
  --footer-text: #475569;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);

  --glow-1: rgba(37, 99, 235, 0.14);
  --glow-2: rgba(59, 130, 246, 0.08);

  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
}

html.dark {
  color-scheme: dark;

  --bg: #07111f;
  --bg-soft: #0b1625;
  --bg-elevated: #101c2e;

  --card: rgba(15, 23, 42, 0.82);
  --card-solid: #0f172a;

  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --border: rgba(255, 255, 255, 0.08);

  --primary: #3b82f6;
  --primary-hover: #60a5fa;

  --primary-soft: rgba(59, 130, 246, 0.1);

  --hero-bg: linear-gradient(135deg, #07111f 0%, #0f172a 100%);
  --hero-card: rgba(15, 23, 42, 0.82);

  --footer-bg: #040b15;
  --footer-text: #94a3b8;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);

  --glow-1: rgba(37, 99, 235, 0.24);
  --glow-2: rgba(59, 130, 246, 0.12);
}

/* =========================================================
   GLOBAL
========================================================= */
body,
section,
div,
article,
aside,
main,
nav,
header,
footer {
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
}

p,
span,
small,
li {
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
}

/* =========================================================
   TAILWIND OVERRIDES
========================================================= */
.text-white {
  color: var(--text-inverse) !important;
}

.text-black {
  color: var(--text) !important;
}

.text-slate-50,
.text-slate-100,
.text-slate-200,
.text-slate-300,
.text-slate-400,
.text-slate-500,
.text-slate-600,
.text-slate-700,
.text-slate-800,
.text-slate-900 {
  color: var(--text-soft) !important;
}

.bg-white {
  background-color: var(--card-solid) !important;
}

.bg-black {
  background-color: var(--bg) !important;
}

.bg-slate-50,
.bg-slate-100,
.bg-slate-200 {
  background-color: var(--bg-soft) !important;
}

.border-slate-100,
.border-slate-200,
.border-slate-300 {
  border-color: var(--border) !important;
}

/* =========================================================
   SCROLLBAR
========================================================= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-muted) 40%, transparent);
  border-radius: 999px;
}

/* =========================================================
   NAVBAR
========================================================= */
#navbar {
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.nav-link {
  color: var(--text-soft);
  transition: 0.25s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  width: 42px;
  height: 42px;

  border-radius: 14px;

  border: 1px solid var(--border);

  background: var(--card-solid);

  color: var(--text);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;

  background: var(--card-solid);

  border-top: 1px solid var(--border);

  transition: max-height 0.35s ease;
}

.mobile-menu.active {
  max-height: 400px;
}

.mobile-link {
  display: block;

  padding: 14px;

  border-radius: 14px;

  color: var(--text);

  font-size: 13px;
  font-weight: 500;
}

.mobile-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* =========================================================
   HERO
========================================================= */
.hero-section {
  position: relative;
  overflow: hidden;

  background: var(--hero-bg);
}

.hero-section * {
  color: inherit;
}

.hero-grid {
  display: none;
}

.hero-glow {
  position: absolute;

  border-radius: 999px;

  filter: blur(90px);

  pointer-events: none;
}

.hero-glow-1 {
  top: -200px;
  right: -100px;

  width: 500px;
  height: 500px;

  background: var(--glow-1);
}

.hero-glow-2 {
  bottom: -140px;
  left: -100px;

  width: 420px;
  height: 420px;

  background: var(--glow-2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 8px 14px;

  border-radius: 999px;

  border: 1px solid rgba(59, 130, 246, 0.16);

  background: var(--primary-soft);

  color: var(--primary);

  font-size: 12px;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;

  border-radius: 999px;

  background: var(--success);

  animation: pulse 1.8s infinite;
}

.gradient-text {
  background: linear-gradient(to right, #3b82f6, #60a5fa);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   DASHBOARD
========================================================= */
.dashboard-card {
  position: relative;

  overflow: hidden;

  padding: 26px;

  border-radius: 28px;

  border: 1px solid var(--border);

  background: var(--hero-card);

  backdrop-filter: blur(20px);

  box-shadow: var(--shadow);
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 14px;

  border-radius: 18px;

  background: var(--bg-elevated);
}

.metric-label {
  color: var(--text-muted);

  font-size: 11px;
}

.metric-value {
  color: var(--text);

  font-size: 20px;
  font-weight: 700;
}

.metric-up {
  color: #10b981;

  font-size: 11px;
}

.chart-bar {
  flex: 1;

  border-radius: 10px 10px 0 0;

  background: rgba(59, 130, 246, 0.22);

  animation: bars 1s ease;
}

.chart-bar.active {
  background: var(--primary);
}

.floating-card {
  position: absolute;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px;

  border-radius: 20px;

  border: 1px solid var(--border);

  background: var(--card-solid);

  box-shadow: var(--shadow);
}

.floating-card * {
  color: var(--text) !important;
}

.floating-card .text-slate-500 {
  color: var(--text-muted) !important;
}

.top-card {
  top: -20px;
  right: -40px;
}

.bottom-card {
  left: -30px;
  bottom: 40px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-primary-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 22px;

  border-radius: 16px;

  background: var(--primary);

  color: white;

  font-size: 13px;
  font-weight: 600;

  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);

  transition: 0.3s ease;
}

.btn-primary-modern:hover {
  transform: scale(1.02);

  background: var(--primary-hover);
}

.btn-secondary-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 22px;

  border-radius: 16px;

  border: 1px solid var(--border);

  background: var(--bg-elevated);

  color: var(--text);

  font-size: 13px;
  font-weight: 600;
}

/* =========================================================
   SECTIONS
========================================================= */
.section-spacing {
  padding: 90px 0;
}

.section-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 16px;
}

.section-head {
  max-width: 760px;
  margin: auto;

  text-align: center;
}

.section-badge {
  display: inline-flex;

  padding: 8px 14px;

  border-radius: 999px;

  background: var(--primary-soft);

  color: var(--primary);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 16px;

  color: var(--text);

  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-text {
  margin-top: 16px;

  color: var(--text-muted);

  font-size: 14px;
  line-height: 1.9;
}

/* =========================================================
   CARDS
========================================================= */
.feature-card,
.module-card,
.pricing-card,
.faq-item {
  border-radius: 28px;

  border: 1px solid var(--border);

  background: var(--card-solid);

  backdrop-filter: blur(20px);

  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.feature-card,
.module-card,
.pricing-card {
  padding: 28px;
}

.feature-card:hover,
.module-card:hover,
.pricing-card:hover {
  transform: translateY(-4px);

  border-color: rgba(59, 130, 246, 0.3);
}

.feature-title,
.module-card span,
.pricing-name,
.pricing-price,
.faq-question {
  color: var(--text) !important;
}

.feature-desc,
.pricing-period,
.faq-answer {
  color: var(--text-muted) !important;
}

/* =========================================================
   ICONS
========================================================= */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  border-radius: 18px;

  font-size: 22px;
}

.feature-icon.blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.feature-icon.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.feature-icon.violet {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* =========================================================
   MODULES
========================================================= */
.module-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.module-card i {
  font-size: 28px;
  color: var(--primary);
}

/* =========================================================
   PRICING
========================================================= */
.pricing-card {
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 18%, var(--bg)),
    color-mix(in srgb, var(--primary) 30%, var(--bg-soft))
  );

  border-color: rgba(59, 130, 246, 0.25);
}

.pricing-card.featured .pricing-name,
.pricing-card.featured .pricing-price,
.pricing-card.featured li,
.pricing-card.featured p {
  color: var(--text) !important;
}

.popular-badge {
  position: absolute;

  top: -12px;
  left: 50%;

  transform: translateX(-50%);

  padding: 6px 16px;

  border-radius: 999px;

  background: var(--primary);

  color: white;

  font-size: 11px;
  font-weight: 700;
}

.pricing-price {
  margin-top: 20px;

  font-size: 48px;
  font-weight: 800;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 14px;

  margin-top: 26px;
}

.pricing-list li {
  position: relative;

  padding-left: 26px;

  font-size: 13px;
}

.pricing-list li::before {
  content: "✓";

  position: absolute;
  left: 0;

  color: var(--primary);

  font-weight: 700;
}

.pricing-btn {
  display: block;

  margin-top: 28px;

  padding: 14px;

  border-radius: 16px;

  border: 1px solid var(--border);

  text-align: center;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;
}

.featured-btn {
  background: var(--primary);

  color: white;

  border: none;
}

/* =========================================================
   FAQ
========================================================= */
.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px;

  font-size: 14px;
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;

  padding: 0 22px;

  line-height: 1.9;

  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 22px;
}

/* =========================================================
   CTA
========================================================= */
section.py-20 {
  background: var(--hero-bg) !important;
}

section.py-20 h2 {
  color: var(--text) !important;
}

section.py-20 p {
  color: var(--text-muted) !important;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: var(--footer-bg) !important;
  color: var(--footer-text);
}

.footer-title {
  color: var(--text);

  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 16px;
}

.footer-links a {
  color: var(--footer-text);

  font-size: 13px;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border-radius: 14px;

  background: var(--bg-elevated);

  color: var(--text-muted);
}

.social-btn:hover {
  background: var(--primary);
  color: white;
}

/* =========================================================
   THEME SWITCHER
========================================================= */
.theme-switcher {
  position: relative;

  display: flex;
  align-items: center;

  padding: 4px;

  border-radius: 18px;

  border: 1px solid var(--border);

  background: var(--card-solid);

  overflow: hidden;
}

.theme-btn {
  position: relative;
  z-index: 3;

  width: 38px;
  height: 38px;

  border-radius: 14px;

  color: var(--text-muted);
}

.theme-btn.active {
  color: white;
}

.theme-switcher::before {
  content: "";

  position: absolute;
  top: 4px;
  left: var(--switch-left, 4px);

  width: 38px;
  height: 38px;

  border-radius: 14px;

  background: var(--primary);

  transition: left 0.35s ease;

  z-index: 1;
}

/* =========================================================
   THEME TRANSITION
========================================================= */
.theme-transition {
  position: fixed;

  width: 100vmax;
  height: 100vmax;

  border-radius: 9999px;

  pointer-events: none;

  z-index: 1;

  transform: translate(-50%, -50%) scale(0);

  animation: liquidTheme 850ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

header,
section,
footer,
.mobile-menu {
  position: relative;
  z-index: 2;
}

@keyframes liquidTheme {
  from {
    transform: translate(-50%, -50%) scale(0);
  }

  to {
    transform: translate(-50%, -50%) scale(3);
  }
}

/* =========================================================
   ANIMATIONS
========================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);

  animation: fadeUp 0.9s forwards;
}

.delay-2 {
  animation-delay: 0.15s;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bars {
  from {
    height: 0;
  }
}

/* =========================================================
   UTILITIES
========================================================= */
.text-theme {
  color: var(--text);
}

.text-muted {
  color: var(--text-muted);
}

.bg-theme {
  background: var(--bg);
}

.bg-card {
  background: var(--card-solid);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .section-spacing {
    padding: 70px 0;
  }

  .floating-card {
    display: none;
  }

  .pricing-price {
    font-size: 40px;
  }
}

/* =========================================================
   FLUXO
========================================================= */
.fluxo-btn-border {
  position: relative;
  overflow: hidden;
}

.fluxo-btn-border::before {
  content: "";

  position: absolute;
  inset: -1px;

  border-radius: 1.7rem;

  padding: 1px;

  background: linear-gradient(
    130deg,
    rgba(16, 185, 129, 0.9),
    rgba(45, 212, 191, 0.9),
    rgba(16, 185, 129, 0.9)
  );

  background-size: 300% 300%;

  animation: borderMove 5s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask-composite: exclude;

  pointer-events: none;
}

@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.fluxo-btn {
  position: relative;
  overflow: hidden;
}

.fluxo-btn::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 9999px;
  padding: 1px;

  background: linear-gradient(
    90deg,
    #10b981,
    #2dd4bf,
    #10b981,
    #2dd4bf,
    #10b981
  );

  background-size: 300% 300%;

  animation: fluxoBorder 4s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

@keyframes fluxoBorder {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}
