/* Addensoft — shared stylesheet
   Extracted from the original design so every page shares one source of truth. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FBFBFE;
  color: #14142B;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

a { color: #5B4FE8; text-decoration: none; }
a:hover { color: #4232C4; }

img { max-width: 100%; }

.page { width: 100%; overflow-x: clip; }

/* ============ Keyframes ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatyAlt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes pulseRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(91,79,232,0.28); } 50% { box-shadow: 0 0 0 14px rgba(91,79,232,0); } }
@keyframes waPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }

.fade-up { animation: fadeUp .7s ease both; }
.fade-up-1 { animation: fadeUp .7s ease .08s both; }
.fade-up-2 { animation: fadeUp .7s ease .16s both; }
.fade-up-3 { animation: fadeUp .7s ease .24s both; }
.fade-up-4 { animation: fadeUp .7s ease .32s both; }

/* ============ Cinematic scroll-reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .8s cubic-bezier(.16,.8,.3,1), transform .8s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .2s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .26s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .32s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .38s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: .44s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: .5s; }
.reveal-stagger.in-view > *:nth-child(n+10) { transition-delay: .56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .fade-up, .fade-up-1, .fade-up-2, .fade-up-3, .fade-up-4 { animation: none; }
}

/* ============ Header / Nav ============ */
#site-header { transition: transform .3s ease, box-shadow .3s ease; }
#site-header.is-scrolled { box-shadow: 0 8px 30px rgba(20,20,43,0.1); }

.nav-links { display: flex; }
.hamburger-btn { display: none; }

.hamburger-line {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.8px;
  background: #14142B;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .3s cubic-bezier(.16,.8,.3,1), opacity .3s cubic-bezier(.16,.8,.3,1), top .3s cubic-bezier(.16,.8,.3,1);
}
.hamburger-line-1 { top: 14px; }
.hamburger-line-2 { top: 19px; }
.hamburger-line-3 { top: 24px; }

.hamburger-btn.open .hamburger-line-1 { top: 19px; transform: translateX(-50%) rotate(45deg); }
.hamburger-btn.open .hamburger-line-2 { opacity: 0; }
.hamburger-btn.open .hamburger-line-3 { top: 19px; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu-panel {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity .32s cubic-bezier(.16,.8,.3,1), transform .32s cubic-bezier(.16,.8,.3,1), visibility 0s linear .32s;
  pointer-events: none;
}
.mobile-menu-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .32s cubic-bezier(.16,.8,.3,1), transform .32s cubic-bezier(.16,.8,.3,1), visibility 0s linear 0s;
  pointer-events: auto;
}
.mobile-menu-panel a { transition: background .2s ease, color .2s ease; border-radius: 10px; padding-left: 10px; padding-right: 10px; margin: 0 -10px; }
.mobile-menu-panel a:hover { background: #F7F6FE; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel { transition: opacity .01s linear, visibility 0s linear; transform: none; }
  .mobile-menu-panel.open { transition: opacity .01s linear, visibility 0s linear; }
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; }
.nav-dropdown.open .nav-dropdown-menu { display: block; animation: fadeUp .18s ease both; }
.chevron { transition: transform .2s ease; }
.nav-dropdown.open .chevron { transform: rotate(180deg); }

.dropdown-link { transition: background .2s ease; }
.dropdown-link:hover { background: #F7F6FE; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger-btn { display: flex; }
  .header-cta { display: none; }
}

/* ============ Buttons ============ */
.btn-primary {
  background: #5B4FE8; color: #fff; font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-primary:hover, .btn-primary:hover:link, .btn-primary:hover:visited { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(91,79,232,0.35); }

.btn-primary-lg { transition: transform .25s ease, box-shadow .25s ease; }
.btn-primary-lg:hover, .btn-primary-lg:hover:link, .btn-primary-lg:hover:visited { color: #fff; transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 28px rgba(91,79,232,0.35); }

.btn-outline { transition: transform .25s ease, border-color .25s ease; }
.btn-outline:hover, .btn-outline:hover:link, .btn-outline:hover:visited { color: #14142B; transform: translateY(-3px); border-color: #5B4FE8; }

.btn-white:hover, .btn-white:hover:link, .btn-white:hover:visited { color: #4232C4; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }

/* ============ Cards ============ */
.card-hover { transition: transform .3s ease, box-shadow .3s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 36px rgba(20,20,43,0.1); }

.card-hover-sm { transition: transform .3s ease, box-shadow .3s ease; }
.card-hover-sm:hover { transform: translateY(-6px); box-shadow: 0 14px 26px rgba(20,20,43,0.08); }

.card-hover-list { transition: transform .3s ease, box-shadow .3s ease; }
.card-hover-list:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(20,20,43,0.08); }

.card-hover-team { transition: transform .3s ease, box-shadow .3s ease; }
.card-hover-team:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(20,20,43,0.14); }

/* ============ Filter chips / view toggle ============ */
.chip {
  background: transparent; color: #4A4D68; border: 1px solid #DCDCEB;
  font-weight: 700; font-size: 13px; padding: 9px 18px; border-radius: 20px;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip.active { background: #5B4FE8; color: #fff; border-color: transparent; }

.view-toggle { display: flex; gap: 4px; border: 1px solid #DCDCEB; border-radius: 10px; padding: 4px; }
.view-btn {
  width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; background: transparent; color: #4A4D68;
  transition: background .2s ease, color .2s ease;
}
.view-btn svg { stroke: currentColor; }
.view-btn.active { background: #5B4FE8; color: #fff; }

/* ============ Image slots (replaces editor's <image-slot>) ============ */
.img-slot { position: relative; overflow: hidden; display: block; background: #EFEEFC; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot.shape-circle, .img-slot.shape-circle img { border-radius: 50%; }
.img-slot .credit {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px);
  padding: 3px 7px; border-radius: 5px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 10.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.img-slot .credit a { color: inherit; text-decoration: none; }
.img-slot .credit a:hover { text-decoration: underline; }

/* ============ Blog / Case Studies grids ============ */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 26px; }
.post-grid.list-view { display: flex; flex-direction: column; }
.post-grid.list-view .post-card { flex-direction: row; }
.post-grid.list-view .post-card .img-slot { width: 260px; height: auto !important; }
.post-card { display: flex; flex-direction: column; }
.post-card .img-slot { width: 100%; height: 190px; }

/* ============ Testimonial carousel ============ */
.testimonial-viewport { overflow: hidden; }
.testimonial-track { display: flex; gap: 24px; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.testimonial-item { flex: 0 0 100%; box-sizing: border-box; }
@media (min-width: 720px) { .testimonial-item { flex: 0 0 calc(50% - 12px); } }
@media (min-width: 1080px) { .testimonial-item { flex: 0 0 calc(33.333% - 16px); } }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border-radius: 50%; background: #fff; border: 1px solid #EDEDF5; box-shadow: 0 8px 20px rgba(20,20,43,0.08);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease;
}
.carousel-arrow svg path { transition: stroke .2s ease; }
.carousel-arrow:hover { background: #5B4FE8; }
.carousel-arrow:hover svg path { stroke: #fff; }
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }

.carousel-dot { height: 8px; border-radius: 4px; background: #DCDCEB; cursor: pointer; transition: all .3s ease; display: inline-block; width: 8px; }
.carousel-dot.active { width: 26px; background: #5B4FE8; }

/* ============ Video modal ============ */
.video-modal {
  position: fixed; inset: 0; background: rgba(10,10,20,0.8); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-box {
  position: relative; width: min(920px,100%); aspect-ratio: 16/9; background: #000;
  border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.video-modal-close {
  position: absolute; top: -46px; right: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff;
}
.video-modal-box video { width: 100%; height: 100%; object-fit: cover; }

/* ============ WhatsApp floating button (global) ============ */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.4);
  animation: waPulse 2.6s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-fab:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 32px rgba(37,211,102,0.5); }
.whatsapp-fab svg { width: 30px; height: 30px; }

@media (max-width: 640px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-fab svg { width: 27px; height: 27px; }
}

/* ============ Homepage: trust bar + stats ============ */
.trust-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.trust-divider { width: 1px; height: 34px; background: #EDEDF5; }

.stats-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; }

@media (max-width: 640px) {
  .trust-bar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 22px 16px; }
  .trust-divider { display: none; }

  .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .stats-grid > div { gap: 10px; }
  .stats-grid > div svg { width: 26px; height: 26px; flex-shrink: 0; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============ Homepage: hero graphic (mobile-safe) ============ */
.hero-graphic { height: clamp(420px, 58vw, 620px); }
.hero-revenue-card { width: min(405px, 90%); }

@media (max-width: 640px) {
  .hero-float { display: none !important; }
  .hero-graphic { height: 300px; }
}

/* ============ Legal pages (Privacy / Terms / Cookies) ============ */
.legal-content { color: #4A4D68; font-size: 15px; line-height: 1.75; }
.legal-content h2 { color: #14142B; font-size: 20px; font-weight: 800; margin: 36px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 16px; }
.legal-content a { font-weight: 600; }
.legal-content b { color: #14142B; }

/* ============ FAQ accordion ============ */
.faq-item {
  border: 1px solid #EDEDF5;
  border-radius: 16px;
  padding: 6px 22px;
  margin-bottom: 14px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 15.5px;
  color: #14142B;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-chevron { transition: transform .25s ease; flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { color: #6E7191; font-size: 14.5px; line-height: 1.7; margin: 0 0 20px; }
