:root {
  color-scheme: dark;
  --bg: #0f172a;
  --text: #e2e8f0;
  --gold-main: #d1a85b;
  --gold-light: #f2d083;
  --cyber-red: #ef4444;
  --futura-header-offset: 5.7rem;
  --futura-hero-gap: 0.4rem;
}

html.futura-light-mode {
  color-scheme: light;
}

body {
  background-color: var(--bg) !important;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(239, 68, 68, 0.08), transparent 26%),
    linear-gradient(180deg, #050816 0%, #0f172a 42%, #020617 100%) !important;
  color: var(--text) !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

html.futura-light-mode body {
  background-color: #eef4ff !important;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.14), transparent 24%),
    radial-gradient(circle at 82% 26%, rgba(245, 158, 11, 0.1), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 48%, #e6eefb 100%) !important;
  color: #0f172a !important;
}

body.futura-has-global-header {
  padding-top: var(--futura-header-offset) !important;
}

body.futura-has-global-header main > section:first-of-type,
body.futura-has-global-header > section:first-of-type {
  padding-top: var(--futura-hero-gap) !important;
  padding-bottom: 0.5rem !important;
  margin-top: 0 !important;
}

button,
input,
textarea,
select {
  font-family: 'Space Grotesk', sans-serif;
}

code,
pre,
.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace !important;
}

::selection {
  background: rgba(245, 192, 73, 0.3);
  color: #fef3c7;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #050b14;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
  border: 1px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
  background: #d1a85b;
}

.glass {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(209, 168, 91, 0.15) !important;
  border-top: 1px solid rgba(209, 168, 91, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header#navbar .glass {
  background: rgba(15, 23, 42, 0.65) !important;
  border-bottom: 0 !important;
}

header#navbar {
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
}

header#navbar .futura-header-shell {
  position: relative;
  margin: 0 auto;
  max-width: 80rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

header#navbar .futura-header-top {
  display: flex;
  height: 5.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header#navbar .futura-logo-link {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header#navbar .futura-logo-link img {
  height: 6rem !important;
  width: auto !important;
  max-width: 33.75rem !important;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.18));
}

header#navbar .futura-header-actions {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.futura-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 168, 91, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #f2d083;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.2), inset 0 0 18px rgba(209, 168, 91, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  z-index: 11;
  appearance: none;
  -webkit-appearance: none;
}

.futura-mode-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 208, 131, 0.48);
}

header#navbar .futura-nav-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  overflow-x: auto;
  padding-top: 0.1rem;
  padding-bottom: 0.3rem;
}

header#navbar .futura-nav {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-width: max-content;
}

header#navbar .futura-nav .nav-link,
header#navbar .futura-nav .nav-link.nav-btn {
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: auto !important;
  padding: 0.35rem 0 !important;
}

.bg-grid-pattern {
  background-size: 60px 60px !important;
  background-image:
    linear-gradient(to right, rgba(209, 168, 91, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(209, 168, 91, 0.05) 1px, transparent 1px) !important;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: -2 !important;
}

.hero-title,
.section-title,
.font-display {
  font-family: 'Sora', sans-serif !important;
  letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif !important;
}

.section-title::after {
  content: "";
  height: 3px;
  width: 60px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
  display: inline-block;
  margin-left: 12px;
}

.text-glow {
  text-shadow: 0 0 24px rgba(242, 208, 131, 0.4), 0 0 10px rgba(59, 130, 246, 0.2) !important;
}

.text-glow-red {
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.6) !important;
}

.text-white {
  color: #ffffff !important;
}

.text-slate-300 {
  color: #cbd5e1 !important;
}

.text-slate-400 {
  color: #94a3b8 !important;
}

.text-slate-500 {
  color: #64748b !important;
}

html.futura-light-mode .text-white,
html.futura-light-mode .text-slate-300,
html.futura-light-mode .text-slate-400,
html.futura-light-mode .text-slate-500,
html.futura-light-mode .text-slate-600,
html.futura-light-mode .text-slate-700,
html.futura-light-mode .text-slate-800,
html.futura-light-mode .text-slate-900 {
  color: #0f172a !important;
}

.text-slate-600,
.text-slate-700,
.text-slate-800,
.text-slate-900 {
  color: #cbd5e1 !important;
}

.hero-pill,
.badge,
.pill,
.tag,
.mini,
.chip {
  color: #e2e8f0 !important;
  border-color: rgba(209, 168, 91, 0.24) !important;
  background: rgba(15, 23, 42, 0.72) !important;
}

.card,
.service-card,
.contact-card,
.timeline-card,
.stack-card,
.pricing-card,
.avatar-card,
.stat-chip,
.sidebar,
.content,
.builder,
details,
.toast,
.search,
.controls,
.brand,
.app > aside,
.app > main,
aside.card,
section.card {
  background: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(209, 168, 91, 0.18) !important;
  color: #e2e8f0 !important;
}

html.futura-light-mode .glass,
html.futura-light-mode .card,
html.futura-light-mode .service-card,
html.futura-light-mode .contact-card,
html.futura-light-mode .timeline-card,
html.futura-light-mode .stack-card,
html.futura-light-mode .pricing-card,
html.futura-light-mode .avatar-card,
html.futura-light-mode .stat-chip,
html.futura-light-mode .sidebar,
html.futura-light-mode .content,
html.futura-light-mode .builder,
html.futura-light-mode details,
html.futura-light-mode .toast,
html.futura-light-mode .search,
html.futura-light-mode .controls,
html.futura-light-mode .brand,
html.futura-light-mode .app > aside,
html.futura-light-mode .app > main,
html.futura-light-mode aside.card,
html.futura-light-mode section.card {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.app,
.wrap,
.container-custom,
.grid,
.sec-b,
.sec-h {
  color: #e2e8f0 !important;
}

.sub,
.hint,
.muted,
.count,
.status,
.calc,
.checkline,
.port-label,
.port-protocol {
  color: #94a3b8 !important;
}

.nav a,
aside .nav a,
.sidebar .nav a {
  color: #cbd5e1 !important;
}

.nav a:hover,
aside .nav a:hover,
.sidebar .nav a:hover {
  color: #fef3c7 !important;
}

input,
select,
textarea,
.glass-input {
  background: rgba(15, 23, 42, 0.72) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

pre,
.code {
  background: rgba(2, 6, 23, 0.6) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.btn,
button.btn,
a.btn {
  background: rgba(15, 23, 42, 0.8) !important;
  color: #f2d083 !important;
  border: 1px solid rgba(209, 168, 91, 0.5) !important;
  box-shadow: 0 0 20px rgba(209, 168, 91, 0.12), inset 0 0 15px rgba(209, 168, 91, 0.08) !important;
}

.btn.secondary {
  background: rgba(30, 41, 59, 0.4) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.btn.primary,
.btn.btn-primary {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #f2d083 !important;
  border: 1px solid rgba(209, 168, 91, 0.5) !important;
}

.nav-link,
.nav-link.nav-btn {
  position: relative;
  border-radius: 0;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.35rem 0 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent !important;
  border: 0 !important;
  z-index: 1;
  text-shadow: none !important;
  box-shadow: none !important;
  min-height: auto;
}

.nav-link::after {
  content: '' !important;
  position: absolute;
  left: 0;
  bottom: -0.65rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d1a85b 18%, #f2d083 50%, #d1a85b 82%, transparent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover,
.nav-link.nav-btn:hover {
  color: #fef3c7 !important;
  background: transparent !important;
  transform: none;
}

.nav-link.is-active,
.nav-link.nav-btn.is-active {
  color: #f2d083 !important;
  font-weight: 700 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-link.is-active::after,
.nav-link.nav-btn.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.primary-btn,
.futura-primary-btn {
  position: relative;
  background: rgba(15, 23, 42, 0.8) !important;
  color: #f2d083 !important;
  border: 1px solid rgba(209, 168, 91, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 20px rgba(209, 168, 91, 0.15), inset 0 0 15px rgba(209, 168, 91, 0.1) !important;
}

header#navbar .primary-btn {
  min-height: 2.4rem;
  padding: 0.65rem 1.5rem !important;
  border-radius: 0.8rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

body.futura-has-global-header .hero-title,
body.futura-has-global-header main > section:first-of-type h1,
body.futura-has-global-header > section:first-of-type h1 {
  margin-top: 0 !important;
}

body.futura-has-global-header main > section:first-of-type .max-w-7xl,
body.futura-has-global-header main > section:first-of-type .mx-auto.max-w-7xl,
body.futura-has-global-header > section:first-of-type .max-w-7xl,
body.futura-has-global-header > section:first-of-type .mx-auto.max-w-7xl {
  padding-top: 0 !important;
}

body.futura-has-global-header main > section:first-of-type .mb-16,
body.futura-has-global-header main > section:first-of-type .mb-20,
body.futura-has-global-header > section:first-of-type .mb-16,
body.futura-has-global-header > section:first-of-type .mb-20 {
  margin-bottom: 2rem !important;
}

.primary-btn:hover,
.futura-primary-btn:hover {
  background: rgba(15, 23, 42, 1) !important;
  border-color: #f2d083 !important;
  transform: translateY(-2px) scale(1.02);
  text-shadow: 0 0 8px rgba(242, 208, 131, 0.5);
  box-shadow: 0 0 30px rgba(209, 168, 91, 0.3), inset 0 0 20px rgba(209, 168, 91, 0.2) !important;
}

.secondary-btn,
.futura-secondary-btn {
  background: rgba(30, 41, 59, 0.4) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.secondary-btn:hover,
.futura-secondary-btn:hover {
  color: #fff !important;
  border-color: rgba(148, 163, 184, 0.5) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-2px);
}

#neural-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: auto;
  opacity: 1 !important;
  display: block !important;
  mix-blend-mode: normal;
  filter: none;
}

#futura-neural-bg {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#futura-aurora-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.45;
  filter: blur(80px);
  background:
    radial-gradient(circle at 20% 30%, rgba(242, 208, 131, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08), transparent 40%);
}

html.futura-light-mode #futura-aurora-bg {
  opacity: 0.28;
  filter: blur(90px);
}

[data-aos] {
  backface-visibility: hidden;
}

[data-aos].futura-force-visible,
.aos-init.futura-force-visible,
.aos-init[data-aos].futura-force-visible {
  opacity: 1 !important;
  transform: none !important;
}

.whatsapp-float {
  position: fixed !important;
  bottom: 24px;
  right: 24px;
  z-index: 9999 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  text-decoration: none !important;
}

.whatsapp-ping {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2s infinite;
  z-index: -1;
}

.whatsapp-btn {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 26px;
  box-shadow:
    0 10px 30px rgba(37, 211, 102, 0.4),
    0 0 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.whatsapp-btn svg,
.whatsapp-btn i {
  width: 26px;
  height: 26px;
  stroke-width: 1.9;
}

.whatsapp-float:hover .whatsapp-btn {
  transform: scale(1.1) translateY(-3px);
  box-shadow:
    0 15px 40px rgba(37, 211, 102, 0.6),
    0 0 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 767px) {
  header#navbar .futura-header-top {
    height: 4.6rem;
  }

  header#navbar .futura-logo-link img {
    height: 4.5rem !important;
    max-width: 25rem !important;
  }

  header#navbar .futura-header-actions .primary-btn {
    display: none !important;
  }

  body.futura-has-global-header {
    padding-top: var(--futura-header-offset) !important;
  }

  body.futura-has-global-header main > section:first-of-type,
  body.futura-has-global-header > section:first-of-type {
    padding-top: var(--futura-hero-gap) !important;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
  }

  .whatsapp-btn {
    width: 58px;
    height: 58px;
  }

  .whatsapp-ping {
    width: 58px;
    height: 58px;
  }

  .whatsapp-btn svg,
  .whatsapp-btn i {
    width: 24px;
    height: 24px;
  }

  .futura-mode-toggle {
    width: 2.45rem;
    height: 2.45rem;
  }
}
