/* تيركس (Terrex) — للخدمات البرمجية: بنفسجي / فيروزي + حركات */
:root {
  --navy: #1e1b4b;
  --navy-mid: #312e81;
  --navy-soft: #4338ca;
  --hero-blue-deep: #312e81;
  --hero-blue: #4338ca;
  --hero-teal: #0891b2;
  --hero-cyan: #22d3ee;
  --cta-blue: #6366f1;
  --cta-blue-dark: #4f46e5;
  --accent-violet: #a78bfa;
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --cyan-accent: #67e8f9;
  --link: #4f46e5;
  --page-bg: #f5f3ff;
  --surface: #ffffff;
  --card: #faf5ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e9d5ff;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 14px 44px rgba(49, 46, 129, 0.12);
  --shadow-sm: 0 4px 20px rgba(49, 46, 129, 0.07);
  --header-h: 76px;
  --font: "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Almarai", "Tajawal", sans-serif;
}

@keyframes tx-gradient-sweep {
  0%,
  100% {
    transform: translate3d(-18%, 0, 0) rotate(-2deg);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(18%, -4%, 0) rotate(2deg);
    opacity: 0.85;
  }
}

@keyframes tx-orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1.05);
  }
}

@keyframes tx-shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes tx-mesh-pan {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

h1,
h2,
h3,
h4,
.brand-name,
.hero-pro-tagline {
  font-family: var(--font-display);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background-color: var(--page-bg);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(167, 139, 250, 0.14), transparent 55%),
    radial-gradient(900px 480px at -5% 40%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, #faf5ff 0%, var(--page-bg) 38%, #fdfcff 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  animation: tx-mesh-pan 28s ease-in-out infinite alternate;
  color: var(--text);
  line-height: 1.75;
  font-size: 1.0625rem;
}

.page-home .page-main > :not(.hero-pro) {
  position: relative;
  z-index: 1;
}

/* Bootstrap Icons + RTL: حجم ثابت وتجنب انزلاق السطر */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-size: 0.9em;
  background: var(--card);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(233, 213, 255, 0.85);
  box-shadow: 0 8px 32px rgba(49, 46, 129, 0.06);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(49, 46, 129, 0.1);
}
.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--hero-blue-deep) 0%,
    var(--accent-violet) 42%,
    var(--hero-cyan) 78%,
    var(--hero-teal) 100%
  );
  background-size: 200% 100%;
  animation: tx-mesh-pan 12s linear infinite;
  opacity: 1;
}

.header-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--hero-blue-deep);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
  color: var(--navy-mid);
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-name {
  font-size: 1.15rem;
}
.brand-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
  max-width: 100%;
  min-width: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border-bottom: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover {
  color: var(--cta-blue-dark);
  background: rgba(19, 134, 238, 0.08);
  text-decoration: none;
}

.nav-links a.nav-active {
  color: var(--hero-blue-deep);
  background: rgba(11, 98, 201, 0.09);
  box-shadow: inset 0 0 0 1px rgba(11, 98, 201, 0.14);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }
  .btn-header-desktop {
    display: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    justify-self: stretch;
    flex-wrap: nowrap;
  }
  .nav-links a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    white-space: normal;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .site-header.nav-open .nav-links {
    display: flex;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cta-blue) 0%, var(--cta-blue-dark) 100%);
  color: #fff;
  border-radius: var(--radius-pill);
  padding-inline: 1.5rem;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.42);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -40%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 90%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}
.btn-primary:hover {
  filter: brightness(1.07);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.48);
  text-decoration: none;
}
.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.btn-outline-dark {
  background: transparent;
  color: var(--hero-blue-deep);
  border: 2px solid rgba(11, 98, 201, 0.45);
  border-radius: var(--radius-pill);
}
.btn-outline-dark:hover {
  background: var(--hero-blue-deep);
  color: #fff;
  border-color: var(--hero-blue-deep);
  text-decoration: none;
}

.btn-pro-outline {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}
.btn-pro-outline:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* ----- Hero — قوس متدرّج + عرض متحرك ----- */
@keyframes hero-pro-in-copy {
  from {
    opacity: 0;
    transform: translateY(-28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-pro-in-visual {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-pro {
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.hero-pro-bg {
  position: absolute;
  inset: 0 0 auto;
  height: min(88vh, 800px);
  min-height: 520px;
  pointer-events: none;
  z-index: 0;
}

.hero-pro-arch {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(
    168deg,
    #1e1b4b 0%,
    var(--hero-blue-deep) 28%,
    var(--hero-blue) 52%,
    #0891b2 78%,
    var(--hero-cyan) 100%
  );
  border-radius: 0 0 52% 52% / 0 0 min(46vw, 320px) min(46vw, 320px);
  box-shadow: 0 28px 90px rgba(49, 46, 129, 0.35);
}

.hero-pro-arch::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(167, 139, 250, 0.35) 38%,
    rgba(34, 211, 238, 0.25) 62%,
    transparent 100%
  );
  animation: tx-gradient-sweep 11s ease-in-out infinite;
  pointer-events: none;
}

.hero-pro-arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -15%, rgba(255, 255, 255, 0.22), transparent 52%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.hero-pro-shine {
  position: absolute;
  inset-inline-start: -30%;
  top: 10%;
  width: 55%;
  height: 45%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
  pointer-events: none;
  filter: blur(12px);
}

.hero-floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  opacity: 0.55;
  animation: tx-orb-float 9s ease-in-out infinite;
}

.hero-floating-orb--a {
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.55), transparent 68%);
  inset-inline-end: 8%;
  top: 22%;
  animation-delay: 0s;
}

.hero-floating-orb--b {
  width: min(36vw, 220px);
  height: min(36vw, 220px);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 70%);
  inset-inline-start: 12%;
  bottom: 18%;
  animation-delay: -4s;
  animation-duration: 11s;
}

.hero-pro-frame {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem clamp(5rem, 10vw, 6.5rem);
  min-height: min(78vh, 700px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-pro-slider {
  position: relative;
  width: 100%;
  padding-inline: clamp(2.5rem, 6vw, 3.75rem);
}

.hero-pro-track {
  position: relative;
  width: 100%;
}

.hero-pro-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
}

.hero-pro-slide.is-active {
  display: flex;
}

.hero-pro-slide.is-active .hero-pro-copy {
  animation: hero-pro-in-copy 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-pro-slide.is-active .hero-pro-visual {
  animation: hero-pro-in-visual 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-pro-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-pro-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.95rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.28;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.18);
}

.hero-pro-tagline {
  margin: 0 auto;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  font-weight: 400;
  line-height: 1.65;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.94);
}

.hero-pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.hero-pro-visual {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

.hero-pro-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(18px, 3vw, 28px);
  box-shadow:
    0 32px 64px rgba(0, 20, 60, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* ----- Hero device mocks (بدون صور خارجية) ----- */
.hero-device {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border-radius: clamp(18px, 3vw, 26px);
  padding: clamp(0.65rem, 2vw, 0.85rem);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow:
    0 32px 64px rgba(0, 20, 60, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-device-frame {
  background: linear-gradient(180deg, #0f2744 0%, #0a1929 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-device-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.hero-device-dot:nth-child(1) {
  background: #f87171;
}
.hero-device-dot:nth-child(2) {
  background: #fbbf24;
}
.hero-device-dot:nth-child(3) {
  background: #34d399;
}

.hero-device-title {
  margin-inline-start: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-device-body {
  padding: clamp(1rem, 3vw, 1.35rem);
  min-height: 220px;
}

.hero-pos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-pos-key {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(72, 202, 228, 0.35) 0%, rgba(11, 98, 201, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-pos-key--wide {
  grid-column: span 2;
  aspect-ratio: auto;
  min-height: 44px;
}

.hero-pos-bar {
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.hero-pos-bar > span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--hero-teal), var(--hero-cyan));
}

.hero-dash-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-dash-card {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex: 1;
  height: 72px;
}

.hero-dash-bars span {
  flex: 1;
  align-self: flex-end;
  min-width: 6px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--hero-cyan), var(--hero-blue));
  opacity: 0.88;
}
.hero-dash-bars span:nth-child(1) {
  height: 38%;
}
.hero-dash-bars span:nth-child(2) {
  height: 55%;
}
.hero-dash-bars span:nth-child(3) {
  height: 92%;
}
.hero-dash-bars span:nth-child(4) {
  height: 68%;
}
.hero-dash-bars span:nth-child(5) {
  height: 48%;
}

.hero-dash-kpi {
  min-width: 88px;
  text-align: start;
}
.hero-dash-kpi strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.hero-dash-kpi small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* ----- Expertise / tech strip ----- */
.section-expertise {
  background:
    radial-gradient(720px 320px at 0% 100%, rgba(167, 139, 250, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  border-block: 1px solid var(--border);
}

.expertise-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.expertise-head {
  text-align: center;
  margin-bottom: 1.35rem;
}

.expertise-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.8vw, 1.72rem);
  font-weight: 800;
  color: var(--navy);
}

.expertise-head p {
  margin: 0 auto;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.65rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-mid);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.tech-pill .bi {
  color: var(--cta-blue-dark);
  font-size: 1rem;
}

.hero-pro-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 30, 80, 0.22);
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-pro-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-pro-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-pro-arrow--prev {
  inset-inline-start: 0;
}

.hero-pro-arrow--next {
  inset-inline-end: 0;
}

.hero-pro-download {
  position: absolute;
  bottom: clamp(1rem, 3vw, 1.65rem);
  inset-inline-end: clamp(1rem, 4vw, 2rem);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.65rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cta-blue) 0%, var(--cta-blue-dark) 100%);
  box-shadow: 0 16px 42px rgba(19, 134, 238, 0.48);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.hero-pro-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(19, 134, 238, 0.55);
  text-decoration: none;
  color: #fff;
}

.hero-pro-download .bi {
  font-size: 1.1rem;
}

.hero-pro-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.hero-pro-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-pro-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .hero-pro-slider {
    padding-inline: 0.25rem;
  }

  .hero-pro-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .hero-pro-download {
    position: relative;
    inset: auto;
    margin-top: 1.25rem;
    align-self: center;
  }

  .hero-pro-frame {
    min-height: unset;
    padding-bottom: 2rem;
  }

  .hero-pro-bg {
    min-height: 480px;
    height: min(92vh, 720px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .cta-strip {
    animation: none;
    background-size: 100% 100%;
  }

  .site-header::after {
    animation: none;
  }

  .hero-pro-arch::before,
  .hero-floating-orb {
    animation: none;
  }

  .hero-pro-slide.is-active .hero-pro-copy,
  .hero-pro-slide.is-active .hero-pro-visual {
    animation: none;
  }

  .hero-pro-arrow,
  .hero-pro-download {
    transition: none;
  }

  .btn-primary::after {
    display: none;
  }
}

.lead {
  margin: 0 0 1.65rem;
  font-size: 1.08rem;
  opacity: 0.93;
  max-width: 46ch;
}

/* ----- Stats ----- */
.stats-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .stats-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat {
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stat-ico {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(11, 98, 201, 0.35));
}
.stat-num {
  display: block;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 800;
  color: var(--hero-blue-deep);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

/* ----- Sections ----- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
}

.section-alt {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(79, 70, 229, 0.07), transparent 52%),
    linear-gradient(180deg, #faf5ff 0%, #fdfcff 50%, #ffffff 100%);
  border-top: 1px solid rgba(233, 213, 255, 0.75);
  border-bottom: 1px solid rgba(233, 213, 255, 0.75);
}

.section-titled .section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--navy);
  font-weight: 800;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 0.55rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--hero-blue), var(--hero-teal));
}

.section .sub,
.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
  font-size: 1.03rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-top-color: rgba(11, 98, 201, 0.55);
}
.card-elevated {
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: var(--navy-mid);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.grid-services {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--cta-blue) 0%, var(--hero-teal) 100%);
  box-shadow: 0 10px 26px rgba(11, 98, 201, 0.28);
}
.service-icon--1::after {
  content: "01";
}
.service-icon--2::after {
  content: "02";
}
.service-icon--3::after {
  content: "03";
}
.service-icon--4::after {
  content: "04";
}
.service-icon--5::after {
  content: "05";
}
.service-icon--6::after {
  content: "06";
}
.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.product-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ----- Process ----- */
.process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.process-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cta-blue), var(--hero-teal));
  color: #fff;
}

.process-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ----- FAQ ----- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-mid);
  padding: 1rem 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  float: left;
  font-weight: 800;
  color: var(--cta-blue-dark);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1rem;
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.96rem;
  border-top: 1px solid var(--border);
}

/* ----- Contact ----- */
.section-contact .contact-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--cta-blue-dark);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.contact-link {
  font-weight: 800;
  font-size: 1.05rem;
  word-break: break-word;
}

.muted-small {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-card-highlight {
  border-color: rgba(11, 98, 201, 0.35);
  background: linear-gradient(180deg, #fff 0%, rgba(236, 249, 255, 0.92) 100%);
}

/* ----- Download ----- */
.download-panel {
  max-width: 820px;
  margin: 0 auto;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(11, 98, 201, 0.1), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(11, 98, 201, 0.35);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow:
    0 16px 48px rgba(15, 39, 68, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.download-panel h2 {
  margin-top: 0;
  color: var(--navy);
}

.download-intro {
  margin: 0 auto 1rem;
  text-align: center;
  max-width: 52ch;
}

.download-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-panel .file-hint {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
}

.badge {
  display: inline-block;
  background: #ecfccb;
  color: #365314;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.requirements {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  text-align: right;
}
.requirements h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--navy-mid);
}
.requirements ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.requirements li {
  padding: 0.35rem 0;
  padding-right: 1.25rem;
  position: relative;
}
.requirements li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--cta-blue-dark);
  font-weight: bold;
}

/* ----- Footer ----- */
.site-footer {
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(167, 139, 250, 0.12), transparent 55%),
    linear-gradient(180deg, #0f0720 0%, var(--navy) 45%, #020617 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.75rem 1.25rem 1.25rem;
  margin-top: 0;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .footer-grid {
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.footer-logo {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}
.footer-tag {
  margin: 0.35rem 0 0;
  opacity: 0.82;
  line-height: 1.55;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-accent);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.45rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--hero-cyan);
  text-decoration: none;
}

.footer-legal {
  margin: 0;
  opacity: 0.75;
  line-height: 1.6;
  font-size: 0.88rem;
}

.footer-bottom {
  max-width: 1160px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.88rem;
}
.footer-bottom a {
  color: #fde68a;
  font-weight: 700;
}
.footer-bottom a:hover {
  color: var(--hero-cyan);
  text-decoration: none;
}

/* ----- Wave above footer ----- */
.wave-divider {
  color: var(--hero-blue-deep);
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 40px;
}
@media (min-width: 768px) {
  .wave-divider svg {
    height: 52px;
  }
}

/* ----- Inner pages ----- */
.page-hero {
  background: linear-gradient(155deg, var(--hero-blue-deep) 0%, var(--hero-blue) 48%, var(--hero-teal) 100%);
  color: #fff;
  padding: 2.25rem 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.page-breadcrumb {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  opacity: 0.88;
}

.page-breadcrumb a {
  color: #fde68a;
  font-weight: 600;
}

.page-breadcrumb a:hover {
  color: var(--orange);
  text-decoration: none;
}

.page-breadcrumb span {
  opacity: 0.65;
  margin: 0 0.35rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.3;
}

.page-hero-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 1.05rem;
  opacity: 0.91;
  line-height: 1.65;
}

.page-main {
  min-height: 42vh;
}

/* ----- Home teaser grid ----- */
.teaser-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .teaser-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.teaser-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.45rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border-top: 3px solid rgba(11, 98, 201, 0.35);
}

.teaser-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-top-color: var(--cta-blue);
  text-decoration: none;
}

.card--motion {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.contact-card.card--motion:hover,
.contact-form-panel.card--motion:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(49, 46, 129, 0.12);
}

.teaser-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: var(--navy);
}

.teaser-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.teaser-more {
  margin-top: 1rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--cta-blue-dark);
}

.cta-strip {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--hero-blue-deep) 35%,
    #5b21b6 72%,
    var(--hero-teal) 115%
  );
  background-size: 150% 150%;
  animation: tx-mesh-pan 18s ease-in-out infinite alternate;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cta-strip p {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ----- Icons & motion accents (Bootstrap Icons + agency polish) ----- */
.pill-ico {
  margin-inline-end: 0.35rem;
  vertical-align: -0.12em;
  opacity: 0.95;
}

.btn-ico {
  font-size: 1.05em;
  opacity: 0.95;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding-right: 0;
}

.hero-bullets li::before {
  display: none;
}

.hero-li-ico {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--hero-teal);
  font-size: 1rem;
}

.stat-bi-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.5rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 98, 201, 0.12), rgba(0, 168, 197, 0.14));
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: var(--hero-blue-deep);
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(8, 37, 68, 0.07);
}

.section-head-centered {
  text-align: center;
}

.section-head-centered h2::after {
  margin-right: auto;
  margin-left: auto;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cta-blue-dark);
  margin-bottom: 0.5rem;
}

.section-lead-center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.teaser-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--cta-blue) 0%, var(--hero-teal) 100%);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 8px 22px rgba(11, 98, 201, 0.28);
}

.cta-strip-ico {
  font-size: 1.35rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-li-ico {
  font-size: 0.85rem;
  opacity: 0.85;
}

.svc-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 0.95rem;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--cta-blue), var(--hero-teal));
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(11, 98, 201, 0.26);
}

.svc-icon-ring--soft {
  background: linear-gradient(145deg, var(--hero-blue-deep), var(--navy-soft));
  box-shadow: 0 6px 18px rgba(8, 37, 68, 0.14);
}

.page-title-ico {
  margin-inline-end: 0.45rem;
  vertical-align: -0.08em;
  opacity: 0.92;
  font-size: 0.92em;
}

.page-hero h1 {
  display: block;
  line-height: 1.35;
}

.page-hero h1 .page-title-ico {
  margin-inline-end: 0.4rem;
}

.faq-sum-ico {
  margin-inline-end: 0.45rem;
  vertical-align: -0.1em;
  color: var(--cta-blue-dark);
}

.faq-body {
  margin: 0 0 1rem;
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.96rem;
  border-top: 1px solid var(--border);
}

.contact-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  color: var(--navy-mid);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-card h2 .bi {
  color: var(--cta-blue-dark);
}

.process-step h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.process-step h3 .bi {
  color: var(--cta-blue-dark);
  font-size: 1rem;
}
