*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
}

.font-display {
  font-family: "Syne", sans-serif;
}
.font-body {
  font-family: "Poppins", sans-serif;
}

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 3px;
}

/* ── Selection ───────────────────────────────── */
::selection {
  background: rgba(99, 102, 241, 0.25);
  color: #0f172a;
}

/* ── Autofill (dark sections) ────────────────── */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1e293b inset !important;
  -webkit-text-fill-color: #fff !important;
}

/* ── Animations ──────────────────────────────── */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes float-geo {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(8deg);
  }
}
@keyframes float-geo2 {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(-12px) rotate(55deg);
  }
}
@keyframes pulse-ring {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.05);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.geo-spin-slow {
  animation: spin-slow 22s linear infinite;
}
.geo-spin-reverse {
  animation: spin-reverse 16s linear infinite;
}
.geo-float {
  animation: float-geo 5s ease-in-out infinite;
}
.geo-float2 {
  animation: float-geo2 6s ease-in-out infinite;
  animation-delay: 1s;
}
.pulse-ring {
  animation: pulse-ring 3s ease-in-out infinite;
}

.anim-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}
.anim-slide-l {
  animation: slideLeft 0.6s ease-out forwards;
}
.anim-slide-r {
  animation: slideRight 0.6s ease-out forwards;
}

/* ── Animation delays ────────────────────────── */
.delay-150 {
  animation-delay: 0.15s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-450 {
  animation-delay: 0.45s;
}

/* ── Navbar ──────────────────────────────────── */
#navbar {
  transition: all 0.3s ease;
}
.language-switcher {
  position: relative;
  z-index: 60;
  color: #ffffff;
}
.language-switcher summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  list-style: none;
}
.language-switcher summary::-webkit-details-marker {
  display: none;
}
.language-switcher summary:hover,
.language-switcher[open] summary {
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(165, 180, 252, 0.55);
}
.language-globe {
  color: #a5b4fc;
  font-size: 0.65rem;
}
.language-chevron {
  display: inline-flex;
  align-items: center;
  transform: translateY(-2px);
  color: #c7d2fe;
  font-size: 0.9rem;
  line-height: 0.7;
}
.language-code {
  transform: translateY(1px);
}
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}
.language-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.language-menu a:hover,
.language-menu a[aria-current="page"] {
  background: #eef2ff;
  color: #4f46e5;
}
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: 0 4px 24px rgba(2, 6, 23, 0.28);
}
#navbar.scrolled nav a {
  color: #cbd5e1 !important;
}
#navbar.scrolled nav a:hover {
  color: #a5b4fc !important;
}
#navbar.scrolled .ham-line {
  background: #6366f1;
}
#navbar.scrolled #mobile-menu {
  background: rgba(15, 23, 42, 0.98) !important;
  border-top-color: rgba(129, 140, 248, 0.22) !important;
}
#navbar.scrolled #mobile-menu nav a {
  color: #cbd5e1 !important;
}
#mobile-menu {
  background: rgba(15, 23, 42, 0.98) !important;
  border-top-color: rgba(129, 140, 248, 0.22) !important;
}
#mobile-menu nav a {
  color: #cbd5e1 !important;
}
#mobile-menu nav a:hover,
#mobile-menu nav a:focus-visible {
  color: #6366f1 !important;
}

/* ── Hamburger ───────────────────────────────── */
#hamburger {
  position: relative;
  width: 38px;
  height: 34px;
  align-items: center;
  justify-content: center;
}
.ham-line {
  display: block;
  position: absolute;
  left: 8px;
  width: 22px;
  height: 2px;
  background: #6366f1;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
#hamburger .ham-line:nth-child(1) {
  top: 10px;
}
#hamburger .ham-line:nth-child(2) {
  top: 16px;
}
#hamburger .ham-line:nth-child(3) {
  top: 22px;
}
#hamburger.open .ham-line:nth-child(1) {
  top: 16px !important;
  transform: rotate(45deg) !important;
}
#hamburger.open .ham-line:nth-child(2) {
  opacity: 0 !important;
}
#hamburger.open .ham-line:nth-child(3) {
  top: 16px !important;
  transform: rotate(-45deg) !important;
}

/* ── Service cards with left-border ─────────── */
.service-card-v2 {
  background: #ffffff;
  border-left: 4px solid;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  border-radius: 0 16px 16px 0;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.service-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ── Process zigzag (desktop) ────────────────── */
.process-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-direction: row !important;
}
@media (max-width: 767px) {
  .process-item {
    flex-direction: column !important;
    gap: 1rem;
  }
  .process-connector {
    display: none !important;
  }
}

/* ── Cases/Testimonials Swiper ───────────────── */
.cases-swiper-v2 {
  overflow: visible !important;
}
.cases-outer-v2 {
  overflow: hidden;
}
.testi-swiper-v2 {
  overflow: visible !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #6366f1 !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
}
.swiper-pagination-bullet {
  background: rgba(99, 102, 241, 0.35) !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active {
  background: #6366f1 !important;
}

/* ── Stat section (indigo bg) ────────────────── */
.numeric-display {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "lnum" 1,
    "tnum" 1;
}

.stat-num {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  color: #ffffff;
  font-size: clamp(2.5rem, 3.6vw, 3.5rem);
  line-height: 0.95;
  white-space: nowrap;
}

/* ── Team card ───────────────────────────────── */
.team-card-v2 {
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}
.team-card-v2:hover {
  border-color: #6366f1;
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
}

/* ── Form inputs (dark section) ──────────────── */
.form-inp-v2 {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.875rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}
.form-inp-v2::placeholder {
  color: #475569;
}
.form-inp-v2:focus {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ── Gradient text (indigo→rose) ─────────────── */
.grad-text-ir {
  background: linear-gradient(135deg, #6366f1, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Trust badge hover ───────────────────────── */
.partner-badge-v2 {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.2s;
}
.partner-badge-v2:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-2px);
}

/* ── Section divider line ────────────────────── */
.divider-indigo {
  height: 3px;
  width: 48px;
  background: linear-gradient(to right, #6366f1, #f43f5e);
  border-radius: 2px;
}

.legal-page {
  min-height: 100vh;
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #0f172a;
}
.legal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.14);
}
.legal-header-inner,
.legal-content {
  width: min(900px, 100%);
  margin: 0 auto;
}
.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.18);
  color: #e0e7ff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.legal-back:hover {
  color: #fff;
  background: #6366f1;
  border-color: #818cf8;
  transform: translateY(-1px);
}
.legal-back span {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s;
}
.legal-back:hover span {
  transform: translateX(-3px);
}
.legal-content {
  background: #fff;
  margin-top: 56px;
  margin-bottom: 28px;
  padding: 48px clamp(24px, 5vw, 64px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.legal-kicker {
  color: #6366f1 !important;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
}
.legal-content h1,
.legal-content h2 {
  font-family: "Syne", sans-serif;
  color: #0f172a;
}
.legal-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
}
.legal-content h2 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
}
.legal-content p,
.legal-content li {
  color: #475569;
  line-height: 1.75;
}
.legal-content ul {
  padding-left: 24px;
}
.legal-muted {
  color: #94a3b8;
  font-size: 0.875rem;
}
.legal-details {
  background: #f8fafc;
  border-left: 3px solid #6366f1;
  margin-top: 24px;
  padding: 16px 20px;
}
.legal-details p {
  margin: 4px 0;
}
.legal-footer {
  padding: 0 24px 40px;
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: center;
}
.legal-footer a {
  color: #6366f1;
  text-decoration: none;
}
.legal-footer a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .legal-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .legal-content {
    margin-top: 24px;
    margin-bottom: 20px;
    border-radius: 0;
  }
}
