@font-face {
  font-family: 'Work Sans Local';
  src: url('../fonts/work-sans-regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --ink: #071624;
  --navy: #061b33;
  --navy-2: #0a2a4c;
  --blue: #0d47a1;
  --cyan: #58d7ff;
  --orange: #ff7a1a;
  --orange-2: #ff9e45;
  --paper: #f6f8fb;
  --white: #ffffff;
  --muted: #66758a;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(8, 24, 42, 0.12);
  --shadow: 0 28px 70px rgba(5, 23, 42, 0.18);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Work Sans Local', 'Trebuchet MS', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(255, 122, 26, 0.65);
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: var(--scroll-progress, 0%);
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.4);
  transform-origin: left center;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 12px 16px;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  color: var(--white);
  background: linear-gradient(180deg, rgba(4, 18, 33, 0.86), rgba(4, 18, 33, 0.22));
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  height: 70px;
  background: rgba(4, 18, 33, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

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

.brand img {
  width: 166px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.main-nav .nav-cta {
  margin-left: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.main-nav .nav-cta:hover {
  color: var(--ink);
  background: var(--orange-2);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: 112px 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 126px 0 76px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--spotlight-x, 18%) var(--spotlight-y, 22%), rgba(88, 215, 255, 0.22), transparent 24%),
    radial-gradient(circle at 20% 22%, rgba(88, 215, 255, 0.16), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(255, 122, 26, 0.18), transparent 30%),
    linear-gradient(135deg, #041222 0%, #082747 52%, #061b33 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -12% -22% -12%;
  height: 44%;
  background: linear-gradient(90deg, rgba(255,255,255,0.07), transparent 24%, rgba(255,122,26,0.12));
  transform: skewY(-5deg);
  z-index: -2;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.5;
  z-index: -1;
}

.ambient-one {
  width: 360px;
  height: 360px;
  right: 7%;
  top: 18%;
  background: rgba(88, 215, 255, 0.12);
  animation: ambientDrift 11s ease-in-out infinite alternate;
}

.ambient-two {
  width: 220px;
  height: 220px;
  left: 7%;
  bottom: 14%;
  background: rgba(255, 122, 26, 0.12);
  animation: ambientDrift 9s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.68fr);
  gap: 44px;
  align-items: center;
}

.eyebrow,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--orange-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.mini-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 4.2vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead,
.section-heading p,
.simulator-copy p,
.contact-copy p {
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.solutions .section-heading p,
.simulator .simulator-copy p,
.clients .section-heading p,
.faq .section-heading p {
  color: var(--muted);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 18px 40px rgba(255, 122, 26, 0.27);
}

.button-primary:hover {
  box-shadow: 0 24px 54px rgba(255, 122, 26, 0.36);
}

.button-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.trust-row {
  margin-top: 24px;
}

.trust-row span {
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.07));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(88,215,255,0.34), transparent 42%, rgba(255,122,26,0.34));
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.18) 48%, transparent 58%, transparent 100%);
  transform: translateX(-120%);
  animation: panelScan 5.6s ease-in-out infinite;
  pointer-events: none;
}

.panel-topline {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.security-card {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(4, 18, 33, 0.48);
  transition: transform 0.25s ease, background 0.25s ease;
}

.security-card.active,
.security-card:hover {
  transform: translateX(-6px);
  background: rgba(255, 255, 255, 0.13);
}

.card-dot {
  grid-row: 1 / span 2;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(255, 122, 26, 0.12);
  animation: dotGlow 1.9s ease-in-out infinite;
}

.security-card strong,
.security-card small {
  grid-column: 2;
  display: block;
}

.security-card small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.panel-metrics div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.panel-metrics strong {
  display: block;
  color: var(--orange-2);
  font-size: 2rem;
  line-height: 1;
}

.panel-metrics span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.intro-strip {
  position: relative;
  z-index: 3;
  margin-top: -56px;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--line-dark);
  box-shadow: var(--shadow);
}

.strip-grid > div {
  min-height: 190px;
  padding: 30px;
  background: var(--white);
}

.strip-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.strip-grid .mini-label {
  color: var(--blue);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 16px 48px rgba(4, 18, 33, 0.08);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solution-card:hover {
  transform: perspective(900px) translateY(-8px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 26px 64px rgba(4, 18, 33, 0.14);
}

.solution-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--card-x, 50%) var(--card-y, 0%), rgba(88, 215, 255, 0.16), transparent 34%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.solution-card:hover::after {
  opacity: 1;
}

.solution-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.solution-card div {
  padding: 24px;
}

.solution-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.solution-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.method {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,122,26,0.16), transparent 32%),
    linear-gradient(135deg, #041222, #092a4c);
}

.method-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 60px;
  align-items: center;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  width: 100%;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 22px;
  color: var(--white);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.timeline-item:hover,
.timeline-item.active {
  transform: translateX(8px);
  border-color: rgba(255, 122, 26, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.timeline-item.active span {
  animation: stepPop 0.55s cubic-bezier(.2, .9, .2, 1.25);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--ink);
  font-weight: 900;
  border-radius: 18px;
  background: var(--orange-2);
}

.timeline-item strong,
.timeline-item small {
  display: block;
  grid-column: 2;
}

.timeline-item small {
  color: rgba(255, 255, 255, 0.68);
  max-width: 54ch;
}

.simulator {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(246,248,251,1)),
    radial-gradient(circle at 16% 24%, rgba(13,71,161,0.10), transparent 26%);
}

.simulator-grid,
.contact-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: start;
}

.simulator-box,
.lead-form {
  padding: 30px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.simulator-box label,
.lead-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 900;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: var(--ink);
  border: 1px solid rgba(7, 22, 36, 0.16);
  border-radius: 16px;
  background: #fbfcfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 122, 26, 0.86);
  box-shadow: 0 0 0 5px rgba(255, 122, 26, 0.12);
  outline: 0;
}

fieldset {
  padding: 0;
  margin: 0 0 20px;
  border: 0;
}

legend {
  margin-bottom: 12px;
  font-weight: 900;
}

fieldset label {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px !important;
  color: var(--muted) !important;
  font-weight: 700 !important;
}

[type='radio'] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--orange);
}

.simulator-result {
  display: block;
  padding: 18px;
  margin: 18px 0;
  color: var(--navy);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(88, 215, 255, 0.18), rgba(255, 122, 26, 0.12));
  font-weight: 900;
}

.clients {
  background: var(--white);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.client-grid img {
  width: 100%;
  height: 120px;
  padding: 32px;
  object-fit: contain;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: #f9fbfd;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.client-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-4px);
}

.client-grid img.logo-light {
  background: linear-gradient(135deg, #061b33, #0b3158);
  border-color: rgba(255, 255, 255, 0.12);
  filter: none;
  opacity: 1;
}

.client-grid img.logo-light:hover {
  filter: none;
}

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(88, 215, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #041222, #071f3a 56%, #0a2a4c);
}

.contact-card {
  display: grid;
  gap: 6px;
  max-width: 360px;
  padding: 22px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-card span {
  color: rgba(255, 255, 255, 0.72);
}

.lead-form .button {
  width: 100%;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 900;
}

.form-status.is-error {
  color: #b42318;
}

.faq {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(4, 18, 33, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

details:hover,
details[open] {
  border-color: rgba(13, 71, 161, 0.18);
  box-shadow: 0 18px 50px rgba(4, 18, 33, 0.1);
}

summary {
  position: relative;
  padding: 22px 58px 22px 22px;
  font-weight: 900;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  border-radius: 999px;
  background: var(--blue);
  transform: translateY(-50%);
  transition: transform 0.25s ease, background 0.25s ease;
}

details[open] summary::after {
  content: '-';
  background: var(--orange);
  transform: translateY(-50%) rotate(180deg);
}

details.is-closing summary::after {
  content: '+';
  background: var(--blue);
  transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
  transition: grid-template-rows 0.34s cubic-bezier(.2, .8, .2, 1), opacity 0.24s ease, transform 0.34s ease;
}

details[open] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

details.is-closing .faq-answer {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
}

.faq-answer p {
  min-height: 0;
  overflow: hidden;
  padding: 0 22px 22px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 38px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #03111f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-grid img {
  width: 150px;
  height: auto;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--orange-2);
  font-weight: 900;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 108px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: #20c760;
  box-shadow: 0 20px 50px rgba(32, 199, 96, 0.32);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.03);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: var(--white);
}

.sales-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  display: grid;
  justify-items: end;
  gap: 14px;
  pointer-events: none;
}

.chat-launcher,
.chat-window {
  pointer-events: auto;
}

.chat-launcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #06213d, #0b4b8c);
  box-shadow: 0 20px 50px rgba(4, 18, 33, 0.28);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher[hidden] {
  display: none !important;
}

.chat-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 64px rgba(4, 18, 33, 0.34);
}

.chat-pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.42);
  animation: chatPulse 1.7s ease-out infinite;
}

.chat-launcher strong {
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: var(--ink);
  border-radius: 999px;
  background: var(--orange-2);
  font-size: 0.75rem;
}

.chat-window {
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: #f8fbff;
  box-shadow: 0 28px 80px rgba(4, 18, 33, 0.32);
  transform-origin: right bottom;
  animation: chatIn 0.32s cubic-bezier(.2, .9, .2, 1.1);
}

.chat-window[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 0%, rgba(88, 215, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #041222, #0b3158);
}

.chat-header span,
.chat-header strong {
  display: block;
}

.chat-header span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-header strong {
  margin-top: 2px;
  font-size: 1.05rem;
}

.chat-header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.6rem;
  line-height: 1;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 251, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.08), transparent 26%);
}

.chat-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(4, 18, 33, 0.08);
}

.chat-message.bot {
  justify-self: start;
  color: var(--ink);
  background: var(--white);
  border-bottom-left-radius: 7px;
}

.chat-message.user {
  justify-self: end;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #0a2a4c);
  border-bottom-right-radius: 7px;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 18px 18px;
  background: #f8fbff;
}

.chat-options button {
  padding: 10px 12px;
  color: var(--navy);
  border: 1px solid rgba(13, 71, 161, 0.16);
  border-radius: 999px;
  background: var(--white);
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chat-options button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.55);
  background: rgba(255, 122, 26, 0.1);
}

.chat-form {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
  background: #f8fbff;
}

.chat-form[hidden] {
  display: none;
}

.chat-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-weight: 900;
}

.chat-form input {
  min-height: 48px;
}

.chat-form .button {
  width: 100%;
}

@keyframes chatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.42);
  }

  80% {
    box-shadow: 0 0 0 14px rgba(255, 122, 26, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 122, 26, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.solution-grid .reveal:nth-child(2),
.faq-list details:nth-child(2) {
  transition-delay: 0.07s;
}

.solution-grid .reveal:nth-child(3),
.faq-list details:nth-child(3) {
  transition-delay: 0.14s;
}

.solution-grid .reveal:nth-child(4) {
  transition-delay: 0.21s;
}

.solution-grid .reveal:nth-child(5) {
  transition-delay: 0.28s;
}

.solution-grid .reveal:nth-child(6) {
  transition-delay: 0.35s;
}

@keyframes ambientDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(28px, -22px, 0) scale(1.08);
  }
}

@keyframes panelScan {
  0%,
  46% {
    transform: translateX(-120%);
  }

  64%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes dotGlow {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(255, 122, 26, 0.12);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(255, 122, 26, 0.04);
  }
}

@keyframes stepPop {
  0% {
    transform: scale(0.88);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 14px auto;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(4, 18, 33, 0.97);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a,
  .main-nav .nav-cta {
    margin: 0;
    padding: 14px 16px;
  }

  .hero-grid,
  .method-grid,
  .simulator-grid,
  .contact-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .strip-grid,
  .solution-grid {
    grid-template-columns: 1fr 1fr;
  }

  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 78px 0;
  }

  .hero {
    padding-top: 118px;
  }

  .brand img {
    width: 142px;
  }

  h1 {
    font-size: clamp(2.85rem, 13.5vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.15rem, 10vw, 3.3rem);
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-panel,
  .simulator-box,
  .lead-form {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .strip-grid,
  .solution-grid,
  .client-grid,
  .panel-metrics {
    grid-template-columns: 1fr;
  }

  .solution-card img {
    height: 210px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline-item {
    grid-template-columns: 48px 1fr;
    padding: 18px;
  }

  .timeline-item span {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 92px;
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .sales-chat {
    right: 16px;
    bottom: 16px;
  }

  .chat-launcher {
    min-height: 52px;
    max-width: calc(100vw - 100px);
    padding: 11px 14px;
    font-size: 0.9rem;
  }

  .chat-window {
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}





