/* Public landing page — complements Tailwind CDN */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto Slab", Georgia, serif;
  overflow-x: hidden;
}

.page-wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: 2%;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  inset-inline: 0;
  position: fixed;
  top: 0;
  z-index: 50;
}

.site-header__bar {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding-block: 0.45rem;
  position: relative;
}

.site-logo img {
  display: block;
  height: 2.75rem;
  width: auto;
}

.header-phones,
.main-nav__phones {
  color: #1e293b;
  font-size: 0.75rem;
  line-height: 1.45;
}

.header-phones {
  display: none;
}

.site-header__tools {
  align-items: center;
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

.header-download {
  background: #0ea5e9;
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
}

.header-download:hover {
  background: #0284c7;
}

.nav-toggle {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  color: #0f172a;
  height: 2.5rem;
  padding: 0.35rem;
  width: 2.5rem;
}

.nav-toggle svg {
  display: block;
  height: 100%;
  width: 100%;
}

.main-nav {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  display: none;
  left: 0;
  max-height: calc(100vh - 4.5rem);
  overflow: auto;
  padding: 1rem 2%;
  position: absolute;
  right: 0;
  top: 100%;
}

.main-nav.is-open {
  display: block;
}

.main-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__download {
  display: none;
}

.main-nav__icons {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  padding-block: 0.35rem;
}

.main-nav__icons img {
  display: block;
  height: 2rem;
  width: auto;
}

.main-nav__icons a:nth-child(2) img {
  height: 1.85rem;
  width: 1.85rem;
}

.language-switcher {
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  max-width: 100%;
  padding: 0.4rem 0.5rem;
}

.site-nav-link {
  color: #0f172a;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0;
  text-transform: uppercase;
}

.site-nav-link:hover {
  color: #dc2626;
}

.site-main {
  padding-top: 4.5rem;
}

@media (min-width: 1280px) {
  .site-logo img {
    height: 3rem;
  }

  .header-phones {
    display: flex;
    flex-direction: column;
  }

  .site-header__tools,
  .main-nav__phones {
    display: none;
  }

  .main-nav {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
    margin-left: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    position: static;
  }

  .main-nav__links {
    align-items: center;
    flex-direction: row;
    gap: 0.65rem;
  }

  .main-nav__download {
    display: list-item;
  }

  .site-nav-link {
    font-size: 0.78rem;
    padding: 0.2rem 0;
  }

  .language-switcher {
    max-width: 7.5rem;
  }
}

.video-frame {
  aspect-ratio: 16 / 9;
  border: 0;
  height: auto;
  width: 100%;
}

.solution-icon {
  align-items: center;
  background: #1e293b;
  border-radius: 9999px;
  color: #fff;
  display: flex;
  height: 4rem;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  width: 4rem;
}

.solution-svg {
  height: 1.85rem;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 1.85rem;
}

/* Time — rotating clock hands */
.solution-svg--time .solution-clock-hand {
  animation: solution-clock-hour 6s linear infinite;
  transform-origin: 12px 12px;
}

.solution-svg--time .solution-clock-minute {
  animation: solution-clock-minute 2s linear infinite;
  transform-origin: 12px 12px;
}

@keyframes solution-clock-hour {
  to {
    transform: rotate(360deg);
  }
}

@keyframes solution-clock-minute {
  to {
    transform: rotate(360deg);
  }
}

/* Simple — friendly pulse */
.solution-svg--simple .solution-smile-face {
  animation: solution-pulse 2.4s ease-in-out infinite;
  transform-origin: 12px 12px;
}

@keyframes solution-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

/* Lots — stacking bounce */
.solution-svg--lots .solution-lot-1 {
  animation: solution-lot-bounce 2.2s ease-in-out infinite;
}

.solution-svg--lots .solution-lot-2 {
  animation: solution-lot-bounce 2.2s ease-in-out 0.15s infinite;
}

.solution-svg--lots .solution-lot-3 {
  animation: solution-lot-bounce 2.2s ease-in-out 0.3s infinite;
}

@keyframes solution-lot-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.5px);
  }
}

/* Barcode — scanning line */
.solution-svg--barcode .solution-scan-line {
  animation: solution-scan 2s ease-in-out infinite;
  stroke: #fbbf24;
  stroke-width: 2;
}

@keyframes solution-scan {
  0%,
  100% {
    transform: translateY(-8px);
    opacity: 0.3;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* Click — ripple + cursor tap */
.solution-svg--click .solution-click-ring {
  animation: solution-click-ring 1.8s ease-out infinite;
  transform-origin: 12px 12px;
}

.solution-svg--click .solution-click-cursor {
  animation: solution-click-tap 1.8s ease-in-out infinite;
  transform-origin: 12px 12px;
}

@keyframes solution-click-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.85);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes solution-click-tap {
  0%,
  100% {
    transform: translate(0, 0);
  }

  40% {
    transform: translate(1px, 1px) scale(0.92);
  }
}

/* Shield — check draw */
.solution-svg--shield .solution-shield-check {
  animation: solution-check-draw 2.5s ease-in-out infinite;
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
}

@keyframes solution-check-draw {
  0%,
  20% {
    stroke-dashoffset: 12;
  }

  50%,
  100% {
    stroke-dashoffset: 0;
  }
}

/* Alert — bell shake */
.solution-svg--alert .solution-bell {
  animation: solution-bell-shake 2.5s ease-in-out infinite;
  transform-origin: 12px 6px;
}

.solution-svg--alert .solution-alert-dot {
  animation: solution-alert-blink 1.2s ease-in-out infinite;
}

@keyframes solution-bell-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(-8deg);
  }

  20%,
  40% {
    transform: rotate(8deg);
  }
}

@keyframes solution-alert-blink {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

/* Sync — rotating arrows */
.solution-svg--sync .solution-sync-arrow {
  animation: solution-sync-spin 3s linear infinite;
  transform-origin: 12px 12px;
}

@keyframes solution-sync-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Palette — color dots pulse */
.solution-svg--palette .solution-color-1 {
  animation: solution-color-pop 2s ease-in-out infinite;
}

.solution-svg--palette .solution-color-2 {
  animation: solution-color-pop 2s ease-in-out 0.25s infinite;
}

.solution-svg--palette .solution-color-3 {
  animation: solution-color-pop 2s ease-in-out 0.5s infinite;
}

@keyframes solution-color-pop {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }
}

/* WiFi — signal waves */
.solution-svg--wifi .solution-wifi-1 {
  animation: solution-wifi-pulse 2s ease-in-out infinite;
}

.solution-svg--wifi .solution-wifi-2 {
  animation: solution-wifi-pulse 2s ease-in-out 0.2s infinite;
}

.solution-svg--wifi .solution-wifi-3 {
  animation: solution-wifi-pulse 2s ease-in-out 0.4s infinite;
}

@keyframes solution-wifi-pulse {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

/* Search — lens moves */
.solution-svg--search .solution-search-lens {
  animation: solution-search-move 2.4s ease-in-out infinite;
  transform-origin: 11px 11px;
}

@keyframes solution-search-move {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(1.5px, -1.5px);
  }
}

/* Print — paper feeds */
.solution-svg--print .solution-paper {
  animation: solution-paper-feed 2.2s ease-in-out infinite;
}

@keyframes solution-paper-feed {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(2px);
  }
}

/* Money — coin bounce */
.solution-svg--money .solution-coin {
  animation: solution-coin-bounce 2s ease-in-out infinite;
  transform-origin: 12px 12px;
}

@keyframes solution-coin-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.04);
  }
}

/* Rocket — lift off */
.solution-svg--rocket .solution-rocket-body {
  animation: solution-rocket-float 2.4s ease-in-out infinite;
}

.solution-svg--rocket .solution-rocket-flame {
  animation: solution-flame-flicker 0.45s ease-in-out infinite alternate;
  stroke: #fbbf24;
}

@keyframes solution-rocket-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes solution-flame-flicker {
  from {
    opacity: 0.45;
    transform: scaleY(0.85);
  }

  to {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

.modal-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 100;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-panel {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 28rem;
  width: 100%;
}

.section {
  padding-block: clamp(2.75rem, 5vw, 4.75rem);
  scroll-margin-top: 5.5rem;
}

.section-title {
  color: #0f172a;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title::after {
  background: #dc2626;
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin: 0.75rem auto 0;
  width: 3.25rem;
}

.section-title--light {
  color: #fff;
}

.section-lead {
  color: #64748b;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  margin-top: 0.85rem;
}

.intro-copy {
  color: #334155;
  display: grid;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  gap: 1.15rem;
  line-height: 1.75;
  margin: 1.75rem auto 0;
  max-width: 52rem;
  text-align: center;
}

.video-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.video-language,
.video-shell {
  width: 100%;
}

.video-language {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  max-width: 16rem;
  padding: 0.55rem 0.7rem;
}

.video-shell {
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  margin-top: 1.25rem;
  overflow: hidden;
}

.video-caption {
  color: #334155;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 1rem;
}

.solution-grid,
.team-grid,
.contact-grid,
.contact-details,
.contact-actions {
  display: grid;
  gap: 1.25rem;
}

.solution-grid,
.team-grid {
  margin-top: 2.25rem;
}

.solution-card,
.team-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem 1.15rem 1.35rem;
  text-align: center;
}

.solution-card h3,
.team-card h3 {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
}

.solution-card p,
.team-card p {
  color: #475569;
  line-height: 1.65;
  margin-top: 0.65rem;
}

.team-card img {
  border-radius: 999px;
  display: block;
  height: 7.5rem;
  margin: 0 auto 1rem;
  object-fit: cover;
  width: 7.5rem;
}

.contact-grid {
  margin-top: 2rem;
}

.contact-copy {
  display: grid;
  gap: 1.75rem;
}

.contact-btn {
  border: 0;
  border-radius: 0.7rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 1.25rem;
  width: 100%;
}

.contact-btn--amber {
  background: #fbbf24;
  color: #0f172a;
}

.contact-btn--amber:hover {
  background: #fcd34d;
}

.contact-btn--red {
  background: #dc2626;
  color: #fff;
}

.contact-btn--red:hover {
  background: #ef4444;
}

.facebook-embed {
  min-height: 18rem;
}

@media (min-width: 640px) {
  .solution-grid,
  .contact-details,
  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .video-toolbar {
    justify-content: stretch;
  }

  .video-language {
    max-width: none;
  }

  .header-download {
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
  }
}

@media (min-width: 1024px) {
  .solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  }

  .facebook-embed {
    min-height: 26rem;
  }
}

.banner-stage {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.banner-piece {
  animation: banner-unfold 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  display: block;
  height: auto;
  transform-origin: center center;
  width: 100%;
}

.banner-sheen {
  animation: banner-sheen 1.05s ease-out 0.85s both;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.62) 50%,
    transparent 62%
  );
  inset: 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
  position: absolute;
}

@keyframes banner-unfold {
  0% {
    clip-path: inset(8% 44% 22% 44% round 16px);
    filter: blur(6px) saturate(0.8);
    opacity: 0;
    transform: scale(0.94);
  }

  55% {
    filter: blur(0) saturate(1);
    opacity: 1;
  }

  100% {
    clip-path: inset(0 0 0 0 round 0);
    filter: none;
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes banner-sheen {
  0% {
    transform: translate3d(-130%, 0, 0);
  }

  100% {
    transform: translate3d(130%, 0, 0);
  }
}

@media (max-width: 768px) {
  .banner-desktop {
    display: none;
  }

  .video-frame {
    height: 240px;
  }
}

@media (min-width: 769px) {
  .banner-mobile {
    display: none;
  }
}

/* Contact section — legacy dotted world map background */
.contact-section {
  background-color: #212529;
  overflow: hidden;
  position: relative;
}

.contact-section__map {
  animation: map-glow 7s ease-in-out infinite;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

@keyframes map-glow {
  0%,
  100% {
    filter: brightness(0.95) contrast(1);
    opacity: 0.88;
  }

  50% {
    filter: brightness(1.12) contrast(1.04);
    opacity: 1;
  }
}

.contact-section__glitter {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.contact-glitter-dot {
  animation: glitter-twinkle var(--glitter-duration, 3s) ease-in-out infinite;
  animation-delay: var(--glitter-delay, 0s);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 35%, transparent 70%);
  border-radius: 9999px;
  height: var(--glitter-size, 3px);
  opacity: 0;
  position: absolute;
  transform: translate(-50%, -50%) scale(0.4);
  width: var(--glitter-size, 3px);
}

@keyframes glitter-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
  }

  45% {
    opacity: var(--glitter-peak, 0.85);
    transform: translate(-50%, -50%) scale(1);
  }

  55% {
    opacity: calc(var(--glitter-peak, 0.85) * 0.6);
    transform: translate(-50%, -50%) scale(0.85);
  }
}

.contact-section__shimmer {
  animation: glitter-sweep 9s linear infinite;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.04) 47%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 53%,
    transparent 58%
  );
  background-size: 220% 100%;
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

@keyframes glitter-sweep {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.contact-section__map--desktop {
  background-image: url("../images/map-image.webp");
}

.contact-section__map--mobile {
  background-image: url("../images/map-image-mobile.webp");
  display: none;
}

@media (max-width: 768px) {
  .contact-section__map--desktop {
    display: none;
  }

  .contact-section__map--mobile {
    display: block;
  }
}

.contact-section__content {
  position: relative;
  z-index: 2;
}

/* Scroll motion — Framer Motion-style easing (no React dependency) */
[data-motion] {
  opacity: 0;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-motion="fade-up"] {
  transform: translate3d(0, 28px, 0);
}

[data-motion="fade-down"] {
  transform: translate3d(0, -28px, 0);
}

[data-motion="fade-left"] {
  transform: translate3d(-28px, 0, 0);
}

[data-motion="fade-right"] {
  transform: translate3d(28px, 0, 0);
}

[data-motion="scale-in"] {
  transform: scale(0.94);
}

[data-motion].motion-visible {
  opacity: 1;
  transform: none;
}

[data-motion-hover] {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-motion-hover]:hover,
[data-motion-hover].motion-hover-active {
  transform: translateY(-2px) scale(1.02);
}

article[data-motion]:hover .solution-icon {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  [data-motion] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  [data-motion-hover]:hover {
    transform: none;
  }

  .contact-section__map,
  .contact-section__shimmer,
  .contact-glitter-dot {
    animation: none !important;
  }

  .contact-section__map {
    filter: none;
    opacity: 1;
  }

  .contact-section__glitter {
    display: none;
  }

  .solution-svg *,
  .solution-icon,
  .banner-piece,
  .banner-sheen {
    animation: none !important;
  }

  .banner-piece {
    clip-path: none;
    filter: none;
    opacity: 1;
    transform: none;
  }

  .banner-sheen {
    display: none !important;
  }
}
