/* CrossTeams motion + interface theme system. */

#top .ct-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.992);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 880ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--ct-delay, 0ms);
  will-change: opacity, transform;
}

#top .ct-reveal.ct-reveal-soft {
  transform: translate3d(0, 16px, 0) scale(0.996);
}

#top .ct-reveal.ct-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

#top .ct-parallax {
  transform: translate3d(0, var(--ct-parallax-y, 0px), 0);
  will-change: transform;
}

#top .ct-parallax-x {
  transform: translate3d(var(--ct-parallax-x, 0px), var(--ct-parallax-y, 0px), 0);
  will-change: transform;
}

#top .ct-float {
  animation: ctFloat 7s ease-in-out infinite;
}

#top .ct-float-alt {
  animation: ctFloatAlt 8.5s ease-in-out infinite;
}

@keyframes ctFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes ctFloatAlt {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(5px, -5px, 0); }
}

/* Brand proportions */
header img[src$="/brand/crossteams-logo-color.svg"],
header img[src$="/brand/crossteams-logo-white.svg"] {
  height: 34px !important;
  max-width: 214px !important;
}

#top footer img[src$="/brand/crossteams-logo-color.svg"],
#top footer img[src$="/brand/crossteams-logo-white.svg"] {
  height: 31px !important;
  max-width: 205px !important;
}

.ct-software-shell > aside img[src$="/brand/crossteams-logo-white.svg"],
.ct-software-shell > aside img[src$="/brand/crossteams-logo-color.svg"] {
  height: 30px !important;
  max-width: 190px !important;
}

/* Homepage integrations showcase */
#top .ct-integrations-section {
  padding: 32px 20px 112px;
}

#top .ct-integrations-panel {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(132, 102, 255, 0.14);
  background:
    radial-gradient(circle at 50% -10%, rgba(112, 72, 255, 0.2), transparent 42%),
    radial-gradient(circle at 12% 78%, rgba(0, 212, 255, 0.08), transparent 34%),
    #0b0e17;
  padding: 76px 0 34px;
  color: #f5f7ff;
  box-shadow: 0 34px 90px rgba(20, 18, 55, 0.14);
}

#top .ct-integrations-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

#top .ct-integrations-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}

#top .ct-integrations-kicker {
  color: #7ba5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#top .ct-integrations-copy h2 {
  margin: 18px auto 0;
  max-width: 790px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: -0.052em;
}

#top .ct-integrations-copy p {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(226, 231, 246, 0.46);
  font-size: 14px;
  line-height: 1.75;
}

#top .ct-integrations-marquee {
  position: relative;
  z-index: 2;
  margin-top: 54px;
  padding: 14px 0 22px;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

#top .ct-integration-row {
  overflow: hidden;
  padding: 8px 0;
}

#top .ct-integration-row + .ct-integration-row {
  margin-top: 4px;
}

#top .ct-integration-row-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: ctIntegrationMarquee 38s linear infinite;
  will-change: transform;
}

#top .ct-integration-row-reverse .ct-integration-row-track {
  animation-direction: reverse;
  animation-duration: 44s;
}

#top .ct-integrations-marquee:hover .ct-integration-row-track {
  animation-play-state: paused;
}

#top .ct-integration-group {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
}

#top .ct-integration-item {
  --ct-brand: #8ea5ff;
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--ct-brand) 14%, transparent), transparent 54%),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 34px rgba(0, 0, 0, 0.12);
  color: var(--ct-brand);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

#top .ct-integration-item:hover {
  z-index: 5;
  transform: translateY(-5px) scale(1.055);
  border-color: color-mix(in srgb, var(--ct-brand) 28%, transparent);
  background-color: rgba(255, 255, 255, 0.055);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ct-brand) 8%, transparent),
    0 18px 38px rgba(0, 0, 0, 0.22),
    0 0 28px color-mix(in srgb, var(--ct-brand) 12%, transparent);
}

#top .ct-integration-mark {
  display: inline-flex;
  min-width: 28px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--ct-brand) 28%, transparent);
}

#top .ct-integration-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  display: flex;
  min-width: max-content;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translate(-50%, 7px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(8, 10, 17, 0.94);
  padding: 8px 10px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(12px);
}

#top .ct-integration-tooltip strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

#top .ct-integration-tooltip small {
  color: rgba(255, 255, 255, 0.36);
  font-size: 8px;
  white-space: nowrap;
}

#top .ct-integration-item:hover .ct-integration-tooltip {
  transform: translate(-50%, 0);
  opacity: 1;
}

#top .ct-integrations-footer {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 1040px;
  margin: 28px auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  padding: 24px 28px 0;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  line-height: 1.6;
}

#top .ct-integrations-footer a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(157, 130, 255, 0.18);
  background: rgba(123, 60, 255, 0.08);
  padding: 10px 14px;
  color: rgba(230, 223, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

#top .ct-integrations-footer a:hover {
  transform: translateY(-1px);
  border-color: rgba(157, 130, 255, 0.34);
  background: rgba(123, 60, 255, 0.14);
  color: #ffffff;
}

@keyframes ctIntegrationMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 9px), 0, 0); }
}

/* Software theme toggle */
.ct-theme-toggle {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(189, 168, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.52);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ct-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(189, 168, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
}

.ct-software-shell[data-ct-theme="light"] {
  background: #f5f7fb !important;
  color: #182033 !important;
}

.ct-software-shell[data-ct-theme="light"] > aside,
.ct-software-shell[data-ct-theme="light"] [class~="bg-[#090713]"],
.ct-software-shell[data-ct-theme="light"] [class~="bg-[#0a0b15]"],
.ct-software-shell[data-ct-theme="light"] [class~="bg-[#100d1a]"],
.ct-software-shell[data-ct-theme="light"] [class~="bg-[#0c0915]"] {
  background-color: #ffffff !important;
  background-image: none !important;
}

.ct-software-shell[data-ct-theme="light"] [class~="bg-[#0b0914]/95"] {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 32px rgba(38, 45, 75, 0.035);
}

.ct-software-shell[data-ct-theme="light"] [class~="bg-white/[0.018]"],
.ct-software-shell[data-ct-theme="light"] [class~="bg-white/[0.02]"],
.ct-software-shell[data-ct-theme="light"] [class~="bg-white/[0.025]"],
.ct-software-shell[data-ct-theme="light"] [class~="bg-white/[0.035]"],
.ct-software-shell[data-ct-theme="light"] [class~="bg-white/[0.04]"] {
  background-color: rgba(37, 46, 79, 0.035) !important;
}

.ct-software-shell[data-ct-theme="light"] [class~="text-white"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/92"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/90"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/88"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/85"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/84"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/80"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/78"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/75"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/72"] {
  color: rgba(19, 27, 47, 0.9) !important;
}

.ct-software-shell[data-ct-theme="light"] [class~="text-white/65"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/60"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/58"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/55"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/48"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/45"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/42"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/40"] {
  color: rgba(35, 45, 68, 0.68) !important;
}

.ct-software-shell[data-ct-theme="light"] [class~="text-white/38"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/36"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/35"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/34"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/32"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/30"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/28"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/27"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/25"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/24"],
.ct-software-shell[data-ct-theme="light"] [class~="text-white/22"] {
  color: rgba(49, 59, 82, 0.52) !important;
}

.ct-software-shell[data-ct-theme="light"] [class*="border-white/"] {
  border-color: rgba(23, 31, 52, 0.08) !important;
}

.ct-software-shell[data-ct-theme="light"] [class~="divide-white/6"] > :not(:last-child) {
  border-color: rgba(23, 31, 52, 0.07) !important;
}

.ct-software-shell[data-ct-theme="light"] .ct-theme-toggle {
  border-color: rgba(45, 53, 79, 0.11);
  background: rgba(45, 53, 79, 0.045);
  color: #44506b;
}

.ct-software-shell[data-ct-theme="light"] .ct-theme-toggle:hover {
  border-color: rgba(123, 60, 255, 0.24);
  background: rgba(123, 60, 255, 0.07);
  color: #6337d8;
}

.ct-software-shell[data-ct-theme="light"] [class*="shadow-black/"] {
  --tw-shadow-color: rgba(38, 45, 75, 0.08) !important;
}

.ct-software-shell[data-ct-theme="light"] [class*="from-[#7b3cff]/"] {
  --tw-gradient-from: rgba(123, 60, 255, 0.11) var(--tw-gradient-from-position) !important;
}

@media (max-width: 767px) {
  header img[src$="/brand/crossteams-logo-color.svg"],
  header img[src$="/brand/crossteams-logo-white.svg"] {
    height: 31px !important;
    max-width: 195px !important;
  }

  #top .ct-integrations-section {
    padding: 18px 16px 84px;
  }

  #top .ct-integrations-panel {
    border-radius: 26px;
    padding: 56px 0 26px;
  }

  #top .ct-integrations-copy {
    padding: 0 22px;
  }

  #top .ct-integrations-copy h2 {
    margin-top: 15px;
    font-size: 36px;
    line-height: 1.02;
  }

  #top .ct-integrations-copy p {
    margin-top: 16px;
    font-size: 13px;
  }

  #top .ct-integrations-marquee {
    margin-top: 38px;
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  }

  #top .ct-integration-row-track,
  #top .ct-integration-group {
    gap: 13px;
  }

  #top .ct-integration-item {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  #top .ct-integration-mark {
    font-size: 12px;
  }

  #top .ct-integrations-footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    padding: 22px 22px 0;
  }

  #top .ct-integrations-footer a {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #top .ct-reveal,
  #top .ct-reveal.ct-reveal-soft,
  #top .ct-reveal.ct-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #top .ct-parallax,
  #top .ct-parallax-x,
  #top .ct-float,
  #top .ct-float-alt {
    transform: none !important;
    animation: none !important;
  }

  #top .ct-integration-row {
    overflow-x: auto;
    scrollbar-width: none;
  }

  #top .ct-integration-row::-webkit-scrollbar {
    display: none;
  }

  #top .ct-integration-row-track {
    animation: none !important;
    transform: none !important;
  }

  #top .ct-integration-group[aria-hidden="true"] {
    display: none;
  }
}
