/* ============================================
   ApexTribe Design System
   Based on Linear/Modern dark aesthetic
   ============================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Colors - Deep Space with Ambient Light */
  --bg-deep: #020203;
  --bg-base: #050506;
  --bg-elevated: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --foreground: #EDEDEF;
  --foreground-muted: #8A8F98;
  --foreground-subtle: rgba(255, 255, 255, 0.60);
  --accent: #5E6AD2;
  --accent-bright: #6872D9;
  --accent-glow: rgba(94, 106, 210, 0.3);
  --border-default: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.10);
  --border-accent: rgba(94, 106, 210, 0.30);

  /* Typography */
  --font-sans: 'Inter', 'Geist Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1280px;
  --container-padding: clamp(1.5rem, 4vw, 3rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* ---------- Base Styles ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-snap-type: y proximity;
}

/* Full-page snap sections */
.hero,
.section,
.cta {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
}
@media (max-width: 768px) {
  html { scroll-snap-type: none; }
}

body {
  font-family: var(--font-sans);
  background: #000000;
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- Galaxy WebGL Background (site-wide) ---------- */
.galaxy-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #000000;
}

.galaxy-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ---------- Hyperspeed WebGL Background (home hero) ---------- */
.hero__lights {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000000;
}

.hero__lights canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ---------- Layered Background System ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at top, #0a0a0f 0%, #050506 50%, #020203 100%);
}

.bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
}

.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
}

/* Animated Ambient Blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  animation: float 10s ease-in-out infinite;
}

.blob--primary {
  width: 900px;
  height: 1400px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  opacity: 0.08;
  animation-duration: 10s;
}

.blob--secondary {
  width: 600px;
  height: 800px;
  top: 30%;
  left: -100px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  opacity: 0.05;
  animation-duration: 8s;
  animation-delay: -3s;
}

.blob--tertiary {
  width: 500px;
  height: 700px;
  bottom: 10%;
  right: -100px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  opacity: 0.04;
  animation-duration: 12s;
  animation-delay: -6s;
}

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

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------- Typography ---------- */
.gradient-text {
  background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.70));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated multi-color gradient (hero title) */
.gradient-text--anim {
  background: linear-gradient(90deg, #f26604, #1c07f9, #ffffff, #1c07f9, #f26604);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 8s ease-in-out infinite alternate;
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-text--anim { animation: none; }
}

.gradient-text--accent {
  background: linear-gradient(90deg, var(--accent), #818cf8, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.text-muted {
  color: var(--foreground-muted);
}

.text-subtle {
  color: var(--foreground-subtle);
}

.label {
  display: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  display: none;
}

.nav__logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  color: var(--foreground-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--foreground);
}


.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 0;
}

.lang-toggle__btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--foreground-muted);
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.lang-toggle__btn--active {
  background: #ffffff;
  color: #0a0a0c;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav__hamburger--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 65px;
  z-index: 99;
  background: rgba(5, 5, 6, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2rem var(--container-padding);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu__link {
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-default);
  transition: color var(--duration-fast) var(--ease-out);
}

.mobile-menu__link:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .mobile-menu { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn--primary {
  background: #ffffff;
  color: #0a0a0c;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.btn--primary:hover {
  background: #f0f0f2;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--foreground-muted);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--foreground);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__overlay {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__label {
  margin-bottom: 1.5rem;
}

.hero__title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.85rem, 4.6vw, 3.6rem);
  line-height: 1.15;
}

.hero__title span {
  white-space: nowrap;
}

.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--foreground-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section__header {
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.section__title {
  margin-top: 0.75rem;
}

.section__desc {
  color: var(--foreground-muted);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.7;
}

.section__divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-default), transparent);
  margin: 0;
  border: none;
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(to bottom, rgba(20, 20, 28, 0.55), rgba(12, 12, 18, 0.4));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(94, 106, 210, 0.05);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.card__desc {
  color: var(--foreground-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Card spotlight effect */
.card--spotlight {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.card--spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x) var(--mouse-y),
    rgba(94, 106, 210, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  pointer-events: none;
}

.card--spotlight:hover::before {
  opacity: 1;
}

/* ---------- Grid Layouts ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.bento__item--span-2 { grid-column: span 2; }
.bento__item--span-3 { grid-column: span 3; }
.bento__item--span-4 { grid-column: span 4; }
.bento__item--span-6 { grid-column: span 6; }
.bento__item--row-2 { grid-row: span 2; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--span-2,
  .bento__item--span-3,
  .bento__item--span-4,
  .bento__item--span-6 { grid-column: span 1; }
  .bento__item--span-6 { grid-column: span 2; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento__item--span-2,
  .bento__item--span-3,
  .bento__item--span-4,
  .bento__item--span-6 { grid-column: span 1; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
}

.stat__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  color: var(--foreground-muted);
  font-size: 0.9375rem;
}

/* ---------- CTA Section ---------- */
.cta {
  text-align: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.08;
  pointer-events: none;
}

.cta__title {
  margin-bottom: 1rem;
}

.cta__desc {
  color: var(--foreground-muted);
  font-size: clamp(0.875rem, 1.15vw, 1.125rem);
  max-width: none;
  white-space: nowrap;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .cta__desc { white-space: normal; font-size: 0.9375rem; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-default);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__copy {
  color: var(--foreground-muted);
  font-size: 0.875rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__link {
  color: var(--foreground-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--foreground);
}

/* Multi-column footer */
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-default);
  align-items: start;
}

.footer__brand {
  align-self: center;
}

.footer__brand-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__brand-text {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer__col-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.1rem;
}

.footer__col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 860px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding-top: calc(80px + var(--section-padding));
  padding-bottom: calc(var(--section-padding) / 2);
  position: relative;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(94, 106, 210, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__content h1 {
  font-size: clamp(1.75rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .page-hero__content h1 { white-space: normal; }
}

/* ---------- Service Detail ---------- */
.service-detail {
  padding: var(--section-padding) 0;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.service-detail__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-detail__feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.service-detail__feature-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.service-detail__feature-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: linear-gradient(to bottom, rgba(20, 20, 28, 0.55), rgba(12, 12, 18, 0.4));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 0 60px rgba(94, 106, 210, 0.1);
}

.contact-card__icon {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

.contact-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card__desc {
  color: var(--foreground-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-card__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
}

.contact-card__link:hover {
  color: var(--accent-bright);
}

/* ---------- Intro Splash ---------- */
/* Light background so the navy + orange logo keeps its true colors. */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050506;
  animation: splash-out 0.7s 2.45s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* Full ApexTribe wordmark (original art) — inverted white on dark bg */
.splash__full {
  position: absolute;
  width: clamp(240px, 38vw, 460px);
  height: auto;
  filter: brightness(0) invert(1);
  animation: splash-full 2.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* AT mark (original art, real navy + orange) — the design core.
   Sits on a soft light disc so the navy reads on the dark splash. */
.splash__at {
  width: clamp(150px, 19vw, 230px);
  height: auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #f1f2f6 70%, rgba(241,242,246,0) 100%);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.12);
  animation: splash-at 2.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* AT mark pops in first with a soft bounce, holds, then fades as it scales up */
@keyframes splash-at {
  0%   { opacity: 0; transform: scale(0.5); }
  16%  { opacity: 1; transform: scale(1.12); }
  28%  { opacity: 1; transform: scale(1); }
  44%  { opacity: 1; transform: scale(1); }
  60%  { opacity: 0; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* Full ApexTribe wordmark expands in as the AT mark dissolves */
@keyframes splash-full {
  0%, 48% { opacity: 0; transform: scale(0.92); filter: brightness(0) invert(1) blur(8px); }
  64%     { opacity: 1; transform: scale(1); filter: brightness(0) invert(1) blur(0); }
  100%    { opacity: 1; transform: scale(1); filter: brightness(0) invert(1) blur(0); }
}

@keyframes splash-out {
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .splash { animation: splash-out 0.3s 0.2s forwards; }
  .splash__at { display: none; }
  .splash__full { animation: none; }
}

/* ---------- Cursor Glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(124, 138, 255, 0.35) 0%, rgba(129, 140, 248, 0.18) 30%, transparent 65%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
  mix-blend-mode: screen;
}
.cursor-glow--visible { opacity: 1; }

@media (hover: none) {
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* ---------- Scroll Animations ---------- */
/* Refined expo-out easing for premium settle */
:root { --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1); }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.8s var(--reveal-ease),
              transform 0.8s var(--reveal-ease),
              filter 0.8s var(--reveal-ease);
  will-change: opacity, transform, filter;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered children: rise + slight scale, fade blur away */
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.7s var(--reveal-ease),
              transform 0.7s var(--reveal-ease),
              filter 0.7s var(--reveal-ease);
  will-change: opacity, transform, filter;
}

.reveal--stagger.reveal--visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal--stagger.reveal--visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal--stagger.reveal--visible > *:nth-child(2) { transition-delay: 0.13s; }
.reveal--stagger.reveal--visible > *:nth-child(3) { transition-delay: 0.21s; }
.reveal--stagger.reveal--visible > *:nth-child(4) { transition-delay: 0.29s; }
.reveal--stagger.reveal--visible > *:nth-child(5) { transition-delay: 0.37s; }
.reveal--stagger.reveal--visible > *:nth-child(6) { transition-delay: 0.45s; }
.reveal--stagger.reveal--visible > *:nth-child(7) { transition-delay: 0.53s; }
.reveal--stagger.reveal--visible > *:nth-child(8) { transition-delay: 0.61s; }
.reveal--stagger.reveal--visible > *:nth-child(9) { transition-delay: 0.69s; }
.reveal--stagger.reveal--visible > *:nth-child(10) { transition-delay: 0.77s; }
.reveal--stagger.reveal--visible > *:nth-child(11) { transition-delay: 0.85s; }
.reveal--stagger.reveal--visible > *:nth-child(12) { transition-delay: 0.93s; }

/* Section headers: deeper rise for impact */
.section__header.reveal { transform: translateY(50px); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--stagger > * {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---------- Live Spend ---------- */
.spend-panel {
  max-width: 760px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Tabs */
.spend-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(20, 20, 28, 0.55);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.spend-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--foreground-muted);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.spend-tab svg { width: 18px; height: 18px; }

.spend-tab:hover { color: var(--foreground); }

.spend-tab--active {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  box-shadow: 0 4px 16px rgba(94, 106, 210, 0.35);
}

.spend-desc {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  font-size: clamp(0.8125rem, 1.3vw, 1.0625rem);
}
@media (max-width: 720px) {
  .spend-desc { white-space: normal; font-size: 0.9375rem; }
}

/* Display — transparent, no panel background */
.spend-display {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
}

.spend-display__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-full);
  background: rgba(248, 113, 113, 0.08);
  margin-bottom: 1.5rem;
}

.spend-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f87171;
  animation: spend-pulse 1.6s ease-in-out infinite;
}
@keyframes spend-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5); }
  50% { opacity: 0.6; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(248, 113, 113, 0); }
}

.spend-display__num {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

.spend-display__foot {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--foreground-muted);
}

@media (max-width: 560px) {
  .spend-tabs { flex-wrap: wrap; justify-content: center; }
  .spend-tab { padding: 0.55rem 1rem; font-size: 0.875rem; }
}

/* ---------- Platforms ---------- */
.platforms-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.platforms-intro__text {
  max-width: 720px;
}

.platforms-intro__actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.platform-card {
  background: linear-gradient(to bottom, rgba(20, 20, 28, 0.55), rgba(12, 12, 18, 0.4));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.platform-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.platform-card__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.platform-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
}

.platform-card__icon svg {
  width: 24px;
  height: 24px;
}

.platform-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.platform-card__desc {
  font-size: 0.9375rem;
  color: var(--foreground-muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .platform-cards { grid-template-columns: 1fr; }
  .platforms-intro { flex-direction: column; align-items: flex-start; }
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.process__step {
  position: relative;
  background: linear-gradient(to bottom, rgba(20, 20, 28, 0.55), rgba(12, 12, 18, 0.4));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.process__step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.process__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.process__desc {
  font-size: 0.9375rem;
  color: var(--foreground-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */
.tm-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem auto 0;
  padding: 0.5rem 1.25rem;
  background: rgba(20, 20, 28, 0.55);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.tm-rating svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.tm-rating__stars {
  color: #f5b301;
  letter-spacing: 1px;
}

.tm-desc {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
}

@media (max-width: 760px) {
  .tm-desc {
    white-space: normal;
    font-size: 0.9375rem;
  }
}

/* Testimonials carousel */
.tm-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.tm-viewport {
  overflow: hidden;
  flex: 1;
}

.tm-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tm-track > .tm-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}

.tm-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: rgba(20, 20, 28, 0.55);
  border: 1px solid var(--border-default);
  color: var(--foreground);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-fast) var(--ease-out);
}

.tm-nav:hover {
  background: rgba(94, 106, 210, 0.2);
  border-color: var(--border-accent);
}

.tm-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.tm-nav svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .tm-track > .tm-card { flex-basis: calc((100% - 1.5rem) / 2); }
}

@media (max-width: 600px) {
  .tm-track > .tm-card { flex-basis: 100%; }
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.tm-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, rgba(20, 20, 28, 0.55), rgba(12, 12, 18, 0.4));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.tm-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.tm-card__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.tm-card__avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.tm-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.tm-card__role {
  font-size: 0.8125rem;
  color: var(--foreground-muted);
  margin-top: 2px;
}

.tm-card__stars {
  color: #f5b301;
  letter-spacing: 2px;
  font-size: 0.9375rem;
  margin-bottom: 0.875rem;
}

.tm-card__quote {
  font-size: 0.9375rem;
  color: var(--foreground-muted);
  line-height: 1.8;
  flex-grow: 1;
}

@media (max-width: 860px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* ---------- Offices ---------- */
.offices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.office-card {
  position: relative;
  background: linear-gradient(to bottom, rgba(20, 20, 28, 0.55), rgba(12, 12, 18, 0.4));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.office-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.office-card__flag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--accent);
}

.office-card__flag svg {
  width: 20px;
  height: 20px;
}

.office-card__region {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.office-card__addr {
  font-size: 0.9375rem;
  color: var(--foreground-muted);
  line-height: 1.6;
}

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

@media (max-width: 520px) {
  .offices { grid-template-columns: 1fr; }
}

/* ---------- HiVA Article ---------- */
.article { max-width: 820px; }

.article__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.9;
  color: var(--foreground);
}

.compare {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: linear-gradient(to bottom, rgba(20, 20, 28, 0.55), rgba(12, 12, 18, 0.4));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare__table th,
.compare__table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  vertical-align: top;
}

.compare__table thead th {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.03);
}

.compare__table thead th:nth-child(2) { color: #818cf8; }

.compare__table tbody td {
  color: var(--foreground-muted);
}

.compare__table tbody td:first-child {
  color: var(--foreground);
  font-weight: 600;
  white-space: nowrap;
}

.compare__table tbody tr:last-child td { border-bottom: none; }

.tier__head { margin-bottom: 1rem; }

.tier__badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-default);
}

.tier--bronze .tier__badge { color: #cd9b6a; border-color: rgba(205, 155, 106, 0.4); background: rgba(205, 155, 106, 0.1); }
.tier--silver .tier__badge { color: #c7ccd6; border-color: rgba(199, 204, 214, 0.4); background: rgba(199, 204, 214, 0.1); }
.tier--gold .tier__badge { color: #e8c25a; border-color: rgba(232, 194, 90, 0.4); background: rgba(232, 194, 90, 0.1); }
.tier--platinum .tier__badge {
  color: #fff;
  border-color: rgba(94, 106, 210, 0.5);
  background: linear-gradient(135deg, rgba(94, 106, 210, 0.25), rgba(129, 140, 248, 0.25));
}

/* ---------- HiVA Proof ---------- */
.proof {
  max-width: 900px;
  margin: 2.5rem auto 0;
}

.proof__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.proof__cap {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--foreground-muted);
  text-align: center;
}

/* ---------- Product Price List ---------- */
.pricelist {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(20, 20, 28, 0.55), rgba(12, 12, 18, 0.4));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pricelist__head {
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-default);
}

.price-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-soft, rgba(255,255,255,0.05));
  transition: background var(--duration-fast) var(--ease-out);
}
.price-row:last-child { border-bottom: none; }
.price-row:hover { background: rgba(255, 255, 255, 0.03); }

.price-row--featured {
  border: 1px solid rgba(163, 209, 80, 0.5);
  border-radius: var(--radius-md);
  margin: 0.75rem;
}

.price-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1877F2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.price-row__icon svg { width: 22px; height: 22px; fill: #fff; }

.price-row__main { min-width: 0; }
.price-row__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.price-row__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #1a1a1a;
  background: #a3d150;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.price-row__desc {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}

.price-row__price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
}

.price-row__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}
.price-row__btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* description spans full row under the head line */
.price-row__main { grid-column: 2 / 3; }

@media (max-width: 680px) {
  .price-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon main"
      "price btn";
  }
  .price-row__icon { grid-area: icon; }
  .price-row__main { grid-area: main; grid-column: auto; }
  .price-row__price { grid-area: price; justify-self: start; }
  .price-row__btn { grid-area: btn; justify-self: end; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal--stagger > * { opacity: 1; transform: none; }
  .blob { animation: none; }
}
