/* css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --kd-color-primary: #002b54;
  --kd-color-primary-light: #004080;
  --kd-color-accent: #0088ff;
  /* Brand new blue for glows */
  --kd-color-glow: rgba(0, 136, 255, 0.4);
  --kd-color-bg-base: #000810;
  --kd-color-bg-surface: #001222;
  --kd-color-text-main: #e0edfa;
  --kd-color-text-muted: #809ebb;
  --kd-color-border: rgba(224, 237, 250, 0.1);
  --kd-font-base: 'Inter', sans-serif;
  --kd-font-heading: 'DM Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--kd-font-base);
  background-color: var(--kd-color-bg-base);
  color: var(--kd-color-text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography extracted from Futuristic Infra */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--kd-font-heading);
  font-weight: 200;
  /* extralight */
  letter-spacing: -0.04em;
  /* tracking-tight */
  line-height: 1.1;
}

.font-dm {
  font-family: var(--kd-font-heading);
}

.text-title {
  font-size: clamp(2.4rem, 7vw, 6.5rem);
}

.text-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 15px rgba(0, 8, 16, 0.8), 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Liquid Glass Elements */
.liquid-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.2), 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  /* default pill */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
      rgba(224, 237, 250, 0.4) 0%,
      rgba(224, 237, 250, 0.1) 20%,
      rgba(224, 237, 250, 0) 40%,
      rgba(224, 237, 250, 0) 60%,
      rgba(224, 237, 250, 0.1) 80%,
      rgba(224, 237, 250, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass:hover {
  border-color: rgba(0, 136, 255, 0.3);
  box-shadow: inset 0 1px 1px rgba(224, 237, 250, 0.15), 0 0 12px rgba(0, 136, 255, 0.2);
  background: rgba(0, 136, 255, 0.05);
}

.liquid-glass-strong {
  background: rgba(0, 43, 84, 0.2);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(224, 237, 250, 0.1);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(224, 237, 250, 0.2);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.liquid-glass-strong::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
      rgba(224, 237, 250, 0.6) 0%,
      rgba(224, 237, 250, 0.2) 20%,
      rgba(224, 237, 250, 0) 40%,
      rgba(224, 237, 250, 0) 60%,
      rgba(224, 237, 250, 0.2) 80%,
      rgba(224, 237, 250, 0.6) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong:hover {
  border-color: rgba(0, 136, 255, 0.5);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(224, 237, 250, 0.2), 0 0 16px rgba(0, 136, 255, 0.2);
}

/* Rounded variation for cards */
.liquid-glass.rounded-lg,
.liquid-glass-strong.rounded-lg {
  border-radius: 24px;
}

/* Base Layout Classes */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.section-spacing {
  padding: 100px 0;
  position: relative;
}

/* Buttons and Shimmer Effect */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--kd-color-text-main);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

@keyframes spin-beam {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.btn-beam {
  background: var(--kd-color-bg-base);
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(224, 237, 250, 0.1);
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.1);
  padding: 0;
  /* remove default padding */
}

.btn-beam .beam-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 9999px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.btn-beam:hover .beam-wrapper {
  opacity: 1;
}

.btn-beam .beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 280deg, var(--kd-color-accent) 360deg);
  animation: spin-beam 2s linear infinite paused; /* Pausado por padrão — ativado no hover */
  transform-origin: center center;
}

.btn-beam:hover .beam {
  animation-play-state: running;
}

.btn-beam .btn-content {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.8rem;
  background: var(--kd-color-bg-base);
  border-radius: 9999px;
  margin: 1px;
  /* Inner border width */
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 0.95rem;
}

.btn-beam:hover .btn-content {
  background: var(--kd-color-bg-surface);
  color: #fff;
  box-shadow: inset 0 0 8px rgba(0, 136, 255, 0.2);
}

.btn-sm {
  padding: 0 !important;
}

.btn-sm .btn-content {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.btn-solid-glass {
  background: rgba(0, 43, 84, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(224, 237, 250, 0.15);
  box-shadow: inset 0 1px 1px rgba(224, 237, 250, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
}

.btn-solid-glass:hover {
  background: rgba(0, 136, 255, 0.15);
  border-color: rgba(0, 136, 255, 0.5);
  box-shadow: inset 0 1px 1px rgba(224, 237, 250, 0.3), 0 0 12px rgba(0, 136, 255, 0.2);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--kd-color-text-muted);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(224, 237, 250, 0.05);
}

/* Animations from Gemini 3 */
@keyframes textSlide {
  0% {
    transform: translateY(110%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reveal Animations from Aura Reference */
.reveal-fade, .reveal-up, .reveal-scale, .reveal-left, .reveal-right, .reveal-3d {
  will-change: transform, opacity;
  transform: translateZ(0);
  opacity: 0;
  backface-visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade {
  transform: translateY(15px);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-scale {
  transform: scale(0.97) translateY(15px);
}

.reveal-3d {
  transform: perspective(1200px) rotateX(12deg) translateY(40px) scale(0.95);
  transform-origin: center bottom;
}

.reveal-fade.is-visible, 
.reveal-up.is-visible, 
.reveal-scale.is-visible, 
.reveal-left.is-visible, 
.reveal-right.is-visible,
.reveal-3d.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.text-clip-anim {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

.text-clip-anim span.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
}

.text-clip-anim.is-animated span.char {
  animation: textSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header Specific */
.header-nav {
  will-change: backdrop-filter, background-color;
  transform: translateZ(0);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  pointer-events: none;
  transform: translateZ(0); /* Isola navbar em layer GPU para aliviar custo do blur */
  will-change: transform;
  /* Allows clicking through the empty space */
}

.header-nav>* {
  pointer-events: auto;
  /* Re-enable clicks on header items */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.8rem 2.5rem;
  overflow: visible;
}

.nav-links > a,
.nav-links .nav-item > a.nav-link {
  color: var(--kd-color-text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-links > a:hover,
.nav-links .nav-item > a.nav-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Specific & Video Background */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  /* Contains video */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Gradiente radial escuro focado no centro (atrás do texto) para garantir legibilidade, sem esconder a parte de baixo do vídeo */
  background: radial-gradient(ellipse 80% 60% at center, rgba(0, 8, 16, 0.85) 0%, rgba(0, 8, 16, 0.4) 50%, rgba(0, 8, 16, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-pill-badge {
  background: var(--kd-color-text-main);
  color: var(--kd-color-bg-base);
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.hero-pill-text {
  font-size: 0.75rem;
  font-weight: 300;
}

.hero-cta-group {
  margin-top: 3.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.brand-logo img {
  height: 56px;
  object-fit: contain;
}

/* Grids and Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 4rem;
}

.card-glass {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 136, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(224, 237, 250, 0.15), 0 0 24px rgba(0, 136, 255, 0.15);
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 237, 250, 0.05);
  border: 1px solid rgba(224, 237, 250, 0.1);
  color: var(--kd-color-text-main);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-glass:hover .card-icon-wrapper {
  transform: scale(1.1);
  background: var(--kd-color-glow);
  color: #fff;
  border-color: var(--kd-color-accent);
  box-shadow: 0 0 20px var(--kd-color-glow);
}

.card-glass h3 {
  font-size: 1.5rem;
  font-weight: 400;
  transition: color 0.4s ease;
}

.card-glass:hover h3 {
  color: #fff;
}

.card-glass p {
  font-size: 0.95rem;
  color: var(--kd-color-text-muted);
  font-weight: 300;
}

/* Showcase Sections */
.showcase-header {
  text-align: center;
  margin-bottom: 3rem;
}

.showcase-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.showcase-header p {
  color: var(--kd-color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.color-swatch {
  height: 100px;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.type-scale {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.type-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.type-label {
  width: 80px;
  color: var(--kd-color-text-muted);
  font-size: 0.85rem;
  font-family: monospace;
}

.icon-capsule {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 43, 84, 0.15);
  border: 1px solid rgba(224, 237, 250, 0.05);
  color: var(--kd-color-text-muted);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
}

.icon-capsule:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--kd-color-glow);
  color: #fff;
  border-color: var(--kd-color-accent);
  box-shadow: 0 0 24px var(--kd-color-glow);
}

/* Forms */
.form-group {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.input-glass {
  flex: 1;
  background: rgba(0, 43, 84, 0.15);
  border: 1px solid rgba(224, 237, 250, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-glass::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-glass:focus {
  border-color: var(--kd-color-accent);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px var(--kd-color-glow);
  background: rgba(0, 43, 84, 0.3);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--kd-color-bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.preloader-logo {
  height: 280px;
  width: auto;
  max-width: 80vw;
  object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(0, 136, 255, 0.8));
  animation: pulse-preloader 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-preloader {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

/* ── Footer (New Layout) ───────────────────────────────────────── */
.footer {
  background: var(--kd-color-bg-base);
  color: var(--kd-color-text-main);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 136, 255, 0.1);
}
.footer-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 16, 0.8); /* Konec dark background color */
  z-index: 1;
}
.footer-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 8, 16, 0.3) 20%, rgba(0, 8, 16, 0.8) 50%, rgba(0, 8, 16, 1) 70%, rgba(0, 8, 16, 1) 100%);
  z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
}
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
.footer-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  align-items: flex-start;
}
.footer-nav-link {
  font-family: var(--kd-font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--kd-color-text-main);
  letter-spacing: -0.04em;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  width: fit-content;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.footer-nav:hover .footer-nav-link { opacity: 0.3; }
.footer-nav:hover .footer-nav-link:hover { opacity: 1; }
.footer-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--kd-color-text-main);
  transition: width 0.3s ease;
}
.footer-nav-link:hover::after { width: 100%; }

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-chat {
  margin-bottom: 48px;
}
.footer-chat-label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kd-color-text-muted);
  margin-bottom: 12px;
}
.footer-email {
  font-family: var(--kd-font-heading);
  font-size: 1.125rem;
  color: var(--kd-color-text-main);
  font-weight: 500;
  transition: opacity 0.4s ease;
  text-decoration: none;
}
.footer-email:hover { opacity: 0.7; }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 640px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
.footer-col-title {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kd-color-text-muted);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-link {
  font-size: .875rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.4s ease;
  text-decoration: none;
}
.footer-link:hover { color: var(--kd-color-text-main); }

/* Marquee */
.footer-marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0;
  overflow: hidden;
  position: relative;
}
.footer-marquee::before,
.footer-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.footer-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--kd-color-bg-base), transparent);
}
.footer-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--kd-color-bg-base), transparent);
}
.footer-marquee-track {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: marquee 30s linear infinite;
  width: max-content;
  will-change: transform; /* Promove para layer GPU — animação contínua justifica o custo */
}
.footer-marquee-text {
  font-family: var(--kd-font-heading);
  flex-shrink: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.25), rgba(255,255,255,0.08));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: .8125rem;
  color: var(--kd-color-text-muted);
}
@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* Mega Menu (Konec Digital Style) */
.nav-item { position: relative; }
.nav-item > .nav-link { display: flex; align-items: center; gap: 4px; padding: 0; }
.nav-link .nav-chevron {
  width: 14px; height: 14px;
  transition: transform 0.3s;
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 860px;
  background: rgba(0, 12, 25, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(224, 237, 250, 0.15);
  border-radius: 16px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 0 40px rgba(0, 136, 255, 0.05);
  z-index: 100;
}
.mega-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mega-menu-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
}
.mega-menu-item:hover {
  transform: translateY(-2px);
  background: rgba(0, 136, 255, 0.1);
  border-color: rgba(0, 136, 255, 0.3);
}
.mega-menu-item-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}
.mega-menu-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.mega-menu-item:hover .mega-menu-item-img img { transform: scale(1.05); }

.mega-menu-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px 10px;
}
.mega-menu-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}
.mega-menu-desc {
  font-size: 0.7rem;
  color: var(--kd-color-text-muted);
  line-height: 1.4;
}

/* Header Light Mode fixes for mega menu */
.header-nav.header-light .mega-menu {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.header-nav.header-light .mega-menu-item {
  background: transparent;
}
.header-nav.header-light .mega-menu-item:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
}
.header-nav.header-light .mega-menu-title {
  color: #0a1d30;
}
/* Native Logo Swap Transition */
.logo-default, .logo-dark {
  transition: opacity 0.3s ease;
}
.header-nav.header-light .logo-default {
  opacity: 0;
}
.header-nav.header-light .logo-dark {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Global
   ═══════════════════════════════════════════════════════════════ */

/* ── Hamburger Button ──────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  cursor: pointer;
  gap: 5px;
  padding: 0;
  z-index: 200;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.mobile-menu-btn:hover {
  background: rgba(0,136,255,0.1);
  border-color: rgba(0,136,255,0.3);
}
.mobile-menu-btn .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--kd-color-text-main);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.25,1,0.5,1), opacity 0.25s ease, width 0.3s ease;
}
.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Light header variant for hamburger */
.header-nav.header-light .mobile-menu-btn {
  background: rgba(0,30,60,0.06);
  border-color: rgba(0,30,60,0.15);
}
.header-nav.header-light .mobile-menu-btn .bar {
  background: #0a1d30;
}

/* ── Mobile Drawer ─────────────────────────────────────────── */
.mobile-drawer {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(0, 8, 16, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.25,1,0.5,1), opacity 0.5s cubic-bezier(0.25,1,0.5,1), visibility 0.5s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.mobile-drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease, transform 0.3s ease;
}
.mobile-drawer-close:hover {
  color: #fff;
  transform: scale(1.1) rotate(90deg);
}
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 100px 1.5rem 3rem;
  min-height: 100%;
  gap: 0.5rem;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--kd-font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--kd-color-text-main);
  text-decoration: none;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.3s ease, padding-left 0.3s ease;
  letter-spacing: -0.02em;
}
.mobile-drawer-link:hover,
.mobile-drawer-link:active {
  color: var(--kd-color-accent);
  padding-left: 0.5rem;
}
/* Services accordion in drawer */
.mobile-services-toggle {
  cursor: pointer;
}
.mobile-services-toggle .mobile-chevron {
  width: 24px;
  height: 24px;
  color: var(--kd-color-text-muted);
  transition: transform 0.35s ease;
}
.mobile-services-toggle.active .mobile-chevron {
  transform: rotate(180deg);
}
.mobile-services-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25,1,0.5,1);
}
.mobile-services-submenu.open {
  max-height: 600px;
}
.mobile-services-submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--kd-color-text-muted);
  text-decoration: none;
  padding: 1rem 0 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.3s ease, background 0.3s ease, padding-left 0.3s ease;
  border-radius: 8px;
}
.mobile-services-submenu a:hover {
  color: #fff;
  padding-left: 2rem;
  background: rgba(0,136,255,0.05);
}
.mobile-services-submenu a iconify-icon {
  color: var(--kd-color-accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.mobile-drawer-cta {
  margin-top: auto;
  padding-top: 2rem;
}
.mobile-drawer-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 1rem;
}

/* ── Mobile Breakpoint (max 768px) ─────────────────────────── */
@media (max-width: 768px) {
  /* Reveal Animations Mobile Optimization */
  .reveal-fade, .reveal-up, .reveal-scale, .reveal-left, .reveal-right, .reveal-3d {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0s !important;
  }
  .reveal-fade { transform: translateY(15px); }
  .reveal-up { transform: translateY(25px); }
  .reveal-left { transform: translateX(-20px); }
  .reveal-right { transform: translateX(20px); }
  .reveal-scale { transform: scale(0.98) translateY(15px); }
  .reveal-3d { 
    transform: perspective(800px) rotateX(8deg) translateY(25px) scale(0.98); 
  }

  /* Global Resets to prevent loose elements (Horizontal Scroll Bug) */
  html, body {
    width: 100vw;
    overflow-x: hidden !important;
    position: relative;
  }
  
  img, video, iframe, canvas {
    max-width: 100% !important;
    height: auto;
  }

  p, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Fix for specific containers that often break out */
  section, header, footer, main {
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Show hamburger, hide desktop nav */
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-drawer {
    display: block;
  }
  /* Hide the desktop centered nav wrapper */
  .header-nav .container > div[style*="position: absolute"] {
    display: none !important;
  }
  /* Hide the desktop CTA wrapper */
  .header-nav .container > .flex.items-center {
    display: none !important;
  }

  /* Header layout: logo left, hamburger right */
  .header-nav {
    padding-top: 1rem !important;
    padding-bottom: 0.5rem !important;
  }
  .header-nav > .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .header-nav .brand-logo {
    flex: unset !important;
    margin-left: 0.5rem;
  }
  .brand-logo img {
    height: 38px; /* Slightly smaller for mobile aesthetic */
  }

  /* Section spacing reduced */
  .section-spacing {
    padding: 60px 0;
  }

  /* Container padding reduced */
  .container {
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Hero sections global */
  .hero-section {
    padding: 7rem 1.25rem 3rem;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Hero CTA group stacked */
  .hero-cta-group {
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
    width: 100%;
    align-items: stretch !important;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero pill smaller */
  .hero-pill {
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    gap: 0.4rem;
  }
  .hero-pill-badge {
    padding: 0.15rem 0.5rem;
    font-size: 0.6rem;
  }
  .hero-pill-text {
    white-space: nowrap;
    font-size: clamp(0.6rem, 3.2vw, 0.75rem) !important; /* Override inline styles to prevent overflow */
  }

  /* Footer improvements */
  .footer {
    padding: 48px 0 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
    text-align: center;
  }
  body .footer-nav {
    gap: 8px;
    align-items: center !important;
  }
  body .footer-nav-link {
    font-size: 20px;
    text-align: center !important;
  }
  .footer-chat {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-columns {
    grid-template-columns: 1fr; /* Fixed from 1fr 1fr to strictly 1fr on mobile to prevent squeezing */
    gap: 32px;
  }
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-links {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    padding: 16px 0;
  }

  /* Buttons */
  .btn {
    font-size: 0.95rem;
  }
  .btn-beam .btn-content {
    font-size: 0.95rem;
  }

  /* Preloader logo smaller */
  .preloader-logo {
    height: 140px;
  }

  /* Mega menu disabled on mobile */
  .mega-menu {
    display: none !important;
  }

  /* Body lock when drawer is open */
  body.drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

/* ── Extra small screens (max 480px) ───────────────────────── */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .section-spacing {
    padding: 48px 0;
  }
  .hero-section {
    padding: 6rem 1rem 2.5rem;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-nav-link {
    font-size: 18px;
  }
  .mobile-drawer-link {
    font-size: 1.3rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FORM RESPONSIVE (Orçamento — all pages)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .orcamento-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .orcamento-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .orcamento-text h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }
}
