﻿:root {
  color-scheme: dark;
  font-family: "Space Grotesk", system-ui, sans-serif;
  --glass: rgba(17, 20, 28, 0.65);
  --border: rgba(255, 255, 255, 0.25);
  --accent-hue: 210;
  --accent: hsl(var(--accent-hue), 90%, 60%);
  --page-bg: radial-gradient(circle at top right, rgba(53, 90, 160, 0.637), transparent 65%),
    radial-gradient(circle at bottom, rgba(255, 255, 255, 0.12), transparent 40%),
    #030308;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--page-bg);
  color: #f4f6fb;
  line-height: 1.6;
}
body::-webkit-scrollbar {
  width: 0;
  background: transparent;
}
.advanced-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: rgba(3, 5, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 1rem;
  z-index: 20;
  backdrop-filter: blur(25px);
  width: min(1100px, 100%);
  margin: 1rem auto;
  border-radius: 1.25rem;
}

.glass-bar {
  margin: 0 auto;
  max-width: 1100px;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.advanced-header__nav a,
.advanced-header__nav a:visited {
  color: #f4f6fb;
}

.advanced-header__brand {
  font-size: 0.9rem;
  letter-spacing: 0.6rem;
  font-weight: 600;
}

.advanced-header__nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.advanced-header__nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.advanced-header__nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.advanced-header__login {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.35rem 1rem;
}

.page-shell {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 4rem;
  overflow-y: auto;
  scrollbar-width: none;
  transform-origin: top center;
}

body {
  margin: 0;
  overflow-x: hidden;
}

.page-shell::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.hero {
  padding: clamp(2rem, 3vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.hero--centered {
  justify-items: center;
  min-height: 70vh;
}

.hero--definition {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  justify-content: center;
  justify-items: center;
}

.hero-card-switcher {
  width: min(1100px, 94vw);
  margin: 0 auto;
  justify-self: center;
  display: flex;
  justify-content: center;
}

.hero-meta {
  min-width: 240px;
}

.hero-pulse {
  position: absolute;
  top: 35%;
  inset: 30% auto auto 20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68,212,255,0.4), transparent 70%);
  filter: blur(0);
  animation: pulse 6s ease-in-out infinite;
  opacity: 0.7;
  z-index: 0;
}


.image-marquee-section {
  padding: 1rem 0 3rem;
  width: 100%;
}

.image-marquee {
  width: 100%;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.9);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  position: relative;
}

.image-marquee-track {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
  animation: marquee-slide 26s linear infinite;
  align-items: center;
}

.image-marquee::before,
.image-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  pointer-events: none;
  z-index: 2;
}

.image-marquee::before {
  left: 0;
  background: radial-gradient(circle at 15% 50%, rgba(3, 5, 10, 0.4), rgba(3, 5, 10, 0) 65%);
  filter: blur(140px);
}

.image-marquee::after {
  right: 0;
  background: radial-gradient(circle at 85% 50%, rgba(3, 5, 10, 0.4), rgba(3, 5, 10, 0) 65%);
  filter: blur(140px);
}

.image-marquee-card {
  flex: 0 0 150px;
  height: 120px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 5, 12, 0.5);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-marquee-card:hover {
  transform: scale(1.1);
  box-shadow: 0 30px 45px rgba(0, 0, 0, 0.55);
}

@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-card-switcher__view h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-align: left;
}

.hero-card-switcher__view .subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.logo-loop-root {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.callouts-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.callout {
  padding: 0.65rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.35);
  min-width: 160px;
  animation: callout-breathe 4s ease-in-out infinite alternate;
}

.callout strong {
  font-size: 1.4rem;
  display: block;
  margin-top: 0.5rem;
}

.callout p {
  font-size: 0.8rem;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-card-map {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1400px;
}

.hero-card-map__card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  transform: rotateX(28deg);
  transform-origin: bottom;
  background: rgba(3, 5, 10, 0);
}

.hero-card-map__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-map__pin {
  position: absolute;
  width: 42px;
  height: 42px;
  background: url('../static/canada/icons8-location-50.png') center/contain no-repeat;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.hero-card-map__pin::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.hero-card-switcher__card {
  width: min(1100px, 92vw);
  min-height: 1020px;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(0, 1, 2, 0);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  gap: 1.5rem;
}

.hero-card-switcher__view {
  display: none;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.3s ease;
  flex: 1;
}

.hero-card-switcher__view.is-active {
  display: flex;
}

.hero-card-switcher__copy {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 0;
}

.hero-card-switcher__detail {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-card-switcher__actions {
  display: flex;
  gap: 1rem;
}

.hero-card-switcher__button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hero-card-switcher__button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-card-switcher__button.is-active {
  background: linear-gradient(120deg, var(--accent), #44d4ff);
  color: #05060d;
  border-color: transparent;
}

.hero-card-switcher__view .hero-slogan__text {
  transform: none;
  letter-spacing: 0.5rem;
}

.hero-slogan__text {
  display: inline-flex;
  justify-content: center;
  gap: 0.65rem;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: 0.45rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-175px);
}

.hero-slogan__word--focus {
  position: relative;
  display: inline-flex;
  gap: 0.2rem;
  filter: blur(6px);
  transition: filter 0.3s ease;
  cursor: pointer;
}

.hero-slogan__word--focus:hover,
.hero-slogan__word--focus.is-active {
  filter: blur(0);
}

.hero-slogan__word-text {
  display: block;
}

.hero-slogan__blur {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.3);
  filter: blur(8px);
  transition: filter 0.4s ease, opacity 0.4s ease;
  opacity: 0.9;
}

.hero-slogan__word--focus.is-active .hero-slogan__blur {
  opacity: 0;
  filter: blur(0);
}

.work-scroller-section {
  top: 0;
  z-index: 2;
  width: max-content;
  max-width: 80%;
  margin: 0;
  padding: 0 1rem;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-scroller {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem;
  background: rgba(7, 11, 20, 0.75);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  min-height: 100%;
  height: 100%;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
}

.work-scroller-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
  gap: 0;
}

.work-scroller-card {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  background-color: rgba(3, 5, 10, 0.35);
}

.work-scroller-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 8, 0) 0%, rgba(3, 5, 8, 0.65) 100%);
}

.work-scroller-hint {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.hero-letter:hover {
  filter: blur(0);
  transform: translateY(-4px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.65));
}

.brand-mark {
  font-size: 1.25rem;
  letter-spacing: 0.4rem;
  font-weight: 700;
}

.brand-addon {
  font-size: 0.75rem;
  color: rgba(244, 246, 251, 0.7);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.hero-content {
  max-width: 720px;
  margin-top: 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.2;
  margin: 0.75rem 0;
}

.subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #44d4ff);
  border-color: transparent;
  color: #05060d;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border);
  color: #f4f6fb;
}

.btn.ghost {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.hero-meta {
  position: absolute;
  top: 3rem;
  right: clamp(1rem, 6vw, 4rem);
  width: min(320px, 80vw);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-meta p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-meta ul {
  margin: 1rem 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.meta-foot {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.floating-orb {
  position: absolute;
  width: 250px;
  height: 250px;
  right: -80px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), rgba(68, 212, 255, 0.4) 60%, transparent 90%);
  filter: blur(0px);
  animation: float 10s ease-in-out infinite;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.section {
  padding: clamp(2rem, 4vw, 4rem);
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.glass-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.glass-card {
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 45px rgba(5, 6, 13, 0.7);
}

.feature-image .image-card {
  padding: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0);
  max-width: 1100px;
  transform: rotateX(30deg);
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
}

.feature-image .image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.feature-image {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 0;
  perspective: 1400px;
  margin-top: -750px;
  margin-bottom: -6rem;
}

.map-layer {
  position: relative;
  width: 100%;
  z-index: 0;
}

.map-pin {
  position: absolute;
  width: 46px;
  height: 46px;
  background: url('../static/canada/icons8-location-50.png') center/contain no-repeat;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: none;
  z-index: 10;
}

.map-pin::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.116);
  box-shadow: 0 0 25px rgb(0, 0, 0);
  z-index: -1;
}

.map-pin:hover::after {
  opacity: 1;
}

.feature-highlight {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-bottom: 0;
}

@media (max-width: 1100px) {
  .feature-image {
    margin-top: -500px;
    margin-bottom: -3rem;
  }

  .feature-image .map-layer {
    transform: scale(0.7);
  }

  .map-pin {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .feature-image {
    margin-top: -350px;
    margin-bottom: -2rem;
  }

  .feature-image .map-layer {
    transform: scale(0.55);
  }

  .map-pin {
    width: 26px;
    height: 26px;
  }
}

.feature-highlight .small-card {
  width: min(320px, 90%);
  max-width: 350px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  background: rgba(255, 255, 255, 0);
  border: 1px solid rgba(255, 255, 255, 0);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0);
}

.feature-highlight .small-card img {
  width: 56px;
  height: 56px;
  filter: invert(1);
}

#clients {
  margin-top: 0;
  padding-top: 1rem;
}


.partners-section {
  padding: 0;
}

.partners-shell {
  padding: 2.5rem;
  text-align: center;
  background: transparent;
}

.partners-header {
  margin-bottom: 1.25rem;
}

.partners-header h3 {
  margin-top: 0.35rem;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.partners-marquee {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgb(28, 35, 49, 0.39);
  border: 1px solid rgba(255, 255, 255, 0.039);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.partners-marquee .partners-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: track-slide 24s linear infinite;
  will-change: transform;
  flex-wrap: nowrap;
  mask-image: linear-gradient(90deg, transparent, #0b111e 20%, #0b111e 80%, transparent);
  mask-mode: alpha;
}

.partners-marquee .partners-track .logo-card {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0);
}

.trust-marquee {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgb(28, 35, 49, 0.39);
  border: 1px solid rgba(255, 255, 255, 0.039);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.trust-marquee .trust-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: track-slide 24s linear infinite;
  will-change: transform;
  flex-direction: row;
  flex-wrap: nowrap;
  mask-image: linear-gradient(90deg, transparent, #0b111e 20%, #0b111e 80%, transparent);
  mask-mode: alpha;
}

.partners-marquee::before,
.partners-marquee::after,
.trust-marquee::before,
.trust-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 8vw, 120px);
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg, rgba(3, 5, 12, 0.95), rgba(3, 5, 12, 0));
  filter: blur(6px);
}

.partners-marquee::after,
.trust-marquee::after {
  right: 0;
  transform: rotate(180deg);
}

.partners-marquee::before,
.trust-marquee::before {
  left: 0;
}

.logo-card {
  flex: 0 0 clamp(80px, 9vw, 96px);
  width: clamp(80px, 9vw, 96px);
  height: clamp(80px, 9vw, 96px);
  border-radius: 1rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45);
}

.logo-link {
  display: inline-flex;
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(0.3) brightness(1.1);
}

.partners-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.trust-section {
  padding: 0;
}

.trust-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  padding: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: track-slide 24s linear infinite;
  will-change: transform;
  padding: 0;
}

.trust-shell h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.trust-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

@keyframes track-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--track-shift, -50%));
  }
}

@keyframes callout-breathe {
  0% {
    transform: translateY(0);
    opacity: 0.85;
  }
  100% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.kpi-card strong {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.kpi-card span {
  color: rgba(255, 255, 255, 0.75);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.section p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
}

.card-grid,
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.services-grid {
  width: 100%;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(260px, 1fr));
  grid-auto-rows: minmax(320px, auto);
  gap: 1.5rem;
  justify-content: center;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  justify-items: stretch;
  align-items: stretch;
}

.service-card {
  padding: 2.25rem 2rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.service-card h3 {
  font-size: 1.35rem;
  margin: 0;
  color: #fff;
}

.service-card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.65);
}

.service-card:hover::before {
  opacity: 0.2;
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: border-color 0.2s ease;
    transform: none;
  }
  .service-card:hover {
    transform: none;
  }
}

.card-swap-section {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 3rem 1rem 4rem;
  gap: 1.5rem;
  transform: translateX(-250px);
}

.card-swap-intro {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 720px;
}

.card-swap-root {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

.sales-section {
  width: 100%;
  padding: 0 1rem 4rem;
  scroll-margin-top: 140px;
}
.sales-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  min-height: 280px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 7, 15, 0.75);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}
.sales-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}
.sales-content {
  position: relative;
  z-index: 1;
  color: #f5f8ff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sales-visual {
  position: relative;
  z-index: 1;
  min-height: 220px;
  border-radius: 1.5rem;
  background: url('../static/work/sale.jpg') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.45);
}

.sales-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.sales-visual-stack .sales-visual {
  width: 100%;
  min-height: 320px;
}

.sales-cta {
  width: 100%;
  max-width: 320px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.about-section {
  width: 100%;
  padding: 0 1rem 4rem;
  scroll-margin-top: 140px;
}

.about-shell {
  width: 200%;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 9, 16, 0.85);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: translateX(-500px);
}

.about-shell--image {
  background-image: linear-gradient(145deg, rgba(3, 5, 10, 0.85) 0%, rgba(3, 5, 10, 0.45) 35%), url('../static/work/banner.jpg');
  background-size: cover;
  background-position: center;
  padding: 4rem;
}

.about-content {
  color: #f8fbff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-text-card {
  background: rgba(0, 0, 0, 0.85); /* darker */
  padding: 2.5rem;
  border-radius: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.card {
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
}

.automation-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 clamp(1rem, 4vw, 4rem);
}

.automation-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  padding-left: 0;
}

.automation-list li::before {
  content: "○";
  margin-right: 0.5rem;
  color: var(--accent);
}

.insights-section {
  padding-top: 2rem;
}

.insights-shell {
  padding: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.insights-header h2 {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.insight {
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.insight h3 {
  margin-bottom: 0.4rem;
}

.insight.active {
  border-color: var(--accent);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.insight-detail {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 6, 14, 0.85);
}

.insight-phase {
  font-size: 0.85rem;
  letter-spacing: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.testimonials-section {
  padding-top: 2rem;
}

.testimonials-shell {
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-header h2 {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.testimonial-stack {
  position: relative;
  margin-top: 1.5rem;
  min-height: 10rem;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 0.5rem;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(-4px);
}

.testimonial p {
  font-size: 1.1rem;
  line-height: 1.4;
}

.testimonial span {
  display: block;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.tip-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.tip-card button {
  margin-top: 1rem;
}

.tip-hint {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.tip-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.tip-group {
  border-radius: 1.1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tip-group h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.tip-group ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.tip-group li::before {
  content: "•";
  margin-right: 0.35rem;
  color: var(--accent);
}

.cta-section {
  padding-top: 2rem;
}

.cta-shell {
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: center;
}

.cta-form {
  display: grid;
  gap: 1rem;
}

.cta-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
}

.cta-form input,
.cta-form select {
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  color: #fff;
}

.cta-form textarea {
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem;
  color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  resize: vertical;
  min-height: 180px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.cta-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(67, 212, 255, 0.4);
}

#cta-form.highlight {
  box-shadow: 0 0 0 3px rgba(67, 212, 255, 0.6);
  transition: box-shadow 0.4s ease;
}

.cta-form input:focus,
.cta-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.faq-section {
  padding-top: 2rem;
}

.faq-shell {
  padding: 2.5rem;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.faq-header h2 {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 3vw, 2.4rem);
}

.faq-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.2rem;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.faq-item.active .faq-answer {
  padding: 0 1.25rem 1rem;
  max-height: 220px;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  margin-left: 1rem;
  position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 2px;
  background: #fff;
}

.faq-item.active .faq-toggle::before {
  transform: rotate(90deg);
}

.faq-item.active .faq-toggle::after {
  transform: rotate(0deg);
}

.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Horizontal service track layout to mimic the referenced project */
.services-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  max-height: min(70vh, 600px);
  overflow-y: auto;
  scroll-snap-type: y proximity;
  -webkit-overflow-scrolling: touch;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.services-track::-webkit-scrollbar {
  width: 6px;
}

.services-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.services-track .svc-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  border-radius: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 15px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.services-track .svc-img {
  width: 100%;
  height: 140px;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
}

.services-track .svc-label {
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .services-track {
    gap: 0.75rem;
    padding: 0.75rem;
    max-height: min(60vh, 500px);
  }

  .services-track .svc-card {
    width: 180px;
    padding: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-meta {
    position: static;
    margin-top: 2rem;
  }

  .brand {
    flex-wrap: wrap;
  }
  .advanced-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .advanced-header__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
